WordPress.org

Ready to get started?Download WordPress

Forums

Fancier Author Box by ThematoSoup
[resolved] Plugin code - div not closed. What's up with that? (7 posts)

  1. DougJoseph
    Member
    Posted 1 year ago #

    I noticed a Div tag that is not closed. I tried to close it, but that makes the author box become empty. !?

    The following is a copy and paste.

    <div id="author-profile-bio-below" class="ts-fab-tab" style="display: block;" </div>

    http://wordpress.org/extend/plugins/fancier-author-box/

  2. DougJoseph
    Member
    Posted 1 year ago #

    I tried it with having the tag's code be normal:

    <div id="author-profile-bio-below" class="ts-fab-tab" style="display: block;"> </div>

    It stopped the plug in from working right. !?

  3. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    Investigating this, thank you for reporting it.

  4. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    Doug,

    I searched through all the plugin's code and the string 'author-profile' doesn't appear anywhere. Is there a chance you or someone else has edited the plugin?

    The div's proper ID is 'ts-fab-bio-below'

  5. DougJoseph
    Member
    Posted 1 year ago #

    Yes, please forgive me.

    I implemented an additional use of the author box (extra instance elsewhere), tweaked to control function and appearance.

    Somehow the version I copied (from somewhere?) had the flaw, apart from me changing the ID.

    I am retracing my steps now to find where I copied it from.

    Will reply when I can find more details.

  6. DougJoseph
    Member
    Posted 1 year ago #

    OK, I checked and found the following:

    On my added instance, these two div statements both work:

    <div class="ts-fab-tab" id="ts-fab-bio-below">

    <div id="author-profile-bio-below" class="ts-fab-tab" style="display: block;">

    ...because the class gets most or all of the needed CSS treatment.

    Somehow (I have no idea how) I got the latter written as

    <div id="author-profile-bio-below" class="ts-fab-tab" style="display: block;" </div>

    ...which was interpreted as synonymous with

    <div id="author-profile-bio-below" class="ts-fab-tab" style="display: block;">

    Again, please forgive me. I failed to notice I was looking at a flaw in my added instance, and thought I was seeing it in the original code.

    I still cannot find were I copied it from. Anyhow, problem solved. So sorry to have troubled you needlessly.

  7. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    Hey, no worries at all, we all make mistakes.

    Honestly, I'm happy to have people like you use our plugin. Not afraid of tweaking it and "poking the box". Anytime you need help, feel free to ask.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.