Tagged: x
-
AuthorPosts
-
May 18, 2016 at 4:32 am #997033
festifly-adminParticipantHello,
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?
May 18, 2016 at 4:35 am #997037
festifly-adminParticipantThis reply has been marked as private.May 18, 2016 at 5:37 am #997105
ChristopherModeratorHi 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.
May 18, 2016 at 1:31 pm #997880
festifly-adminParticipantHello 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…May 18, 2016 at 4:42 pm #998177
FriechModeratorHey 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!
May 18, 2016 at 9:57 pm #998686
festifly-adminParticipantAwesome 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.
May 18, 2016 at 10:06 pm #998697
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-997033 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
