Pretty simple. How can I get a link to the home page (or other arbitrary pages for that matter) into the pages sidebar widget?
ThemeShaper Forums » Power Blog
Add Home link to Pages Widget
(6 posts)-
Posted 3 years ago #
-
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 3 years ago # -
That seems to only display it in the main nav NOT the pages widget. Anybody? Bueller? Bueller?
Posted 3 years ago # -
I just found this solution at the link below and it worked for me:
http://wordpress.org/support/topic/2042081) 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 sidebarPosted 3 years ago # -
Actually, I just came across a better solution of downloading the Flexi Pages Plugin:
http://srinig.com/wordpress/plugins/flexi-pages/Posted 3 years ago # -
Posted 3 years ago #
Topic Closed
This topic has been closed to new replies.