mark l chaves
Forum Replies Created
-
Opened an issue for this on GitHub.
Hey @seorez,
One option is to force GenerateBlock’s CSS to load after Popup Maker using standard enqueuing functions.
Here’s an example.
/** Make GenerateBlocks CSS rule! */ function enqueue_generateblocks_stylesheet() { // Make GenerateBlocks styles load after Popup Maker. wp_dequeue_style( 'GBSTYLEHANDLEGOESHERE' ); wp_deregister_style( 'GBSTYLEHANDLEGOESHERE' ); wp_enqueue_style( 'GBSTYLEHANDLEGOESHERE', '/wp-content/uploads/generateblocks/style-123.css', array( 'popup-maker-site' ) ); } add_action( 'wp_enqueue_scripts', 'enqueue_generateblocks_stylesheet', 500 );I tested this code successfully using a CSS file of GB classes that I manually created and added to the uploads directory.
Note: I couldn’t get my copy of GenerateBlock to generate its styles for some reason. That’s why I created my own GB CSS file. That’s also why I have the placeholders in the code for the GB styles handle (since the CSS didn’t generate, I don’t know what the handle is).
Let us know how that goes 🙂
Cheers!
Hi @schuerich,
You’re welcome. And, we appreciate your feedback!
We prefer not to reinvent the wheel and keep our plugins focused and lean. We rather stand on the shoulders of giants such as using WordPress’s powerful, flexible, and proven (and official) login, reset password, and register features.
Have a great day 🙂
This thread is being resolved in our support ticket system.
The current fix is to use wrap the
[tribe_events_list]shortcode with Content Control’s shortcode. The[tribe_events_list]shortcode is available in The Events Calendar Pro.For example:
[content_control logged_out="0" message="Testing: You don’t have access to this."][tribe_events_list][/content_control]Note: If copying and pasting any shortcode doesn’t work, always try replacing any quote marks copied over with new quote marks from your page editor.
Hey @jbenes,
Thanks for reaching out. We’d love to take a closer look. Can you get us temporary access to a staging copy of your site?
Please reach out to us via our contact form to get things going.
https://code-atlantic.com/contact-us/
That way we can get your details using a more private channel.
Cheers!
Hey @schuerich,
Thanks for posting.
Content Control is great for restricting content. Content Control hands-off logging in and registration to WordPress. I.e., Logging in and registration is done outside of Content Control.
So, changing WordPress’s login, register, and lost your password needs to be done through WordPress or a 3rd-party plugin. We don’t know of any 3rd-party plugins off the top of our heads to recommend to you.
For redirecting to BP pages, here’s the most comprehensive tutorial we’ve seen for changing those redirects. It’s not 100% (there are some cases not covered), but it should get you started.
https://code.tutsplus.com/series/build-a-custom-wordpress-user-flow–cms-816
Also, you might want to post to the BP pages community. They might have a redirect solution or other options we don’t know about.
If you have any questions specific to Content Control, please give us a yell back.
Thanks so much 🙂
- This reply was modified 4 years, 4 months ago by mark l chaves. Reason: Typo
Hey @soloant,
Thanks for giving the shortcode option a try!
Are these the results you were thinking of?
We need to know the shortcodes you used for each screengrab to answer that.
Just so we’re absolutely clear, can you tell us the exact shortcode you used for Screenshot 1 and for Screenshot 2?
Please share those with us via our contact form.
https://code-atlantic.com/contact-us/
That way we can get more details using a more private channel.
Cheers!
Duplicate post.
Hey @okrexperten,
Thanks so much for your questions.
– can i restrict a part of the page?
Absolutely! You can do this using Content Control shortcodes.
Here’s an example.
[content_control logged_out="0" class="custom-css-class" message="You don’t have access to this.”]Logged in content[/content_control]If you put this in the Text tab of your Classic or in a Shortcode block in the Block editor, then only logged-in visitors can see the text “Logged in content”.
Please give that a try.
If you need more examples, then head over to this gist.
https://gist.github.com/marklchaves/230ba030334d9f3984cedd71e1dc9193
– will the google bot have access to the whole page?
If your page is public, Googlebot can crawl it. But, it won’t be able to see your restricted content of course because it has no idea how to log into your site even if you gave it an account. That’s just how crawlers work.
We hope that helps.
Let us know if you need anything else.
Have a great weekend 🙂
Hey @soloant,
We’re still looking into the issue. We haven’t narrowed it down yet. Once we do, we should be able to get you a recommendation.
In the meantime, can you try using shortcodes instead of creating a restriction rule?
1) That means, you’d need to delete your Content Control restriction for the Events page.
2) Then, create a new page with the following shortcodes.
[content_control logged_out="0" message="Testing: You don’t have access to this.”][tribe_events_list][/content_control]Note that the
[tribe_events_list]shortcode works only for the pro version, but you say you have that.Let us know how that goes.
Hey @soloant,
Thanks so much for the follow-up and sorry for the delay.
I can reproduce the blank page issue using The Events Calendar free version.
We’ll need to have a closer look to figure out what’s happening.
Sorry for the inconvenience. We’ll keep you posted.
Cheers!
Hey @tonvandervalk66,
WordPress menu items should already have unique HTML IDs that you can use. E.g.,
#menu-item-463 awould select the link element of my login menu item.If that’s not avaialable in Astra for some reason, have you tried adding a custom CSS class to your menu item? You can do that by opening up your Appearance > Menus > Screen Options and checking CSS Classes?
That should be at the top of the page. It will look something like this.
https://share.wppopupmaker.com/12u0y4DG
Once that’s checked you can go back to your menu item and enter your CSS class there. See below.
https://share.wppopupmaker.com/jkumlPlp
Then, you can write a CSS selector like
.my-menu-login-class ato select the link element.We hope that helps.
Let us know if we got your question right or if you need anything else.
Have a great day 🙂
- This reply was modified 4 years, 5 months ago by mark l chaves. Reason: Clarification
Forum: Plugins
In reply to: [User Menus - Nav Menu Visibility] Login & register links to custom pages?Thanks so much for your question.
User Menus simply displays the built-in WordPress login links. So, changing WordPress’s login, register, and lost your password needs to be done through WordPress.
You’ll need to be pretty comfortable with PHP if you want to do this on your own. Here’s the most comprehensive tutorial we’ve seen for changing those redirects. It’s not 100% (there are some cases not covered), but it should get you started.
https://code.tutsplus.com/series/build-a-custom-wordpress-user-flow–cms-816
By the way, you might want to consider customizing the built-in login, register, and lost your password forms. That way you’re only dealing with CSS and won’t risk breaking login features.
Here are a couple of basic examples just to give you a taste of what’s possible.
https://github.com/marklchaves/cme-login
https://share.wppopupmaker.com/llu6Dnw7
Learn more about customizing the WordPress login form on the WordPress Codex.
https://codex.wordpress.org/Customizing_the_Login_Form
Last but not least, you can look for a 3rd-party plugin that does custom logins.
We hope that helps. Let us know if you need anything else.
Have a great day 🙂
Mark
Hey @jidewe,
​Thanks for reaching out. We’re sorry you’re seeing that
serializeObject()issue.It’d be great to get a full stack trace and your website details.
Can you please reach out to us via our contact form?
[https://code-atlantic.com/contact-us/]
Cheers!
Hey @gcskye,
That’s a great question.
Unfortunately, we don’t have a hook for our excerpt code. We can add that to our feature request list. Thanks for your feedback!
In the meantime, you can use our
jp_cc_restricted_messagefilter to add something before or after the restricted message.Here’s an example.
add_filter( 'jp_cc_restricted_message', function( $message ) { return '<div><p>Hello, World!</p></div>' . $message; } );We wish we had better news.
Let us know if you need anything else.
Have a great day 🙂