Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #164209
    Trutravels
    Participant

    Hi there

    I would like to add content below my portfolio section.
    ie:
    I would like the portfolio to display, and then have other sections as you would on a normal page.

    Here is a PSD mockup.
    psd mockup

    So basically: I can have the top section with the masthead option, and then have the section below the normal content of the page, with the portfolio section in-between.

    Is this possible?

    #164212
    Trutravels
    Participant
    This reply has been marked as private.
    #164331
    Christopher
    Moderator

    Hi there,

    This is not offered by X,you need to add it separately in template.

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Create template-layout-portfolio.php file inside YOUR CHILD THEME -> framework -> views -> integrity and add this code in there:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/TEMPLATE-LAYOUT-PORTFOLIO.PHP
    // -----------------------------------------------------------------------------
    // Portfolio page output for Integrity.
    // =============================================================================
    
    ?>
    <?php get_header(); ?>
    	
      <div class="x-container-fluid max width offset cf">
        <div class="<?php x_main_content_class(); ?>" role="main">
        <?php echo do_shortcode('my sort code'); ?>
    
          <?php x_get_view( 'global', '_portfolio' ); ?>
      
        </div>
       <?php echo do_shortcode('my sort code'); ?>
        <?php get_sidebar(); ?>
    
      </div>
    
    <?php get_footer(); ?>

    Create your content using shortcodes inside temporary page.
    Find <?php echo do_shortcode('my sort code'); ?>,instead of my sort code put the exact shortcode.

    Hope it helps.

    #166184
    Trutravels
    Participant

    IS there a way to make it render the content that is from the actual page its from.

    Ie:
    I have this page, and that content, that I want to fill in under that, specific portfolio page.
    image

    The reason being because I am going to have 3 portfolio pages with different content:
    ie: the TruCrew, BoltOn Packages, and a Blog.

    PS:
    How can I also change the text where it reads: SORT PORTFOLIO

    #166425
    Zeshan
    Member

    Hi there,

    Using content from the admin panel requires more in depth template change, we’d love to help you with that but regretfully, that will fall beyond the scope of support we can offer.

    However, you could use WordPress conditionals to show different content on different pages. So, to achieve that, you can simply replace the following line from the above provided code:

    <?php echo do_shortcode('my sort code'); ?>
    

    with following:

    <?php 
      if ( is_page(121) ) {
        echo do_shortcode('TruCrew_shortcodes'); 
      } elseif( is_page(122) ) {
        echo do_shortcode('BoltOn_Packages_shortcodes'); 
      } elseif ( is_page(123) ) {
        echo do_shortcode('Blog_shortcodes'); 
      }
    ?>
    

    Replace 121 with your first page’s ID (TruCrew) and TruCrew_shortcodes with the shortcodes you want to display in that page. Do the same thing with 122 and 123 IDs.

    You can review this article to find the IDs of your posts (same method for finding IDs of pages): https://theme.co/x/member/kb/how-to-locate-post-ids/

    Hope this helps. 🙂

    Thank you.

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