• Resolved lynnp08

    (@lynnp08)


    Hello. I’ve researched this problem, but not found an answer that works with the most recent version of WP yet. I would like a static front page (Welcome) and do not want a blog page. How do I get rid of WPs standard Blog page. When I choose that I want my front page to be a static page and choose “Welcome” that is all well and good, but I still have a “Home” page in my menu at the top. I want to get rid of that “Home” menu. I’ve found this answer:

    Changing this in the header.php file;

      <li <?php if(is_home()){echo ‘class=”current_page_item”‘;}?>>” title=”Home”>Home
      <?php wp_list_pages(‘title_li=&depth=1’);?>

    To this;

    • <?php wp_list_pages(‘title_li=&depth=1’);?>

    …achieves your goal. I can not speak to the “big picture” consequences of doing this, if any, but if you are happy with your home page and blog page settings, I have confirmed that this will remove the home tab as you desire. A second opinion would be welcome.

    But that does not seem to be the same code I find in this latest version and it does not work for me.
    `
    This is the site I am working on: https://www.affordableresumehelp.com

    I am currently using the ProNews theme.

    Any help would be appreciated. I’m fairly new to Word Press and how it works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lynnp08

    (@lynnp08)

    I resolved this on my own!

    Hi. The solution you mentioned above worked for me.

    I replaced this line in my header php:

    <li <?php if(is_home()){echo ‘class=”current_page_item”‘;}?>>” title=”Home”>Home
    <?php wp_list_pages(‘title_li=&depth=1’);?>

    with this line:

    <?php wp_list_pages(‘title_li=&depth=1’);?>

    I’m using the Deep Silent theme and you can see my site at

    https://atholcongregationalucc.org

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting rid of the default home page (blog)’ is closed to new replies.