ThemeShaper Forums » Power Blog

[closed]

Add Home link to Pages Widget

(6 posts)
  1. B1gJ4k3
    Member

    Pretty simple. How can I get a link to the home page (or other arbitrary pages for that matter) into the pages sidebar widget?

    Posted 4 years ago #
  2. B1gJ4k3
    Member

    Well, I found the function that does it in the functions.php file, but that doesn't seem to do anything.... It's set like it should be, I guess...

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    Posted 4 years ago #
  3. B1gJ4k3
    Member

    That seems to only display it in the main nav NOT the pages widget. Anybody? Bueller? Bueller?

    Posted 4 years ago #
  4. rmb
    Member

    I just found this solution at the link below and it worked for me:
    http://wordpress.org/support/topic/204208

    1) login to your wordpress dashboard and create a new page blank page
    2) in the page title section, put an HTML link to your home page
    3) save and publish the blank page and the Home link should appear right under your pages widget in the sidebar

    Posted 4 years ago #
  5. rmb
    Member

    Actually, I just came across a better solution of downloading the Flexi Pages Plugin:
    http://srinig.com/wordpress/plugins/flexi-pages/

    Posted 4 years ago #
  6. :) .. you were faster.

    Flexi Pages Widget is what I recommend.

    Chris

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.