- This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago by Tom.
August 16, 2016 at 11:32 pm #218766Attila
I want to create a membership site and protect some content to members only. On pages where have used the “sections” addon the “login” code that is inserted by the membership plugin is inserted incorrectly. See : http://www.interfacepocket.com/fr/entreprise/la-teleconference-2/
On normal pages the code is inserted under the page title. How can I control thequipment insertion of this code?
AbAugust 16, 2016 at 11:35 pm #218767TomLead DeveloperLead Developer
Are you talking about that text in the middle of the site? It’s a shame, they didn’t wrap their content in any kind of HTML, so it’s no possible to style it using CSS. They also add some CSS directly into the body of the page there, which isn’t valid HTML.
Does it just show up automatically? Once I login, the sections are shown?August 16, 2016 at 11:49 pm #218769Attila
Yes the code shows up automatically. When you login the sections show up perfectly.
On a page not using the sections addon their code shows up just under the page title : http://www.interfacepocket.com/fr/entreprise/assistante-de-direction/August 16, 2016 at 11:54 pm #218770TomLead DeveloperLead Developer
Hmm, they don’t seem to output the same HTML/text on each page?
Unfortunately unless the plugin author wraps his message in some HTML with a class or ID, there’s not much we can do. There’s no way for us to target that text and style it to look like the rest of the page.August 17, 2016 at 1:30 am #218785Attila
Just tried another membership plugin… and the issue is the same. Take a look : http://www.interfacepocket.com/fr/entreprise/la-teleconference-2/
However where sections are not used :
It seems that the plugins insert code above the the first section element and there is no way I can control this.August 17, 2016 at 8:40 am #218889TomLead DeveloperLead Developer
Sections creates new containers which third party plugins obviously can’t see, which is why they’re inserting above any of the Sections, as they can’t see them.
If these plugins are wrapping their message in a class, we can target it with some CSS and make it look good regardless.
- You must be logged in to reply to this topic.