• Hi,

    I want to be able to add widgets to my footer, such as latest posts, site links, tags etc.

    However my theme does have a widgetised footer, its all hardcoded within the footer.php file.

    I would like to have 4 columns in my footer. My theme is based upon this one: – https://wordpressthemesbase.com/detail/528.html

    my site is www dot myweddingreviews dot co dot uk

    If anyone can help me that would be great.

    Thanks
    Paul

Viewing 12 replies - 1 through 12 (of 12 total)
  • You need to edit footer.php (or the file being used that calls the footer area). Add a table with (4) columns and 1 row and in each <td> add a custom widget area…once saved go to widget admin and add widgets to new widget areas…Your theme must support custom widgets.

    Thread Starter pbul2004

    (@pbul2004)

    I have followed this guide:

    https://www.tipsandtricks-hq.com/how-to-add-widgets-to-wordpress-themes-footer-1033

    In my widgets area its only showing one widget area for the footer called “Sidebar 4”

    I add widgets into here and they do show up in the footer area, however its missing the other 3 columns to add widgets into?

    If i add 4 widgets into the widget area called “Sidebar 4” they all stack up on top of each other?

    Any ideas how to get the other 3 widget areas visible in the widgets area in the admin???

    Does your theme support custom widgets? Does your theme call wp_footer?

    Thread Starter pbul2004

    (@pbul2004)

    I guess so, i mean the Column 4 widget works and adds to the footer, just that the other 3 dont seem to be there.

    And my sidebar left widgets all work fine.

    <table class="myfoottb">
    <tr>
    <td class="foot1"><?php theme_function_new_widget_area('name=widgetfooter1'); ?>
    </td>
    <td class="foot2"><?php theme_function_new_widget_area('name=widgetfooter2'); ?>
    </td>
    <td class="foot3"><?php theme_function_new_widget_area('name=widgetfooter3'); ?>
    </td>
    <td class="foot4"><?php theme_function_new_widget_area('name=widgetfooter4'); ?>
    </td>
    </tr>
    </table>

    Prob want to clear above prior with a break etc and also fix some widths at least.

    “theme_function_new_widget_area” is your theme’s built in function for new widget areas. (review with theme dev. or review the codex on how to add this function to your theme. or, look at themes that include this).

    My linked to site uses similar in the header.

    look into the coding of Twenty Ten, how the four footer widget areas are done there.

    Thread Starter pbul2004

    (@pbul2004)

    doesnt work, thought it would be a simple fix as i have managed to get it 70% working, just need the other 3 columns in the widget area showing up. Following that guide on the link i provided above.

    It would work and does work…assuming you have reviewed correctly my questions.

    Thread Starter pbul2004

    (@pbul2004)

    I cant get it working, sorry. Thanks for your help tho.

    I found this link also,
    https://www.apaddedcell.com/how-create-multi-column-wigitized-footer-wordpress

    This creates the widget area within my widgets in admin, it places the widgets within the footer on the html. But they stack up on top of eachother not in columns

    Perhaps someone else can jump in and help you figure out why something I have working on multiple sites does not work for you.

    I found this link also,
    https://www.apaddedcell.com/how-create-multi-column-wigitized-footer-wordpress

    This creates the widget area within my widgets in admin, it places the widgets within the footer on the html. But they stack up on top of eachother not in columns

    Adding the widget areas is only part of the issue. Without the CSS needed to tell them where to go (such as into 4 columns) they will appear stacked, as you describe. The link you just provided also goes over the need for CSS as well, so you’re on the right track.

    That is in fact likely with a dynamic sidebar, but one needs not do so…a simple table works…albeit one can and likely will want to include some CSS.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Add widgets to Footer – theme has no widgets for footer. Need 4 dynamic columns’ is closed to new replies.