WordPress.org

Forums

Landscape
Can't add widgets to footer (7 posts)

  1. dragonbonetattoo
    Member
    Posted 2 years ago #

    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?

  2. dragonbonetattoo
    Member
    Posted 2 years ago #

    I apologize for any duplicate posts. The URL for the site is soulriverfilm.com Thanks!

  3. WPyogi
    Forum Moderator
    Posted 2 years ago #

    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.

  4. dragonbonetattoo
    Member
    Posted 2 years ago #

    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..

  5. WPyogi
    Forum Moderator
    Posted 2 years ago #

  6. dragonbonetattoo
    Member
    Posted 2 years ago #

    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...

  7. Pioneer Web Design
    Member
    Posted 2 years ago #

    You only need one <?php in your functions file - at the top - and closed at the end after all functions.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic