Tagged: x
-
AuthorPosts
-
September 18, 2016 at 5:06 pm #1180488
qualalbatrozParticipantHi there, I’ve managed to add some text to the portfolio page, by adding the following code to the file “template-layout-portfolio.php” of my x-child theme
<?php x_get_view( 'global', '_content', 'the-content' ); ?>after
<div class="<?php x_main_content_class(); ?>" role="main">And then adding the text to the content area of the porfolio page (just like stated here in the forum)
You can check the result here:
http://qualalbatroz.pt/accao-educativa/But I would like to put the text above the navigation area and below the page title.
How can I accomplish this?
Thanks!
José
September 18, 2016 at 9:10 pm #1180734
NicoModeratorHi There,
Thanks for writing in.
Not sure where you want it to be added. Would you mind sharing us a screenshot to where you want to add it.
To add text in the header part you need to add code in your child theme /framework/views/_stack_name_here_/wp-header.php
Hope it helps. Let us know how it goes.
Thanks.
September 19, 2016 at 2:33 am #1180955
qualalbatrozParticipantHi there,
I’ve added a print screen with the explanation.
Thanks
José
September 19, 2016 at 3:06 am #1180999
ChristianModeratorCopy _landmark-header.php located in x\framework\views\integrity to the same folder in your child theme x-child\framework\views\integrity. Add your text below
<?php elseif ( x_is_portfolio() ) : ?> <?php if ( $disable_page_title != 'on' || $disable_filters != 'on' ) : ?> <header class="x-header-landmark x-container max width"> <?php if ( $disable_page_title != 'on' ) : ?> <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>Hope that helps. 🙂
September 19, 2016 at 12:43 pm #1181794
qualalbatrozParticipantThanks! That worked perfectly. I just had to change the code I had put on “template-layout-portfolio.php”
<?php x_get_view( 'global', '_content', 'the-content' ); ?>to the file and place you pointed me to and it’s done.
Thanks!
José
September 19, 2016 at 4:00 pm #1182094
JadeModeratorYou’re most welcome José.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1180488 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
