-
AuthorPosts
-
December 14, 2014 at 1:02 am #164209
TrutravelsParticipantHi 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.

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?
December 14, 2014 at 1:06 am #164212
TrutravelsParticipantThis reply has been marked as private.December 14, 2014 at 8:33 am #164331
ChristopherModeratorHi 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 ofmy sort codeput the exact shortcode.Hope it helps.
December 17, 2014 at 3:01 am #166184
TrutravelsParticipantIS 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.

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 PORTFOLIODecember 17, 2014 at 9:36 am #166425
ZeshanMemberHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-164209 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
