Tagged: x
-
AuthorPosts
-
January 16, 2017 at 7:46 am #1331994
cocoonerParticipantDear Paul,
first of all I really appreciate your help 🙂 That said… it’s not working sigh!I tried to add your code to the content page but, unless I did something wrong, the widget area repeats through the whole article loop. (So I see it many times).
Being a coding impaired I thought to try to add the code to the wp-header.php page and bingo! It works… no repeats on the frontpage… no repeats into articles…. but geez… it now appears on every page of my site. (pages, not articles).
This is my Header now:
<?php // ============================================================================= // VIEWS/ETHOS/WP-HEADER.PHP // ----------------------------------------------------------------------------- // Header output for Ethos. // ============================================================================= ?> <?php x_get_view( 'global', '_header' ); ?> <?php x_get_view( 'global', '_slider-above' ); ?> <header class="<?php x_masthead_class(); ?>" role="banner"> <?php x_get_view( 'ethos', '_post', 'carousel' ); ?> <?php x_get_view( 'global', '_topbar' ); ?> <?php x_get_view( 'global', '_navbar' ); ?> <?php x_get_view( 'ethos', '_breadcrumbs' ); ?> </header> <?php x_get_view( 'global', '_slider-below' ); ?> <?php x_get_view( 'ethos', '_landmark-header' ); ?> <?php if ( is_front_page() ) { dynamic_sidebar('page-upper'); } ?>Any hint before I go and throw the computer out of the window?
Thanks!
IvanJanuary 16, 2017 at 7:52 am #1331998
Paul RModeratorHi Ivan,
Can you provide us your ftp login in private reply.
Thanks
January 16, 2017 at 8:05 am #1332000
cocoonerParticipantThis reply has been marked as private.January 16, 2017 at 9:21 pm #1332983
LelyModeratorHello Ivan,
The code you have here on this reply: #1331994 is correct. That is the exact code you need to add the widget on your frontpage. It appears on every page as you have stated because of cache content. Reading from your previous reply, you have previously add it on other templates. Add it again on wp-header.php exactly as you stated on this reply: #1331994 and then remember to clear cache. It should work after the cache regenerates. Hope this helps.
January 17, 2017 at 1:57 am #1333172
cocoonerParticipantLely I confirm what you said. after the cache cleansing (something I didn’t think about) the widget area only appears on the frontpage as expected.
Do you think it will be best to clean this topic and leave only the relevant answers so others will might benefit from it without sorting through all the steps?Your choice 🙂 Thanks for help!
January 17, 2017 at 4:23 am #1333278
LelyModeratorHi Ivan,
Your welcome!
No need, as I have stated on my previous reply the exact code that will work.Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1330023 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
