WordPress.org

Forums

Better Anchor Links
Breaks html (3 posts)

  1. Johan Edlund
    Member
    Posted 1 year ago #

    Hi Luděk,

    I'm sorry to complain since I know you've spent a lot of time and effort working on this.

    The problem with this plugin, like so many other plugins, is that it messes up the html and thus breaks validation. HTML output after plugin-activation:

    <p>...Paragraph text...<br />
    <a name="rubrik"></a><br />
    <h3>Rubrik</h3>
    <p>...Paragraph text...<br />
    <a name="rubrik-2"></a><br />
    <h3>Rubrik 2</h3>
    <p>...Paragraph text...</p>

    Two open paragraphs and a bunch of nasty <br /> tags that adds unwanted whitespace.

    Hope you can look into this and fix so that the html validates. It'd also be good if you had a class for the anchor so that you can target the link with css:

    <a class="mwm-anchor" name="rubrik"></a>

  2. elpresidento
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johan
    BAL doesnt add any br or whitespaces. BAL searching heading only and add a name tag to body before heading (+ link to contents in devel version 1.6 nex to heading). I recomend check your source in html.

  3. Danly_Dan
    Member
    Posted 1 year ago #

    I can confirm on my installation and application of BAL, it does NOT leave open ended paragraph tags or add any break tags...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better Anchor Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.