WordPress.org

Forums

Customizr
how di get rid of the menu at the top of the home page (3 posts)

  1. Kmbusinessnetwork
    Member
    Posted 1 year ago #

    i don want that menu to display at the top of my pafe how do i disable it

  2. Theme Drawer
    Member
    Posted 1 year ago #

    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.

  3. WPyogi
    Forum Moderator
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.