Tagged: x
-
AuthorPosts
-
June 14, 2016 at 2:57 pm #1041998
nicolaticolaParticipantHi Support!
I’m struggling with trying to restrict part of a page’s content.
I can make the whole page restricted using the options in the WordPress dashboard, or the protect element, or [protect][/protect]shortcode, but I’m trying to restrict only one section of the page… I tried adding a text element to the section separately for the shortcode, but this hasn’t worked either.
You can check it out at http://writersontheheath.com/hints, and the section I’m trying to restrict is where the submittable form is embedded using a shortcode towards the bottom.
Can you point me in the right direction, please?
Thanks, Nikki
June 15, 2016 at 1:53 am #1042765
RupokMemberHi Nikki,
You can make specific text element protected by wrapping the content with
[protect][/protect](you can try[x_protect][/x_protect]as well) shortcode, it won’t protect whole page. Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
June 15, 2016 at 4:55 am #1042949
nicolaticolaParticipantThis reply has been marked as private.June 15, 2016 at 9:38 am #1043315
ChristianModeratorHey there,
I’m sorry but I don’t see the section your describing here at http://writersontheheath.com/hints. Can you give us a screen recording?
Thanks.
June 15, 2016 at 9:48 am #1043345
nicolaticolaParticipantHi Christian,
Apologies the page I’m referring to is http://writersontheheath.com/shortlist/.
I’ve taken a screenshot as well.
Thanks, Nikki
June 15, 2016 at 2:23 pm #1043817
JadeModeratorHi Nikki,
I tried to login to check the page but when I did, the login seems to be not working anymore as it says:
Passwords have been disabled for this user.Would you mind activating the user again so that we could check it? Thank you.
June 15, 2016 at 2:27 pm #1043826
nicolaticolaParticipantHi Jade,
Just activated it… sorry! Seems Clef really is as secure as it says 🙂
Nikki
June 15, 2016 at 8:44 pm #1044342
Rue NelModeratorHello Nikki,
I am another staff checking out this issue. You can hide a certain section for logged out user using a combination of custom class and a little bit of Javascript. First you must edit you section, the one that is only visible for logged in user. In your section settings, insert a custom class
hidden logged-in-users(http://prntscr.com/bgxfzx). And then go to the settings tab, Settings > Custom JS and insert the following custom js code(function($){ $(document).ready(function(){ if ( $('body').hasClass('logged-in') ) { $('.logged-in-users').removeClass('hidden'); } else { $('.logged-in-users').remove(); } }); })(jQuery);I already have tested this in your Shortlist page. You must check it when you are logged in and logged out.
Please let me know if this will work out for you. Thanks.
June 17, 2016 at 3:16 am #1046686
nicolaticolaParticipantHi Rue!
Thanks this worked perfectly 🙂
Took a while to work out why you guys couldn’t view the page so sorry for the delay in coming back…
Thanks again, Nikki
June 17, 2016 at 3:19 am #1046690
LelyModeratorYou’re welcome Nikki!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1041998 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
