Remove Pages Nav Menu

Discussion in 'GeoCraft WordPress Theme' started by jsal2, Jul 2, 2013.

Thread Status:
Not open for further replies.
  1. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    Is it possible to remove this 'pages navigation menu' http://screencast.com/t/2j2GLPPgXzzC altogether (not just display=none) without breaking something else in the theme...if so, what is the best way to accomplish that? Thank you
     
  2. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    (I will be using a different nav method) Thanks for your assistance
     
  3. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Code given below is the only solution because you are asking to remove it from particular view.
    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS
    Code:
    @media only screen and (max-width: 768px){
    #menu {
    display: none;}}
     
  4. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    OK Gotcha, yes, that is to remove from the mobile or responsive display and that's ok..... however, we actually do want to remove the entire main site nav menu altogether as well. So far, we have been able to eliminate it but also results in a broken slider. How would we safely remove the default home page/site nav menu altogether? Thanks!
     
  5. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    #menu {
    display: none;}
     
  6. kentoliver

    kentoliver Active Member

    Joined:
    Jan 3, 2013
    Messages:
    238
    Likes Received:
    41
    If you want to accomplish this. I would suggest some hardcore development.

    Open your code editor,

    Open your header.php file.

    Scroll down to where it says:
    PHP:
    <?php inkthemes_nav(); ?> 
    Copy the 'inkthemes_nav' and search the entire geocraft theme folder for that string.

    After searching you will notice that the function to create this menu is in the : /admin/geocraft_functions.php page

    Open this page. Go to line 66 and you will see something like this:

    PHP:
    function inkthemes_nav() {
        if (
    function_exists('wp_nav_menu')) {
            echo 
    '<div id="menu">';
            
    wp_nav_menu(array('theme_location' => 'custom_menu''menu_class' => 'ddsmoothmenu''fallback_cb' => 'inkthemes_nav_fallback'));
            echo 
    "</div>";
        } else {
            
    inkthemes_nav_fallback();
        }
    }
    Remove the following lines:

    PHP:
    echo '<div id="menu">';
            
    wp_nav_menu(array('theme_location' => 'custom_menu''menu_class' => 'ddsmoothmenu''fallback_cb' => 'inkthemes_nav_fallback'));
            echo 
    "</div>";
    Once you have removed the echo's from this function, there should be no navigation to echo.

    All the best.

    This will only remove the navigation in the header. Which is what I believe you are asking, without simply hiding it.
     
  7. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    Thank you for that additional code, Nitesh
     
  8. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    Yes I did, kentoliver, thank you so much for the details - much appreciated!
     
    kentoliver likes this.
Thread Status:
Not open for further replies.

Share This Page