• Resolved Rachel

    (@xxrayray)


    Hello! I’m trying to make the navigation on the bottom of the theme to be a widget area. I have no idea how to handle the PHP… I’m used to writing code for the Twenty Twelve/Twenty Eleven theme. My site so far: https://rachelsilberman.com/MikeMullin/

    Some tips would be great!

    Thanks. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author heatmap

    (@stuartwider)

    Hi Rachel,

    Nice job on the site so far. Well done.

    For the widget area do you mean something like I’ve done just above the footer of this site I created? https://drawpj.com/
    You can see I’ve added an extra widget area above the footer and included 3 widgets across the bottom.

    Thats done with a simple plugin I’ve got in our members area, appropriately styled with a touch of css.

    If you want to do it by yourself then you are going to have to get into php. There’s plenty of tutes how to add a widget are to a theme such as…
    https://www.wpreads.com/2013/03/creating-custom-widget-area-in-wordpress-theme.html

    You will have place the dynamic_sidebar(‘Sidebar Widgets’) part into a function though, and hook it into the footer of the theme to make it appear. If you examine the theme template files you’ll see how all the major elements hooked in with functions.

    Thread Starter Rachel

    (@xxrayray)

    Thank you for the compliment!

    Yes, my ultimate goal is to have social media icons on the bottom instead of the navigation. Since it’s on your members forum do I have to pay for the widget?

    PHP is jibber jabber to me so I try to stay away from it… hard since WordPress is basically PHP/CSS combined. *le sigh*

    Theme Author heatmap

    (@stuartwider)

    I offer free basic advice with the free theme here. If you decide you need more assistance and choose to become a heatmaptheme member, post a message on the heatmap helpdesk and I’ll point you in the right direction to get those social icons on the bottom.

    Thread Starter Rachel

    (@xxrayray)

    I’d rather not pay for one widget that might work for me. Maybe if I needed 10 or so plus extra help on my theme, but $67 dollars for a tiny small detail is a no-go for me. Thanks anyway!

    Theme Author heatmap

    (@stuartwider)

    The support I provide to my (now up to 3600) paid members works, no might about it. You’re an experienced professional front end developer (and obviously very good at your job too) so I’m sure you also know how to charge for the details. ??

    Thread Starter Rachel

    (@xxrayray)

    Okay, okay. I got the footer down (wewt!) except it’s only on the home page.

    functions.php

    <?php
    if ( function_exists('register_sidebar') )
    { register_sidebar();
    register_sidebars(3, array('name'=>'Footer %d')); }
    ?>

    The bottom of page.php

    <div class="footer-bottom">
    <div id="footerwidgets">
    <div id="footer-left">
    <ul class="footer-list">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer 1') ) : ?>
    <li>
    <?php endif; ?>
    </ul>
    </div>
    <div id="footer-middle">
    <ul class="footer-list">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer 2') ) : ?>
    <li>
    <?php endif; ?>
    </ul>
    </div>
    <div id="footer-right">
    <ul class="footer-list">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer 3') ) : ?>
    <li>
    <?php endif; ?>
    </ul>
    </div>
    </div>
    <br>
    <br clear="all" />
    </div>

    and cssed it a little. When I put the html on the footer.php file it goes above the header. Can you give me a hint on how to make the footer appear on all pages?

    Sorry for being such a bother about this. This footer is the last detail on the website before I’m (hopefully) done and send it to the client.

    Thread Starter Rachel

    (@xxrayray)

    I DID IT. MY GOD THAT TOOK FOR FREAKING EVER!

    Love your theme and gave you a 5/5 stars. I’ll use this one again in the future for sure!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding footer widget’ is closed to new replies.