Tagged: x
-
AuthorPosts
-
October 2, 2016 at 5:09 am #1199169
jeangodecosterParticipantHi,
I would like to add some content to my “Portfolio” page, but apparently I can’t edit a page with a Layout – Portfolio.Is there a way to add editable content to that page so that I could open it with cornerstone?
I want to add content BEFORE (an introductory text and a call to action) and AFTER (a contact form) the list of portfolio items.
If I CAN’t do this with Layout – Portfolio, how can I display my portfolio items in a regular page? There’s apparently not a single building block that achieves this purpose, which is a real bummer (to be polite)
October 2, 2016 at 5:34 am #1199184
ChristopherModeratorHi there,
Portfolio page is not editable, we can help you add shorcode directly to portfolio 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.
Copy template-layout-portfolio.php from framework/views/STACK and put it in the same path inside child theme, open the file in text editor.
To add content before, portfolio items add :
<?php echo do_shortcode('sortcode'); ?>Before this line :
<?php x_get_view( 'global', '_portfolio' ); ?>To add shortcode after it put provided code after :
<?php x_get_view( 'global', '_portfolio' ); ?>instead of
sortcodeput the exact shortcode.Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1199169 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
