Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1061068
    hrachovec
    Participant

    Hello:

    I’m trying to achieve a layout with a custom wp-single.php file I’ve made in my child theme. I just want to mimic a design that I can easily create in Cornerstone, but this would be for any default blog post.

    The page is here: http://certeco.co.uk/new/death-by-regulation/

    The description of why it’s not working and what I hope to achieve is here:
    https://www.evernote.com/l/AARraaC5HIZHdqwYaNSy9M1W9eUxdNb_obk

    The code for my wp-single.php is:

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/WP-SINGLE.PHP
    // -----------------------------------------------------------------------------
    // Single post output for Renew.
    // =============================================================================
    
    $fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );
    
    ?>
    <?php get_header(); ?> 
    
    <!-- start banner -->
    	    <div data-element="section" class="x-section bg-image banner-pic banner-blog-img" id="x-section-1" style="margin: 0px; border-width: 1px; border-style: none; background-color: rgba(0, 0, 0, 0);"><div data-element="row" class="x-container max width" style="padding: 30px 0px; border-width: 1px; border-style: none; background-color: rgba(0, 0, 0, 0);"><div data-element="column" class="x-column x-sm x-1-1" style="padding: 0px; border-width: 1px; border-style: none; background-color: rgba(0, 0, 0, 0);"><div data-element="text" class="cs-preview-element-wrapper"><div class="x-text"><h2 class="banner-text-sm">opinion matters</h2>
    </div>
    </div></div></div></div>
    <!-- end banner -->
    
    <div class="breadcrumbs">
    	<?php
    echo do_shortcode( '[breadcrumb]' ); 
    ?>
    </div>
    
      
      <div class="x-container max width offset">
    	  
    
        <div class="<?php x_main_content_class(); ?>" role="main">
    	    
    
          <?php while ( have_posts() ) : the_post(); ?>
            <?php x_get_view( 'renew', '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 id="x-section-3" class="x-section cs-hide-xs cs-ta-center footer-band" style="margin: 0px;padding: 20px 0px 10px; background-color: rgb(0, 164, 228);"><div class="x-container max width" style="margin: 0px auto;padding: 0px;"><div class="x-column x-sm x-1-1" style="padding: 0px;"><div class="x-text"><h4 class="footer-band-text">BUSINESS CHANGE THAT DELIVERS</h4>
    </div></div></div></div>
    
    <?php get_footer(); ?>
    

    Any suggestions would be welcome.

    Kind regards, Russell

    #1061082
    Christian
    Moderator

    Hey Russell,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #1062940
    hrachovec
    Participant

    OK, I figured that’d be the case. Thanks anyhow, I think I found the bits of code I needed to re-arrange the page to the desired layout.

    Kind regards, Russell

    #1063021
    Christopher
    Moderator

    You’re welcome Russell.

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