• I’ve used Shadowbox-js before outside of WordPress without issue, but it seems now when I add the “hidden” class it inserts a paragraph return as though the link is there. It functions correctly when clicking on the visible link, but it would be nice to have some control over the white-space issue.

    Thanks,
    Burt

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Martz

    (@sivel)

    The hidden class shipped with this plugin should use a display: none; which should prevent this. Perhaps your theme also have a hidden class or something else. You could try adding style="display: none;" and see if it looks different. If so then it is related to something else overriding the class that ships with this plugin.

    Thread Starter get_username

    (@get_username)

    Thanks Matt for the reply. It still shows the extra spaces for some reason even after placing the inline style. I did a “view source” after previewing in the browser and it seems that WordPress places a <br> after each <a> line. Could that have something to do with it? Oddly enough, it doesn’t show the <br> in the HTML preview area when placing the content.

    Hi Matt,

    I was having the same issue.

    Using 21 links in a row for a gallery. The first link is the trigger, and the remaining 20 links are not visible.

    I get 20 lines of white space below (after) the visible first link.

    Using class=”hidden” or style=”display: none;” makes no difference.

    I figured it out. I had line breaks between the ‘a’ tags (for readability) and even though this was in the HTML editor, tags were being added between the links.

    I eliminated all space between the links, and all is good!

    Posted here in case it helps someone else.

    Thanks for the plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Shadowbox JS] class="hidden" adds blank paragraph returns’ is closed to new replies.