• Hello everyone !

    I’m currently lending a hand in my company on a wordpress website made by someone “messy” to stay polite.
    Here’s the problem, I created a new front page, and it works fine, but when I define it as Frontpage in the BO, some static style gets added to my divs :

    <div class=”video-item”> becomes <div class=”video-item” style=”position :absolute; left: 0px; top 0px;”>

    and of course it overwrites my own CSS.
    I’ve been looking everywhere in the code to find the cause but so far, nothing.

    Does anyone know something that might add style elements directly in the HTML, only when the page is selected as home page ?

    oddly specific, I know, but I got to make sure I’m not forgetting something obvious.

    Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Does anyone know something that might add style elements directly in the HTML, only when the page is selected as home page ?

    WordPress does not do that. You can check your theme’s javascript or disable plugins to check whether it’s added by plugin.

    Thank you

    If the style is being added directly to the div element and it’s not there when you edit the HTML, this means it’s being added via Javascript. Without knowing the environment, it could be coming from a plugin or the theme. Take a look through any JS files in the theme for “video-item” and then try disabling plugins if that doesn’t turn anything up.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Ghost CSS on the frontpage’ is closed to new replies.