Archived topic
"Sections" page problem
5 replies · Started by Attila BAKTI on August 16, 2016
Hello
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?
Thanks
Ab
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?
Hi Tom
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/
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.
Hi Tom
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 :
http://www.interfacepocket.com/fr/entreprise/assistante-de-direction/
It seems that the plugins insert code above the the first section element and there is no way I can control this.
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.