Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1331994
    cocooner
    Participant

    Dear 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!
    Ivan

    #1331998
    Paul R
    Moderator

    Hi Ivan,

    Can you provide us your ftp login in private reply.

    Thanks

    #1332000
    cocooner
    Participant
    This reply has been marked as private.
    #1332983
    Lely
    Moderator

    Hello 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.

    #1333172
    cocooner
    Participant

    Lely 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!

    #1333278
    Lely
    Moderator

    Hi Ivan,

    Your welcome!
    No need, as I have stated on my previous reply the exact code that will work.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1330023 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>