• Resolved CooLMinE

    (@coolmine)


    I’m having a weird problem I noticed today. Sadly I don’t know how long its been there which makes things a bit harder to troubleshoot, but I’m pretty sure it happened within the last 1-2 weeks.

    Basically some divs are being wrapped with the strong tag, this includes the siderbar, the footer, even the JavaScript calls at the bottom which are not in a div themselves.

    Now the fun part, this only happens on the front page, single posts don’t have this issue.

    Things I’ve tried so far with no success:

    • Cleared the browser cache to ensure that it wasn’t something weird happening with the cached files.
    • Reinstalled WordPress to ensure that the core files weren’t modified.
    • Disabled all the plugins to ensure that it wasn’t a plugin causing the problem.
    • Copied all theme files into a new wordpress installation to check if it was the theme files behaving that way (oddly the problem doesn’t occur on the test site).

    If you have any ideas of something I might have missed please let me know.

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You have a css style strong with a font-weight of 700. Using a child theme and changing the font-weight will solve the problem.

    http://codex.ww.wp.xz.cn/Child_Themes

    Thread Starter CooLMinE

    (@coolmine)

    Thanks for the quick reply kmessinger.

    You are correct about the font-weight set to 700, I will try the child theme approach to see if that solves the problem.

    Can you give me an inside as to where the extra strong tags come from and why the same issue doesn’t happen on the test installation with the exact same theme files ? It was driving me crazy trying to pinpoint what was causing it.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which theme are you experiencing the problem in?

    Thread Starter CooLMinE

    (@coolmine)

    The theme name is called UpStream.

    But if the theme was the problem shouldn’t the test installation be suffering from the same issue ?

    <h3 class="widgettitle">Newest Downloads</h3><ul>
    <li><a href="http://www.fluxbytes.com/?dl_name=Clear_all_event_logs.zip">Clear all event logs</a> (338 bytes)</li>

    This one, pulled at random off your sidebar, shows no extra strong code. It is just being being formatted by the css.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What do you mean by the test installation?

    Thread Starter CooLMinE

    (@coolmine)

    @andrew Nevins I’ve created another WordPress installation, ie: http://www.domain.com/testinstallation and used the same theme files.

    kmessinger Actually made me see the issue here. I was checking the source code through FireFox’s inspector which was showing the extra strong tags, but in reality there aren’t any in the source code. Just a broken div tag which I need to find. I’m guessing that is the cause of the issue.

    Odd, I thought that the firefox’s inspector was actually accurate, it doesn’t seem like it πŸ™‚

    I’ll get to work, thank you for all the help.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    That link doesn’t work, but you need to test out different themes with all plugins deactivated to see whether the issue is specific to your theme.

    Thread Starter CooLMinE

    (@coolmine)

    That was an example link to illustrate how I did the installation πŸ™‚

    I managed to find the issue, and I am a bit ashamed to admit it. It was an open strong tag (that I never closed) on an older post.

    I was so fixated on the strong tags FireFox’s source inspector was displaying (which apparently did not even exist) that I did not check for the most fundamental source of problems, forgotten open tags.

    You learn something new every day, don’t trust this specific feature from firefox, don’t write HTML code in notepad after 3am πŸ™‚

    Thank you once again both of you.

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

The topic ‘WordPress wraps divs with a "strong" tag’ is closed to new replies.