Simple Membership Plugin › Forums › Simple Membership Plugin › How to do partial protection with Visual Composer
- This topic has 5 replies, 3 voices, and was last updated 7 years, 11 months ago by
admin.
-
AuthorPosts
-
July 24, 2018 at 9:35 pm #14991
SLPOnline
ParticipantIs it possible to use partial protection with Visual Composer? We downloaded/installed the plugin. Our site, currently in development, shows the message that the content is only for members, but then shows the content and the
[/swpm_protected]tag. I can provide a private link (the content needs to be protected). Just tell me how to send you a link privately, please.Do we need to protect the entire page if we’re protecting only some content?
This is a great plugin; I hope it’ll work for this site.
July 26, 2018 at 1:59 am #15013mbrsolution
ModeratorHi, are you able to carry out a test without using Visual Composer? I am trying to work out if it is Visual Composer or something else causing this issue.
Thank you
July 27, 2018 at 10:32 pm #15038SLPOnline
ParticipantI don’t think the issue is VC itself; it’s shortcodes that the theme developer uses. We can hide text (even using VC) but if the ONLY item is a shortcode, then the plugin doesn’t recognize it (or vice versa). I can work around it but VC is pretty popular and I hope you can figure out a way to make dueling shortcodes work! (This is a GREAT tool and I really appreciate your work on it.)
July 28, 2018 at 5:55 am #15045mbrsolution
ModeratorHi,
I don’t think the issue is VC itself; it’s shortcodes that the theme developer uses.
Can you provide an example of the type of shortcode the theme developer is using?
Have you tested one of WordPress default themes like Twenty Seventeen? I am curious to know if the theme is causing this issue.
Thank you
July 28, 2018 at 2:28 pm #15058SLPOnline
ParticipantThis code is a VC row with ONLY a shortcode and no text:
[vc_row][vc_column]YOUR SHORTCODE[dt_blog_masonry mode="grid" custom_content_bg_color="#1f365c" post_content_paddings="20px 20px 20px 20px" image_scale_animation_on_hover="n" image_hover_bg_color="n" all_posts_the_same_width="y" post_title_font_size="16px" post_title_line_height="21px" custom_title_color="#ffffff" post_title_bottom_margin="10px" post_date="n" post_category="n" post_author="n" post_comments="n" meta_info_font_size="12px" meta_info_line_height="14px" excerpt_words_limit="20" content_font_size="13px" content_line_height="19px" custom_content_color="#ffffff" category="33"]END YOUR SHORTCODE[/vc_column][/vc_row]We put your shortcode right after the first
[vc_column] where their shortcode is starts. See “END YOUR SHORTCODE” for where we put the closing tag. We did this in both visual and text editor modes.August 6, 2018 at 7:49 am #15129admin
KeymasterThis looks like a matter of that visual editor not running the normal WordPress shortcodes.
I just tested our shortcode using the WordPress’s new visual composer (Gutenberg) and the partial protection shortcode works fine there.
-
AuthorPosts
- You must be logged in to reply to this topic.