• When the WP Section Index plugin is active, there is a single hyphen and extra line spacing inserted before each of my H2 header tags (these are the tags I told the plugin to use).

    I’ve disabled the plugin’s “Back to top” links. I don’t need them. Not sure if this has anything to do with it.

    But why are the anchors visible in my posts? I figure I can use CSS to display: none; but I can’t figure out which element to style.

    Anyone know how to make the anchors invisible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Alan,

    This is the first I’ve heard of this issue. Could you provide a screenshot of the issue and of the source code generated by the plugin? That’d be a great help towards resolving this. ??

    If you don’t have a screenshot service, https://awesomescreenshot.com/ works well. ??

    Thanks and regards,
    Matty.

    Thread Starter Alan Haynes

    (@alanhaynes)

    Hi Matty,

    Here are three screen captures to illustrate this issue:

    Image #1 – There is a single red hyphen just before each H2 tag. The hyphen is a link, but it is inactive: clicking on it does nothing. It is red because because of my CSS code for links.

    Image #2 – These are my Section Index settings.

    Image #3 – Here is the same section of my website (PhotoCitizen.com) with Section Index deactivated.

    The HTML for the two anchors shown each contain class=”sectionindex” as part of the a tag.

    Except for this issue, the plugin seems useful, so any help is appreciated.

    Alan
    PhotoCitizen.com

    Hello Matty,

    I just reactivated my WP Section Index plugin again today. It is still showing visible anchors as in my previous post. Do you have any further ideas on how to fix this?

    I’ll leave it enabled for a few days – even with the visible anchors – so you can see what’s happening. I really like the plugin except for this one issue.

    Thanks,

    Alan
    PhotoCitizen.com

    Hello again,

    I fixed this problem for you. It turns out that you had inserted a non-breaking space just before the closing link tags </a>. It was that non-breaking space which was visible. Since my CSS causes links to be colored red and underlined, I was seeing that space as a single red underline.

    THE FIX

    Using the WordPress plugins editor, I edited the file, “wp-section-index/classes/wp_sectionindex.class.php” to remove all instances of &nbsp; and comment out the line where you cleaned up the &nbsp; code since that was no longer necessary.

    I simply searched for &nbsp; and, for every instance found, I deleted just that one space. For the cleanup code, I could have just deleted the line, but I decided to comment // it out instead.

    PERMANENT FIX

    Not sure why the &nbsp; was inserted in the first place, but removing it did not break the plugin: it works better now for me. In a future version, you might try omitting it so no one else has this problem.

    Thanks again for the excellent plugin.

    Alan
    PhotoCitizen.com

    Hi Alan,

    Thanks for your feedback on this.

    I’m looking at revamping WP Section Index in a V2, when I have a moment, and will keep this thread in mind for V2 and any possible V1.x updates. ??

    Thanks and regards,
    Matty.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin: WP Section Index – Anchors are visible’ is closed to new replies.