Tagged: x
-
AuthorPosts
-
February 10, 2017 at 6:15 pm #1366490
KristinWinspearParticipantHello again,
I’d like to add a content_band to the top of the Portfolio landing page in Ethos. Just above the filtering.
How do I do that?
Thank you in advance
Kristin
February 11, 2017 at 12:17 am #1366771
FriechModeratorHi Kristin,
Thanks for writing in! We can output the content of your Portfolio Page so you can simple add the content that you want there. But we need to edit the Layout – Portfolio template first.
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.
Then on your child theme navigate to this directory: x-child\framework\views\ethos\ and create a file named template-layout-portfolio.php and paste the code below on it.
<?php // ============================================================================= // VIEWS/ETHOS/TEMPLATE-LAYOUT-PORTFOLIO.PHP // ----------------------------------------------------------------------------- // Portfolio page output for Ethos. // ============================================================================= ?> <?php get_header(); ?> <div class="x-container max width main"> <div class="offset cf"> <div class="<?php x_main_content_class(); ?>" role="main"> <?php the_content(); ?> <?php x_portfolio_filters(); ?> <?php x_get_view( 'global', '_portfolio' ); ?> </div> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?>Let us know how it goes.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1366490 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
