• Resolved tidus457

    (@tidus457)


    Hello,

    I would like to fix the last widget “Accès Rapide” of my website, but it doesn’t seem to get fixed when I check the button.

    Can it be some incompatibility with my theme? I couldn’t figure it out for now!

    Thanks for your help!

    • This topic was modified 6 years, 12 months ago by tidus457.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Max Bond

    (@max-bond)

    Hello!

    Yes, there is a problem with your theme – widgets html code is not valid!

    Look at html source:

    <p id="text-6" class="widget widget_text"><h5 class="widget-title section-head cf main-color"><span class="title">Accès rapide</span></h5>			<div class="textwidget"><h4>étape 1: Catane</h4>
    <div style="margin-left: 40px;">
    <li><strong><a href="https://www.voyagetips.com/une-semaine-en-sicile/#1_ere_etape_Catane_1_jour">Que faire et voir?</a></strong></li>
    <li><strong><a href="https://www.voyagetips.com/une-semaine-en-sicile/#Se_loger_a_Catane"><span style="color: #ff6600; font-weight: bold;">Où dormir à Catane</span></a></strong></li>
    </div>
    <p></p>

    The first paragraph tag has no closing tag! Browser is trying to fix html structure and it results in:

    <p id="text-6" class="widget widget_text"></p>
    <h5 class="widget-title section-head cf main-color"><span class="title">Accès rapide</span></h5>			<div class="textwidget"><h4>étape 1: Catane</h4>
    <div style="margin-left: 40px;">
    <li><strong><a href="https://www.voyagetips.com/une-semaine-en-sicile/#1_ere_etape_Catane_1_jour">Que faire et voir?</a></strong></li>
    <li><strong><a href="https://www.voyagetips.com/une-semaine-en-sicile/#Se_loger_a_Catane"><span style="color: #ff6600; font-weight: bold;">Où dormir à Catane</span></a></strong></li>
    </div>
    <p></p>

    Widget container is empty and widget content is outside the widget! )
    So the widget is fixed, but it is empty! ))

    Because all widgets are affected, the problem is probably on theme level. Contact the developer or try to fix it by yourself. You should find register_sidebar function and check after_widget parameter. If you see <p></p> there, remove first tag, there should be only closing tag: </p>! If theme is ok, check for plugins which may change sidebar parameters!

    Thread Starter tidus457

    (@tidus457)

    Hello!

    Thanks a lot for you help!

    In fact, I modified the widget code from my theme because it was using

    • to general widgets before, which made me unable to use them correctly inside text widgets, it was messing all up.

      My <p> tags seemed to be correct (at least in the before/aftet_widget), but the theme seemed to generate this <p></p> from somewhere, I just couldn’t find out from where ^^.
      So I have used div now instead of <p> tags and it’s not messing up anymore.
      Thank you again!

      You’re plugin is really wonderful (5 stars voted!)

    • This reply was modified 6 years, 12 months ago by tidus457.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget isn’t fixed’ is closed to new replies.