• Resolved stellamaris5

    (@stellamaris5)


    This also stopped working after 3.5.4, natureheals.co.uk (mobile device)

    Functions PHP:

    // Remove 3-bars from menu button
    add_filter(‘czr_fn_menu_display’, ‘rdc_menu_display’);
    function rdc_menu_display($output) {
    return preg_replace(‘|<span class=”icon-bar”></span>|’, null, $output);
    }

    add_filter(‘czr_fn_regular_button_class’, ‘my_regular_menu_button_class’);
    function my_regular_menu_button_class( $classes){
    return array_merge( $classes, array( ‘btn’, ‘btn-primary’) );
    }

    // END OF Add “MENU” text to 3-BAR Menu button (Needs additional CSS code in Child Theme style.css)

    Style.CSS:

    /* START OF Add “MENU” text to 3-BAR Menu button (Needs additional php code in Child Theme functions.php) */

    .btn-toggle-nav.btn-primary {
    padding-left:0;
    }
    .navbar .btn-toggle-nav .menu-btn {
    height: 22px;
    width: 45px;
    position: relative;
    z-index: 2;
    }
    .btn-toggle-nav.btn.btn-primary.pull-right {
    position: relative;
    }
    .btn-toggle-nav .menu-label {
    display: block;
    position: absolute;
    left: 8px;
    top: 1px;
    z-index: 1;
    }

    /* END OF Add “MENU” text to 3-BAR Menu button (Needs additional php code in Child Theme functions.php) */

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘remove 3 bars and add ‘menu’’ is closed to new replies.