Tagged: x
-
AuthorPosts
-
March 16, 2017 at 12:06 pm #1409863
darktriadmanParticipantHello,
I have a specific Revolution Slider that I want to display below the masthead for all BBPress pages. How do I best achieve this?
Would prefer CSS customization. I am using a child theme.
Regards,
Ivan
March 16, 2017 at 7:53 pm #1410449
RadModeratorHi there,
Thanks for posting in.
It’s not possible with just CSS, please add this code to your child theme’s functions.php
add_action('x_after_view_global__slider-above', 'bb_press_slider', 99); function bb_press_slider() { if( x_is_bbpress() ) { echo do_shortcode('[your-slider-shortcode]'); } }And replace
[your-slider-shortcode]with your slider’s shortcode.Thanks!
March 16, 2017 at 7:58 pm #1410453
darktriadmanParticipantTesting it now…
March 16, 2017 at 8:01 pm #1410456
darktriadmanParticipantNot working. Here is what I have:
add_action('x_after_view_global__slider-above', 'bb_press_slider', 99); function bb_press_slider() { if( x_is_bbpress() ) { echo do_shortcode('[the-fortress-inline]'); } }Not showing…
March 16, 2017 at 8:10 pm #1410470
darktriadmanParticipantORIGINAL
<?php
// ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions // =============================================================================NEW
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions // ============================================================================= add_action('x_after_view_global__slider-above', 'bb_press_slider', 99); function bb_press_slider() { if( x_is_bbpress() ) { echo do_shortcode('[your-slider-shortcode]'); } }Has no effect.
March 16, 2017 at 8:16 pm #1410475
darktriadmanParticipantHold on…
March 16, 2017 at 8:18 pm #1410477
darktriadmanParticipantOK, it’s working – but in the wrong place.
It is now showing ABOVE the post carousel, above the masthead.
I want it BELOW the masthead.
March 16, 2017 at 8:18 pm #1410479
darktriadmanParticipantIn this case, how do we edit
add_action('x_after_view_global__slider-above', 'bb_press_slider', 99);so that it is “after masthead”?
March 16, 2017 at 9:28 pm #1410562
darktriadmanParticipantFIXED…
This one is taken care of. Thank you!
Regards,
Ivan
March 16, 2017 at 10:19 pm #1410603
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1409863 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
