New Landing How can we help? Cardinal add MENU before hamburger icon

Viewing 15 posts - 1 through 15 (of 18 total)
  • Posted in: Cardinal
  • #137354
    std
    Member
    Post count: 37

    hey guys,
    i am using cardinal header 4, and would like to add the word MENU in the mobile menu, so its more clear, then the hamburger icon. is it possible to add MENU left before the hamburger icon?

    thanks!

    #137378
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide the site url? So I can provide you the correct css.
    Thanks

    -Rui

    #137429
    std
    Member
    Post count: 37
    This reply has been marked as private.
    #137673
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-
    .mobile-header-opts:before {content: "Menu" !important;}
    Thanks
    Mohammad

    #137741
    std
    Member
    Post count: 37

    Thanks Mohammad, that works!

    The only thing is that the word MENU is not active as link, to open the mobile menu.
    Can you tell me how?

    Thanks
    std

    #137760
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    There is no :before and :after selector in jQuery. So we cant listen any event on it. Hope you will understand.
    Thanks
    Mohammad

    #149004
    std
    Member
    Post count: 37
    This reply has been marked as private.
    #149009
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It’s here in this line

    
      $mobile_menu_icon     = apply_filters( 'sf_mobile_menu_icon', '<span class="menu-bars"></span>' );

    Replace the
    <span class="menu-bars"></span>

    for your desired code.

    -Rui

    #149303
    std
    Member
    Post count: 37
    This reply has been marked as private.
    #149306
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    In sf-header.php there is a line:

    $mobile_menu_icon = apply_filters( 'sf_mobile_menu_icon', '<span class="menu-bars"></span>' );

    change that to:

    $mobile_menu_icon = apply_filters( 'sf_mobile_menu_icon', '<span>MENU</span>' );

    – Kyle

    #149342
    std
    Member
    Post count: 37
    This reply has been marked as private.
    #149345
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Can you please provide your link?

    – Kyle

    #149348
    std
    Member
    Post count: 37
    This reply has been marked as private.
    #149352
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    a.mobile-menu-link {
    text-indent: 0;
    width: auto;
    }

    And take the word ‘menu’ out of the span in the sf-header.php file

    – Kyle

    #149372
    std
    Member
    Post count: 37
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register