Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1411102

    darktriadman
    Participant

    Hello,

    First, thanks so much for the fast help on the BBPress issues.

    Now I need some help with MemberPress and getting that to work.

    MemberPress has “membership” pages – they are really a sort of truncated (i.e. not all page options are there) page. The Featured Image, when you go to the actual membership page itself, appears to have different handling.

    Here’s normal featured image handling on my posts/pages:

    CORRECT:

    Now, here’s what MemberPress does with the featured image within “membership” pages:

    INCORRECT:

    I therefore have two requests:

    1. Can you help with CSS or PHP that will override this image handling? I don’t want blank space margins around the featured image, and I definitely don’t want the thumbnail effect with “VIEW POST” on it, which links to the same page. If we can clear that out, terrific!

    2. Is there a convention that can be used for MemberPress, similar to BBPress?

    I’ve seen mepr used when I inspect elements, but it doesn’t seem to work when I replace ‘bbpress_no_carousel’ with ‘mepr_no_carousel’ in PHP.

    There are two parts to using this ‘mepr’ (or whatever it ends up being). I want to remove the post carousel from any MemberPress pages/posts or protected content, similar to this, which works for BBPress in the functions.php file:

    add_filter('x_option_x_ethos_post_carousel_enable', 'bbpress_no_carousel', 999)
    
    function bbpress_no_carousel ( $option ) {
    
    return x_is_bbpress() ? 0 : $option;
    
    }

    I also wish to have a specific Revolution Slider appear below the masthead for all MemberPress pages/posts or protected content, similar to this, which works for BBPress in the functions.php file:

    add_action('x_after_view_global__slider-below', 'bb_press_slider', 99);
    
    function bb_press_slider() {
    if( x_is_bbpress() ) {
    echo do_shortcode('[rev_slider alias="the-fortress-inline"]');
    }
    }

    3. I also want the ability to turn OFF the Revolution Slider feature for specific pages, even as it is globally displayed by default throught the PHP code.

    Hoping like hell you can assist.

    Regards,

    Ivan

    #1411317

    darktriadman
    Participant

    UPDATE…

    I have fixed everything except for turning off the post carousel on all MemberPress pages.

    Can this be done?

    Regards,

    Ivan

    #1411419

    Jade
    Moderator

    Hi Ivan,

    We could try hiding the carousel through CSS.

    Kindly provide us with a sample link to a MemberPress page so that we can check it.

    Thank you.

    #1411422

    darktriadman
    Participant

    Jade,

    Here you go:

    https://darktriadman.com/fortress-barons

    Regards,

    Ivan

    #1411886

    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> Global CSS :

    body.memberpressproduct-template .x-post-carousel {
        display: none;
    }

    Hope that helps.

    #1412134

    darktriadman
    Participant

    Christopher,

    I should have been more clear.

    What I am looking for is this:

    IF (page) OR (post) IS (MemberPress protected) THEN (post-carousel) Display = (suppress).

    Can you help?

    Regards,

    Ivan

    #1412558

    Rue Nel
    Moderator

    Hey Ivan,

    Thanks for updating in! Please have the code updated and make use of this instead:

    add_action('x_after_view_global__slider-below', 'bb_press_slider', 99);
    function bb_press_slider() {
      if( is_page() || is_single() && x_is_bbpress()  ) {
        echo do_shortcode('[rev_slider alias="the-fortress-inline"]');
      }
    }

    Hope this helps.

    #1413781

    darktriadman
    Participant

    FIXED.

    Thank you!

    Regards,

    Ivan

    #1413950

    darktriadman
    Participant

    I take that back – it’s not fixed.

    That is set up for BBPress and has to do with the slider.

    I want all MEMBERPRESS protected pages to NOT display the POST CAROUSEL.

    Regards,

    Ivan

    #1414631

    Paul R
    Moderator

    Hi Ivan,

    Please change the code to this.

    
    add_action('x_after_view_global__slider-below', 'bb_press_slider', 99);
    function bb_press_slider() {
      if( is_page() || is_single() && x_is_bbpress() &&  function_exists('bb_is_user_logged_in') && bb_is_user_logged_in()) {
        echo do_shortcode('[rev_slider alias="the-fortress-inline"]');
      }
    }
    

    Hope that helps.

    #1420906

    darktriadman
    Participant

    Paul,

    BBPress and MemberPress are two different plugins.

    BBPress is a message board.

    MemberPress is a membership platform.

    Can code be generated to remove from MEMBERPRESS?

    Regards,

    Ivan

    #1421177

    Paul R
    Moderator

    Hi Ivan,

    You can change the code to this.

    
    
    add_action('x_after_view_global__slider-below', 'bb_press_slider', 99);
    function bb_press_slider() {
      if( is_page() || is_single() && x_is_bbpress() &&  current_user_can('memberpress_authorized')) {
        echo do_shortcode('[rev_slider alias="the-fortress-inline"]');
      }
    }
    

    Hope that helps