Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] 3rd Inline Widget Generates a 1

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #181504
    braddalton
    Participant

    http://solutionsocial.com/

    Added 3 widgets inline using Bootstrap Column Classes built into Genesis.

    But, i get a 1 and messed up 3rd widget you can see using the above URL

    Anyone know why?

    Thanks for any help which is appreciated.

    #181509
    Paulie_D
    Member

    No idea why but it’s sitting in the HTML as a text node.

    Looks like typo in the HTML…can you edit that?

    #181511
    braddalton
    Participant

    Yes, not sure what to edit

    Here’s the PHP https://gist.github.com/braddalton/c2ff5b6bdd778e984782

    #181517
    Soren
    Participant

    Check your “home-top-” sidebars found on WordPress admin widgets page (or whichever page genesis stores your widgets) for a stray character.

    It appears between widget 1 and 2

      </section>
    </div>
    1<div class="one-third widget-area">
      <section id="calendar-4" class="widget widget_calendar">
    #181524
    braddalton
    Participant

    Yes. Its not in the PHP or any widgets.

    Its generated because there’s a bug in my PHP divs or i need to use CSS to remove it somehow.

    #181535
    Paulie_D
    Member

    CSS can’t ‘remove’ HTML.

    Its generated because there’s a bug in my PHP divs

    I’d be looking to fix that than trying to CSS your way around it.

    #181536
    Soren
    Participant

    Does it still appear if you replace the calendar widgets with, say, a text widget?

    (sorry Paulie, I didn’t mean to post over you)

    #181541
    braddalton
    Participant

    Yes.

    #181547
    braddalton
    Participant

    Worked out what the problem was, the div after the conditionals. When i moved it before, it works.

    Otherwise if i leave the div after the conditionals it only works if you use PHP tags rather than echo. Weird but that’s the case.

    Thanks to both for your help.

    Updated the Gist i linked to above with the fix.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.