Need help? Check out our Support site, then


How to add link to main page to the list of pages

  1. Hi, I've got the header.php, where i have the wp_list_pages() function. This creates a horizontal menu.
    I would like to add link to main page to the list of pages.
    I add it manually, but my other pages have CSS style while current_page_item.
    Is there some variable which tells me, that i'm on the main page and i should manually add current_page_item class to the main page link tag? Or can i add the main page to the "pages" section to automatically add the current_page_item?
    Thanks for the answer

  2. You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the WordPress.org forums.

    If you don't understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

Topic Closed

This topic has been closed to new replies.

About this Topic