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

  • Author
  • #402889


    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



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

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

    If you don’t understand the difference between and, 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.

The topic ‘How to add link to main page to the list of pages’ is closed to new replies.