• Hi.

    I’m new and just trying to create a basic “about me” website.

    I’m using Twenty Eleven and managed to erase the search bar on the menu bar. I wanted to do this. I did *not* however, want two lines for the menu bar items.

    I submitted this ? before and was informed to create a child theme and add this to the function.php section of the child theme:

    #branding .only-search + + #access div {
    padding-right: 15px;
    }

    I tried that…and…it didn’t work.

    Then I found this closed post:

    http://en.forums.wordpress.com/topic/display-all-menu-items-iepages-on-one-line-no-wrapping?replies=4

    I like this idea because I just add the code to the css sheet…but…that didn’t work either.

    Here’s what I see on my website:

    http://dawnthroener.dawntrainer.com/wp/

    I like how it looks….except for that issue.

    I’d appreciate any other suggestions about how to fix this.

    Please let me know if you need any more information.

    Thanks!!!

    Dawn

Viewing 9 replies - 1 through 9 (of 9 total)
  • The CSS code you added to the top of the style.css file is causing that problem — remove it entirely. No code should ever go above the header section anyway. Also, you really should be using a child theme — you are going to lose all your changes when WP is updated, and you need an unadulterated copy of the default theme to deal with potential problems with your site…

    This is the code you need to remove:

    #branding .only-search + #access div {
        padding-right: 205px;
    }

    See this http://codex.wordpress.org/Child_Themes

    You will save yourself a lot of grief later if you do that now.

    Thread Starter Dawnerth

    (@dawnerth)

    WPyogl:

    Thanks for your advice. I deleted that code and it still doesn’t look right.

    I understand in theory what you’re saying about child themes and I tried using a simple one to fix this problem. Unfortunately, I couldn’t get it to work.

    If you have any suggestions, I’d be happy to try it again.

    Once again, thanks for your response. I really appreciate your time.

    Dawn

    That code is still there — are you sure you edited the style.css file? I just looked at it and copied this from the top of the page:

    #branding .only-search + + #access div {
      padding-right: 0;
    }
    
    /*
    Theme Name: Twenty Eleven
    Theme URI: http://wordpress.org/extend/themes/twentyeleven
    Author: the WordPress team
    Author URI: http://wordpress.org/
    Description: The 2011 theme for WordPress is sophisticated ....
    Version: 1.3
    License: GNU General Public License
    License URI: license.txt
    Tags:  .......
    */

    Perhaps this will help you find the file?
    http://codex.wordpress.org/Editing_Files

    What I said about Child themes still stands — if you cannot do it using the instructions in the Codex, you can download a child theme here:

    http://quirm.net/themes/twenty-eleven-child/

    any changed styles need either be edited in the original lines, or added at the end of style.css to make sure they overwrite the existing ones;

    example:

    without child theme:
    – edit style.css and find:

    #branding .only-search + #access div {
    	padding-right: 205px;
    }

    change 205px to 15px

    – or add this to the bottom of style.css:

    #branding .only-search + #access div {
    	padding-right: 15px;
    }

    with a child theme:
    – add this to style.css of the child theme:

    #branding .only-search + #access div {
    	padding-right: 15px;
    }

    PLEASE HELP I have empty space on my main paige, between posts, how can i fix that. I am using creativix theme
    please help
    http://project.pictor.hr/

    DO I NEED TO CHANGE SOMETHING IN CODE:

    $args = array( ‘meta_key’ => ‘feat_front’, ‘meta_value’=> ‘1’, ‘suppress_filters’ => 0, ‘post_type’ => array(‘post’, ‘page’), ‘post_status’ => ‘publish’, ‘numberposts’ => 30, ‘orderby’ => $feat_sort, ‘order’ => $feat_order
    );

    $myposts = get_posts( $args );

    if(!$myposts) {

    $args = array(‘suppress_filters’ => 0, ‘post_type’ => array(‘post’), ‘post_status’ => ‘publish’, ‘numberposts’ => 30, ‘orderby’ => $feat_sort, ‘order’ => $feat_order
    );

    @Sharena

    please start a new topic

    i did tnx

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Want Menu Items On One Line: Twenty Eleven Theme’ is closed to new replies.