Forums

[resolved] Widget Activation breaking themes footer (6 posts)

  1. selfmade64856
    Member
    Posted 3 years ago #

    Hi,
    I edited some of the sidebar php in this theme http://ifreelance.sitesires.com/
    Basically by default the theme shows a few of the built in widgets such as categories, archives, meta, etc....
    I edited the sidebar's php to include widgets that are activated through through appearance/widgets by adding this code

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>

    However now when I activate a widget it throws the footer off to the bottom left. Everything else looks fine but the footer.

    Any suggestions would be greatly appreciated.

  2. RoseCitySister
    Member
    Posted 3 years ago #

    No way to tell if it's the HTML unless you post the link to your site.

  3. selfmade64856
    Member
    Posted 3 years ago #

    the link is the link in the first post....maybe I should have specified ;)
    http://ifreelance.sitesires.com/

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    A couple of things...

    You're using WP Opt-in, yes? There's a closing </div> immediately after that widget output in the source markup. Can't tell if it's the plugin generating it or if there's a mis-nested div in your sidebar but that's more than likely messing up your footer.

    Also noticed that below WP Opt-in, you're missing an opening <ul> tag. And in the footer itself, you've got a missing </p>.

  5. RoseCitySister
    Member
    Posted 3 years ago #

    Doh! I shouldn't have replied before having coffee. I thought the link you gave was to the theme's site. :(

  6. selfmade64856
    Member
    Posted 3 years ago #

    Thanks everyone for your suggestions. Through a similar problem I was having, the fix is actually the same for this one. I wasn't sure if they were different issues or not, but they are! I basically didn't have my tags opening and closing properly so it was fudging up my footer. Time to go read some PHP literature ;)

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic