• Someone added an inline style of margin-top: 73px to <div class="site-branding"> and I cannot locate it anywhere in my theme files. If you go to the “contact” page it’s in the <div class="custom-header"> block. I am tearing my hair out here. I’ve gone through every file in my child them.

    • This topic was modified 5 years, 2 months ago by benmackie.
    • This topic was modified 5 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Either you found it and removed it or it’s cached in your browser because there is no such CSS. All there is is 48px padding.

    Thread Starter benmackie

    (@benmackie)

    Are you sure? I’ve forced the page to reload and cleared my browsing data and checked on two different browsers.

    https://cannabisediblesanddrinkreview.com/

    <div class=”site-branding” style=”margin-bottom: 73px;”>

    https://cannabisediblesanddrinkreview.com/contact

    <div class=”custom-header” style=”margin-bottom: 73px;”>

    Thread Starter benmackie

    (@benmackie)

    I checked it via a different computer that has never been to the site. There’s an inline style there that I cannot remove.My God, I am going insane.

    Moderator bcworkz

    (@bcworkz)

    Ah sorry, my bad. I was on Contact looking at site-branding. Those are element styles and impossible to override with other CSS. Evil they are. They appear to be placed there via JS code somewhere as they’re not part of the initial page output.

    Maybe try using grep or similar text search utility to find .style.marginBottom in the .js files loaded onto the page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t locate inline CSS style’ is closed to new replies.