WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Center head block problem (3 posts)

  1. PaulaCarson
    Member
    Posted 7 months ago #

    Hello!

    I need to center the head bloc in this website http://leckerandlecker.com/. I have copied this code and paste it in the style child theme but it doesn´t work.

    /* Center the logo (function custom_center_brand)       */
    .brand.span10.offset1 {
    float:      none;
    }
    /* Center the Tagline                                   */
    .tc-header .outside {
    display:    block;
    text-align: center;
    }
    
    /* Center the Menu (function remove_span9_navbar_display) */
    /* Center the Menu (function prevent_social_in_header)  */
    .navbar-inner .row-fluid .span7.site-description {
    display:    none;
    text-align: center;
    }
    .navbar-wrapper .navbar.notresp.row-fluid {
    float:      none;
    width:      90%;
    margin:     0 auto;
    }
    .navbar .navbar-inner {
    padding:    20px 0 0;
    }
    
    /* Variable number of floating elements */
    .navbar .nav {
    float:      none;
    width:      100%;
    text-align: center;
    }
    .navbar .nav > li {
    float:      none;
    display:    inline-block;
    }
    
    /* Fix 2nd levels */
    .navbar .nav > li .dropdown-menu li {
    float: left;
    width: 100%;
    text-align: left;
    } 
    
    @media (max-width: 979px) {
    .tc-header .brand { width: auto; }
    .row-fluid .offset1:first-child { margin-left: 0; }
    }

    The center logo stuff it´s done with a code in the functions.php of child theme.

    add_filter('tc_logo_title_display', 'your_logo_display');
    function your_logo_display($output) {
    return preg_replace('/brand span3/', 'brand span10 offset1', $output, -1);
    }

    I appreciate some help and sorry for my written english.

    Thanks,
    Pau.

  2. rdellconsulting
    Member
    Posted 7 months ago #

    If you have updated to 3.0.14, there is a code change in the functions.php code. Go back to the Snippet which has been updated.

  3. PaulaCarson
    Member
    Posted 7 months ago #

    ok, thank you!
    :)
    I´ll going to try it right now.

Reply

You must log in to post.

About this Theme

About this Topic