Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #990768
    Eman
    Participant

    Hi, I am building a Child Theme for a site using the ethos stack and want all posts to have a full width parallax featured image.

    To do this I changed the wp-single.php file to be the code below, but the body of the post is now missing.

    It just shows the post parallax featured image, then immediately below the featured image is the comments section.

    I have included a screenshot attached.

    Any suggestions/ideas you might have would be greatly appreciated.

    URL: http://www.cogollosamil.com
    WordPress version: 4.5.2
    X version: 4.1.0
    Cornerstone plugin version: 1.0.6

    <?php

    // =============================================================================
    // VIEWS/ETHOS/WP-SINGLE.PHP
    // —————————————————————————–
    // Single post output with Full Width Parallax Featured Images for Ethos.
    // =============================================================================

    $fullwidth = get_post_meta( get_the_ID(), ‘_x_post_layout’, true );

    ?>

    <?php get_header(); ?>

    <?php global $post; ?>
    <?php
    $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, ” );
    ?>
    <div class=”x-section bg-image parallax” style=”margin: 0px; padding: 45px 0px; background-color: transparent; background-position: 50% 10px; background-image: url(<?php echo $src[0]; ?> ) !important;” data-x-element=”section” data-x-params=”{"type":"image","parallax":true}”>
    <div class=”x-container max width” style=”margin: 0px auto; padding: 0px; “>
    <div class=”x-column x-sm x-1-1” style=”padding: 0px; “>
    <hr class=”x-gap” style=”margin: 15% 0 0 0;”>
    <h1 class=”h-custom-headline center-text posttitle”>
    <span><?php the_title(); ?></span>
    </h1>
    <hr class=”x-gap” style=”margin: 50px 0 0 0;”>
    </div>
    </div>
    </div>

    <div class=”x-container max width main”>
    <div class=”offset cf”>
    <div class=”<?php x_main_content_class(); ?>” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php x_get_view( ‘ethos’, ‘content’, get_post_format() ); ?>
    <?php x_get_view( ‘global’, ‘_comments-template’ ); ?>
    <?php endwhile; ?>

    </div>

    <?php if ( $fullwidth != ‘on’ ) : ?>
    <?php get_sidebar(); ?>
    <?php endif; ?>

    </div>
    </div>

    <?php get_footer(); ?>

    #990919
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To better assist you with this issue, would you mind providing us the ftp login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your credentials, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – WP Login URL
    – WP Username
    – WP Password
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

  • <script> jQuery(function($){ $("#no-reply-990768 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>