• Anonymous User 9269003

    (@anonymized-9269003)


    Hello there,

    I tried many minify plugins and unfortunatelly after HTML minification links are moved e.g.:
    FROM: <a href><div></div></a>
    TO: <p><a href></a></p> and divs are below.

    Links are placed in widget boxes.

    How to prevent from moving links after minification?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It sounds like something to discuss with the developers of those plugins. Which plugins did you use? I can forward you onto the right place to ask for support.

    Thread Starter Anonymous User 9269003

    (@anonymized-9269003)

    I tried 2 different plugins and the problem is the same.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The plugins may be conforming to old HTML standards and correcting your HTML for you. In some old standards, block elements like Divs are not allowed to be inside of hyperlinks. Which plugins were you using?

    Thread Starter Anonymous User 9269003

    (@anonymized-9269003)

    I use Autoptimize.

    Another plugin is removed and don’t remember the name.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The Autoptimize plugin has good support, maybe if you ask there you’d be able to get a better answer than here: https://wordpress.org/support/plugin/autoptimize#postform

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Links moved to P tag – trouble’ is closed to new replies.