Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Sep 2013
    Posts
    29
    Thanks
    1
    Thanked 1 Time in 1 Post

    Trying to get rid of menu container?

    On my site, http://throughtheivy.com, I have two menu's for my pages, one in the upper left hand corner and another below my slider. I want to remove the menu container in the upper left hand corner as it is useless for me to have two. I found a line of code through my editor
    /*------------------------------ HEADER ------------------------------*/
    #header .container{
    position:relative;
    }
    #secondarymenu-container {
    position:relative;
    }

    and I want to know if I delete #header .container{
    position:relative;
    will it remove the menu in the upper left hand corner?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Look at the file called "header.php" (using your editor).

    Copy that whole file (copy) and paste into notepad.

    Save that as "header_orig.php" on your PC. This will be a safe copy you keep because you'll be modifying it and you always want to keep an original copy.

    Now, you can modify "header.php".

    Look for a part that looks sort of like this:

    PHP Code:
    <div id='menu-box'>
                <
    div id='secondarymenu'>
                    <
    div class='menu-topmenu-container'><ul class="menus">
                    <
    li class="page_item page-item-144"><a href="http://throughtheivy.com/about-me/">About</a></li>
    <
    li class="page_item page-item-159"><a href="http://throughtheivy.com/contact/">Contact</a></li>
                </
    ul></div>
                            
                </
    div>
                </
    div
    It will look different in "header.php" because it will have some codex. I am only able to see the final HTML, not your PHP script.

    Remove that section and then save it back.

    Refresh your website and see if it is gone.

    If something bad happens, you can restore it back from your saved copy.

    ...

    A main point here is to always make a safe copy of any script or file that you modify.
    If you were to use FileZilla (FTP) instead of the WP admin editor, you could save ALL of your theme files as a backup.




    .
    Last edited by mlseim; 12-05-2013 at 03:02 AM.

  • #3
    New Coder
    Join Date
    Sep 2013
    Posts
    29
    Thanks
    1
    Thanked 1 Time in 1 Post
    I couldn't find any code that looked like the one you put up but I think I found it anyway. But when I try to remove it everything gets shifted up? Here's the code

    #secondarymenu-container {
    height:136px;
    position:relative;
    z-index:11;
    }


    #secondarymenu {
    float:left;
    border-bottom:1px solid #8d8d8d;
    margin-top:36px;
    }
    #secondarymenu a {
    padding:3px 9px;
    font-family: 'OpenSansSemibold';
    font-size:13px;
    text-transform:lowercase;
    color:#8d8d8d;
    }
    #secondarymenu a:hover{
    color:#417a30;
    }
    #header-block {
    position:relative;

    Which part should I edit?

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    You don't need to edit the CSS style sheets. You edit your .php files

    Sometimes, the CSS classes are used in other sections of the site.

    No way for me to help because I don't have access to your .php files.

  • #5
    New Coder
    Join Date
    Sep 2013
    Posts
    29
    Thanks
    1
    Thanked 1 Time in 1 Post

    Resolved

    Oh thanks so much! I guess I was confused with what the Style.css and php files were but I accessed my php files through my cpanel and deleted the line of code that was similar to the one you had posted, and it is now officially gone! I appreciate your help so much!

  • #6
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I recommend that you copy ALL of your theme files to your hard-drive. Make a safe backup of the theme files so you can refer back to them if you make changes and something bad happens. With WordPress, you only edit the files within your theme directory. When WordPress versions are updated, all of the other files could be overwritten. WP won't touch the files in your theme directory.

    The very best way to customize your WP theme is to use "child themes". But, like you, I just edit the theme .php files ... seems easier. Some theme authors offer updates for their theme template files. If you ever utilize theme updates, your file changes will be overwritten ... that's why people use "child themes".


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •