Tagged: x
-
AuthorPosts
-
March 17, 2017 at 10:21 am #1411102
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
March 17, 2017 at 1:32 pm #1411317UPDATE…
I have fixed everything except for turning off the post carousel on all MemberPress pages.
Can this be done?
Regards,
Ivan
March 17, 2017 at 3:03 pm #1411419Hi 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.
March 17, 2017 at 3:14 pm #1411422March 18, 2017 at 1:49 am #1411886Hi there,
Please add following code in Customize -> Custom -> Global CSS :
body.memberpressproduct-template .x-post-carousel { display: none; }
Hope that helps.
March 18, 2017 at 10:04 am #1412134Christopher,
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
March 19, 2017 at 3:03 am #1412558Hey 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.
March 20, 2017 at 10:40 am #1413781FIXED.
Thank you!
Regards,
Ivan
March 20, 2017 at 12:32 pm #1413950I 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
March 21, 2017 at 1:47 am #1414631Hi 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.
March 26, 2017 at 5:21 pm #1420906Paul,
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
March 26, 2017 at 11:57 pm #1421177Hi 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
-
AuthorPosts