Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1409863
    darktriadman
    Participant

    Hello,

    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

    #1410449
    Rad
    Moderator

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

    #1410453
    darktriadman
    Participant

    Testing it now…

    #1410456
    darktriadman
    Participant

    Not 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…

    #1410470
    darktriadman
    Participant

    ORIGINAL

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

    #1410475
    darktriadman
    Participant

    Hold on…

    #1410477
    darktriadman
    Participant

    OK, 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.

    #1410479
    darktriadman
    Participant

    In this case, how do we edit

    add_action('x_after_view_global__slider-above', 'bb_press_slider', 99);

    so that it is “after masthead”?

    #1410562
    darktriadman
    Participant

    FIXED…

    This one is taken care of. Thank you!

    Regards,

    Ivan

    #1410603
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

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