• Hello, using a static page going to the about us section…..

    I am having trouble removing the home button from the nav bar and have checked many posts here in support with no luck.

    At the same time I am also having problems removing the Comments are off on each page as well.

    I would also like to get rid of the date on each page just the same (the April 20 part)

    Any help you have will be greatly appreciated.

    Thank you!

    Site here:

    https://bit.ly/hI422S

Viewing 6 replies - 1 through 6 (of 6 total)
  • The easiest way to remove the home button is to go to appearance > menus and create a custom menu. Hopefully your theme is set up for that.

    To remove the Comments are off, you’ll need to go and edit your page.php

    Find the line that looks like <?php comments_template( '', true ); ?> and remove it.

    On your pages, also look for somehting like – <?php the_time('F dS, Y'); ?> and delete it.

    Thread Starter goblue7

    (@goblue7)

    Thank you for the reply I appreciate it!

    Unfortunately the custom menu option isnt working in that way. It appears it only will work as a right side bar widget menu ??

    However I was able to find the date option and thank you for the help.

    To get the comments area off I actually found that in the comments.php file instead of the page.php so the idea was there and I thank you.

    Hopefully there is a way to get the home button out of the nav bar when using a static page as home.

    I have seen it a lot here in the forums but none of their suggestions fix it with my particular template.

    The Home button may be hard coded in theme it should be in header.php can you paste the code in https://wordpress.pastebin.com and paste the url here

    Thread Starter goblue7

    (@goblue7)

    Yes, will do, thank you. Here it is:

    https://pastebin.com/97s5dJJM#

    You can remove this in line 50

    <li><a href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name') ?>">
       HOME
    </a></li>

    `

    Thread Starter goblue7

    (@goblue7)

    At first when i removed all of the code you list, it gave an error message.

    I put the code back in and only removed the capital HOME (line 51) and then it worked.

    It appears to be working now and I thank you for the help. Hopefully there isnt a long term issue in doing so and it appears there are no errors anywhere.

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove home from nav bar & comments are off’ is closed to new replies.