• After updating to WordPress 3.5 I have the following issue:
    When selecting a Heading and add a link to that tag (H1, H2, H3, etc.), WordPress adds two paragraphs one before and one after (see example), but it shouldn’t. The Heading should be inside the link.

    Anyone knows how to solve this issue?

    <p><a title="Title" href="https://teste.sss.pt"></a></p>
    <a title="Title" href="https://teste.sss.pt">
    <h2>A Física no dia-a-dia</h2>
    </a>
    <p><a title="Title" href="https://teste.sss.pt"></a></p>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    Thanks in advance.
    Fernando Ribeiro.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    ■flushing any caching plugins you might be running, as well as server and/or browser caches.
    ■deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can’t get into your admin dashboard, try resetting the plugins folder by FTP or PhpMyAdmin (read https://bit.ly/UhpkLl if you need help). Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old (read https://bit.ly/WMrMM5 for more information on mu-plugins)
    ■switching to the Twenty Eleven theme to rule out any theme-specific problems. If you can’t log in to change themes, you can remove the theme folders via FTP so the only one is twentyeleven. That will force your site to use it.

    for more info, review this thread: https://www.ads-software.com/support/topic/troubleshooting-wordpress-35-master-list?replies=4

    Just to say the same is happening to my sites – over 20 updated so far.
    Switching themes doesn’t make any difference nor does turning plugins off. I’m going to try on a new default install to see if the problem is present.

    Thread Starter fernando.ribeiro

    (@fernandoribeiro)

    Hi.

    While there is no official and rational explanation, here is a workaround to this issue.

    1 – Write some content.
    2 – Select the text and apply Heading 2, for instance (or any other heading).
    3 – Add a link.
    4 – Select the text again and apply the same heading (Heading 2, if choosen before). This step removes the style.
    5 – Repeat 4. This step adds style but now maintains heading and link as expected.

    With this procedure i can have the expected behaviour.

    Fernando.

    Figured out a quicker workaround.

    1. Write the content
    2. Add links
    3. Apply Heading style

    It seems to muck things up if you try and add the link after you have applied the heading style.

    Thread Starter fernando.ribeiro

    (@fernandoribeiro)

    That didn’t work for me. I still need to do the procedure I’ve said in my previous post.

    Hopefully it will be fixed with an update.

    I’m having the same issue.

    I also noticed that besides the paragraphs being inserted, the link itself gets wiped out in the editor when I press the Update button, though it appears on the front end. Of course, if you Update it twice, it then disappears from the front end as well since it’s no longer recognized by the editor.

    Fernando’s workaround was successful for me, but impractical for clients. Hopefully this gets solved soon.

    As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem – despite any similarity in symptoms – is likely to be completely different.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problems with Heading and links WordPress 3.5’ is closed to new replies.