- This topic has 2 replies, 2 voices, and was last updated 6 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › How do I separate login shortcode and non-logged in message?
Tagged: custom message css
Following this article…
https://simple-membership-plugin.com/simple-membership-custom-messages-addon/
I used CSS to edit the “you need to be logged in…” message but that css is also affecting the login shortcode? How do I create a distinction so the restricted post is only affected by the css?
Hi, can you share the code you are using to customize your message?
How do I create a distinction so the restricted post is only affected by the css?
Can you provide an example of what you are trying to achieve? Maybe even share a screen capture pointing to the area you want to change and the area you don’t want the change. Can you also share a link so I can check.
Thank you
Well the problem has changed a bit.
I realized that whenever I use the Custom Message add-on it changes the classes of that message to .entry-content.
For example, when I change the Restricted Post message the class goes from .swpm-post-no-access-msg to .entry-content. Like all of them. This wouldn’t be a problem, I’d just use that one class to target all the messages but the login shortcode is ALSO linked to this class.
I want to add custom messages and then customize them but I can’t do both of these things at once. If I add the custom messages I can’t use CSS.