[Support request] Dashicons not working with GeneratePress theme

Home Forums Support [Support request] Dashicons not working with GeneratePress theme

Home Forums Support Dashicons not working with GeneratePress theme

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1280349
    Edwin

    Hi

    I am using Mega Menu in Generate press, but somehow Dash-icons is not showing. I tried it with default Theme and it working.
    Any idea? Already disabled all the plugins

    Thanks

    Edwin

    #1280621
    David
    Staff
    Customer Support

    Hi there,

    add this PHP Snippet to enable them on the front end:

    add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' );
    function load_dashicons_front_end() {
      wp_enqueue_style( 'dashicons' );
    }
    #1281802
    Edwin

    Thanks David

    unfortunately, i didn’t work.

    #1282132
    David
    Staff
    Customer Support

    Where did you add the code ? Is it still added ?

    #1282322
    Edwin

    Hi David

    I am using Code Snippets and yes, it is still added to the website

    #1282971
    David
    Staff
    Customer Support

    I cannot see the request on the frontend – Do any of the other plugins have an option to Disable dash icons ?

    #1293181
    Edwin

    Hi David

    No, and not showing either with all other plugins disabled, but working when theme is changed to default.

    #1293325
    David
    Staff
    Customer Support

    Are you using a Child Theme or any custom functions ?

    If not try this script:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_style( 'dashicons' );
    } );

    Make sure its an exact copy and there are no curly quotes or other odd characters

    #1293341
    Edwin

    Hi David

    No, i am not using a child theme and for the functions i use the Snippets plugin.

    #1293352
    David
    Staff
    Customer Support
    #1293358
    Edwin

    Hi David

    Thanks, but still not working

    #1293370
    David
    Staff
    Customer Support

    Would you be willing to provide us with temporary admin access to the site so i can see what the issue is ?

    If so you can send the login via the Account Issue form:

    https://generatepress.com/contact/

    Please add the URL of this topic to the form so we can track

    #1295659
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Can you disable your caching plugin so we can take a closer look at your HTML?

    #1297752
    Edwin

    Hi Tom
    I have disabled the Litespeed plugin

    #1298342
    Tom
    Lead Developer
    Lead Developer

    Strange, the code David provided should add it to your site.

    Can you try this?:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_style( 'dashicons' );
    }, 100 );

    Is the Code Snippet activated?

    If so, one of your plugins may be dequeuing it for some reason.

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.