WordPress.org

Support

Support » Themes and Templates » how di get rid of the menu at the top of the home page

how di get rid of the menu at the top of the home page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Drawer
    Member

    @crossreftech

    It depends on what theme you are using but this is the basic code.

    Add this to your functions.php file

    <?php
    if ( is_home() ) {
        // If it is the home page do this...
        echo '
            <style>
              #access {display: none;}
            </style>
        ';
    } else {
        // If it is not the home page do nothing
    }
    ?>

    You would need to substitute #access with the id or class that your menu is in.

    WPyogi
    Forum Moderator

    @wpyogi

    It depends on what theme you are using

    This is posted in the Customizr theme forum… :).

    The suggested modification should be made ONLY in a child theme – so that such changes are not lost when the theme is updated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how di get rid of the menu at the top of the home page’ is closed to new replies.