Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #997033
    festifly-admin
    Participant

    Hello,

    I have this code installed to display a slider below the masthead on all my archive pages.

    // Add custom content below the masthead
    // =============================================================================
    /*
    function custom_content_below_masthead() { ?>
    <?php if ( is_archive() ) : ?>
    <div class=”custom-shortcode”>
    <?php echo do_shortcode(‘[rev_slider alias=”frontpage”]’); ?>
    </div>
    <?php endif; ?>
    <?php }
    add_action(‘x_after_view_global__slider-below’, ‘custom_content_below_masthead’);
    // =============================================================================

    It was working fine, but I logged in a little while ago and the slider was gone from all the archive pages.

    Can you help me figure out what happened? The code is still as it was I haven’t modified it in any way. Could I be missing something?

    #997037
    festifly-admin
    Participant
    This reply has been marked as private.
    #997105
    Christopher
    Moderator

    Hi there,

    Upon checking your site, slider was displaying fine. see the attachment.
    Please clear cache, check again and confirm me or let us know how we can replicate the issue.

    Thanks.

    #997880
    festifly-admin
    Participant

    Hello again,

    I have cleared the cache and the slider didn’t return.

    Upon looking at the image you sent I realize that you were referencing the wrong page, that is a page I built through cornerstone. I have attached an image of the archive page(s) that I am experiencing this issue with, and I have also added my URL(s) for further clarification.

    Thank again for your help.

    http://festiflyhub.com/news
    http://festiflyhub.com/lifestyle etc…

    #998177
    Friech
    Moderator

    Hey There,

    Did you copy/paste that code above straight from your functions.php file? that code is commented out. Please remove that /* just before the function custom_content_below_masthead() { ?> line.

    Hope it helps, Cheers!

    #998686
    festifly-admin
    Participant

    Awesome thanks, Yes I did just copy/paste the code so I could possibly get a confirmation that */ wasn’t supposed to be there. I wasn’t sure. Thanks again for the help.

    #998697
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

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