• Resolved Mike Sneed

    (@msneed)


    Hi,

    On a sandbox site which I use to work through things before going live I updated Customizr to the latest version..I’m using a child theme I made and focused on centering the logo and having the navbar span the header.

    After updating, the navbar only spans 9 and not 12 columns. I had a function that addressed this.

    The site is: http://www.artdesignsneed.com/newboxffg/

    Code:

    <?php
    add_filter('tc_navbar_display', 'remove_span9_navbar_display');
    function remove_span9_navbar_display($output) {
    return preg_replace('/navbar-wrapper clearfix span9/', 'navbar-wrapper clearfix', $output);
    }
    ?>

    I tried using the updated hook of tc_new_menu_view but that didn’t work.

    Would you know which hook I could use to help change the navbar span9 to span12?

    Help would be awesome! Thanks so much!!

    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi, you could use the hook named ‘tc_navbar_wrapper_class’ documented here.
    Note : the return value is an array of css classes.

    For future references, you will want to check the Customizr hooks API which references and documents ( as exhaustively as can be ) the filter and action hooks of the theme.
    Thanks and I hope this will help.

    Thread Starter Mike Sneed

    (@msneed)

    Thanks Nikeo.. I know you’re busy and I appreciate the help.

    I look forward to donating soon.

    Thanks again!
    Michael

    Theme Author presscustomizr

    (@nikeo)

    I’m happy to help!
    Thanks for the feedback and promise.

    Thread Starter Mike Sneed

    (@msneed)

    Thanks again for the help!! I used what rdell did in that snippet and just targeted an array like you pointed out in your note.. and it worked like a charm! I took the span 9 and made it span12!

    add_filter( 'tc_navbar_wrapper_class',  'rdc_navbar_wrapper_class' );
    function rdc_navbar_wrapper_class() {
         return array('navbar-wrapper', 'clearfix', 'span12');
    }

    Thanks!
    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Navbar menu not spanning full width of header’ is closed to new replies.