Tagged: x
-
AuthorPosts
-
March 16, 2017 at 12:10 pm #1409871
darktriadmanParticipantHello,
How do I turn off the post carousel for all BBPress pages?
Regards,
Ivan
March 16, 2017 at 8:02 pm #1410458
RadModeratorHi there,
Thanks for writing in.
Please add this code to your child theme’s functions.php
add_filter('x_option_x_ethos_post_carousel_enable', 'bbpress_no_carousel', 999) function bbpress_no_carousel ( $option ) { return x_is_bbpress() ? 0 : $option; }Hope this helps.
March 16, 2017 at 8:06 pm #1410464
darktriadmanParticipantTesting this…
March 16, 2017 at 8:07 pm #1410466
darktriadmanParticipantThat broke functions.php.
March 16, 2017 at 8:14 pm #1410472
darktriadmanParticipantParse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/darktriadman/public_html/wp-content/themes/x-child/functions.php on line 30
March 16, 2017 at 9:08 pm #1410555
darktriadmanParticipantPlease check your code syntax..
March 16, 2017 at 9:36 pm #1410570
darktriadmanParticipantFIXED…
Added this to functions.php:
add_filter ( 'x_option_x_ethos_post_carousel_enable', 'disable_carousel_for_bbpress'); function disable_carousel_for_bbpress ( $enabled ) { if( x_is_bbpress() ) return ''; return $enabled; }Many thanks!
Regards,
Ivan
March 16, 2017 at 10:18 pm #1410601
NicoModeratorHappy to hear that.
Feel free to ask us again and thank you so much for sharing us the answer. It would really help us and other members of this forum.
Thank you so much.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1409871 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
