Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Home Link in Pages Widget


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jul 14, 2009, 08:40 AM
alecf
 
1 posts · Jul 2009
Hi,

I'm sure it's something simple, I have added the pages widget to my left sidebar. I would like a link to appear there for the home page of the blog. Wordpress is installed in the root of my webserver so this should just be a link to my main url or index.php.

How do I do this?
  #2  
Old Jul 14, 2009, 07:45 PM
Flynn's Avatar
Flynn
 
3,765 posts · Oct 2008
Munich, Germany
The default Pages widget doesn't link to the homepage. You'd either have to use another improved Pages widget from http://wordpress.org/extend/plugin or install the PHP code widget and place it in the sidebar, give it a title and inside the widget put

PHP Code:
<ul>
<li class="page_item<?php if ( is_front_page() ) { echo ' current_page_item'; } ?>">
<a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></li>
<?php wp_list_pages('title_li='); ?>
</ul>


Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Link in Next/Previous not working turbojesse Atahualpa 3 Wordpress theme 5 Aug 20, 2009 08:27 PM
Static Home Page - Pages - Articles - Posts ScottiedogDave Atahualpa 3 Wordpress theme 3 Apr 17, 2009 06:10 AM
Header image displays on all pages BUT the HOME page imabeliever Header configuration & styling 3 Apr 14, 2009 06:05 AM
How to add 'Home' to 'Pages' Widget DavePorter Sidebars & Widgets 3 Mar 20, 2009 05:40 PM
IE Home page no rt. Side bar new pages and other pages OK! Ok in FF and Chrome minionette Sidebars & Widgets 2 Feb 26, 2009 12:57 AM


All times are GMT -6. The time now is 07:25 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.