Forums

eBibleicious not reference "1 John 3:2" correctly (2 posts)

  1. McFarnell
    Member
    Posted 2 years ago #

    Greetings everyone,

    I really like the eBible WordPress plugin, but I am having trouble with references to books like "1 John 3:2". The plugin links to John 3:2 rather than 1 John 3:2. Am I referencing it wrong or?

    You can see what I mean here:
    http://www.village-missions.org/about/from-the-director/?p=43

    Thank you for any help.

  2. msallmen
    Member
    Posted 1 year ago #

    This intrigued me, so I did a little debugging.

    Looking at the source code (right-click, view source) for the page you mentioned, you will see that the 1 in 1 John 3:2 is wrapped in its own font and span tags. This put it into its own "node" from a JavaScript DOM standpoint. The eBible script looks at each node separately, so it doesn't see the 1 together with the rest of the reference.

    What can you do about this? My guess is that you're copying and pasting from a word processor, such as MS Word, into WordPress. MS Word does not produce very "clean" html. You might consider typing directly in WordPress. Otherwise, if you're feeling brave, edit the html for your post in WordPress and move the 1 out of its own tags and into the tags that are around the rest of the reference.

    May I suggest to eBible that they strip out font, and possibly, span tags before they walk the DOM. That should eliminate what some may see as a bug.

Topic Closed

This topic has been closed to new replies.

About this Topic