• Resolved lioneleric

    (@lioneleric)


    Hi, is it possible to dequeue your icon font ?
    Also, is it possible to use Font awesome instead ?
    thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @lioneleric,

    It’s always possible to dequeue it. May I ask what is the goal?
    Because you can use images as icons for the left/right menus.

    Thread Starter lioneleric

    (@lioneleric)

    Sure. I use images as icons, so I don’t really need your fonts.
    And, as I try to make my website faster, I checked that it would help a lot.
    By the way you made a great plugin ??

    Plugin Author Rui Guerreiro

    (@takanakui)

    thanks. Not sure if you are already using the latest 2.6.1 where we did a massive improvement on the icons fonts file size.

    I know that every kb counts so try this code to dequeue the plugin icons.

    Add the code below to the functions.php of your child theme.

    function wpmobmenu_dequeue_script() {
       wp_dequeue_script( 'cssmobmenu-icons' );
    }
    add_action( 'wp_print_scripts', 'wpmobmenu_dequeue_script', 100 );

    Let me know if it worked.

    Thread Starter lioneleric

    (@lioneleric)

    Thanks, but not working.
    But don’t worry, effectively you font has a very small footprint.
    I can keep it.
    If I may suggest, it would be nice to be able to use Font Awesome icons.
    Thanks again for this great plugin

    Plugin Author Rui Guerreiro

    (@takanakui)

    Sorry, it should have been wp_print_styles instead wp_print_scritps

    If you want to try again.

    function wpmobmenu_dequeue_script() {
       wp_dequeue_script( 'cssmobmenu-icons' );
    }
    add_action( 'wp_print_styles', 'wpmobmenu_dequeue_script', 100 );
    Thread Starter lioneleric

    (@lioneleric)

    thank you

    Plugin Author Rui Guerreiro

    (@takanakui)

    No problem ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Dequeue font’ is closed to new replies.