Can't add widgets to footer
-
I cannot see the footer in the widget area of the landscape theme. I need to add widgets to it. I see the footer.php file, and it is calling it correctly ( I see the “proudly powered by wordpress” when I view the site). How do I get a widget-enabled footer?
-
I apologize for any duplicate posts. The URL for the site is soulriverfilm.com Thanks!
If the theme doesn’t have widgets in the footer, you can add them :
http://codex.wordpress.org/Widgetizing_Themes
Any changes like that should be done in a Child Theme – see:
http://codex.wordpress.org/Child_Themes
Or, depending on what you want to do, you could just modify the footer.php file to add what you want – again, do so in a Child Theme.
I am using a child theme to prevent fatal errors. 🙂 I copied the functions.php and stuck it in the child folder, but now i’m getting the following error when I try to access it in the WYSIWYG editor:
Fatal error: Cannot redeclare landscape_widgets_init() (previously declared in /home4/soul1/public_html/wp-content/themes/landscape_child/functions.php:90) in /home4/soul1/public_html/wp-content/themes/landscape/functions.php on line 138
I’m so confused..I cleared all the other functions from the functions.php in the child theme and added the following code to it:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebars(5,array(
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h4>’,
‘after_title’ => ‘</h4>’,
));
?>
as per instructions on http://www.sueblimely.com/add-widget-ready-sidebars-to-wordpress-footers/
but I am getting a syntax error on line 12 <?php
Why? Does there need to be additional code before the function?
Thanks…You only need one <?php in your functions file – at the top – and closed at the end after all functions.
- The topic ‘Can't add widgets to footer’ is closed to new replies.