- This topic has 16 replies, 3 voices, and was last updated 6 years ago by
Tom.
-
AuthorPosts
-
May 12, 2020 at 1:04 am #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 pluginsThanks
Edwin
May 12, 2020 at 5:17 am #1280621David
StaffCustomer SupportHi 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' ); }May 12, 2020 at 6:49 pm #1281802Edwin
Thanks David
unfortunately, i didn’t work.
May 13, 2020 at 3:27 am #1282132David
StaffCustomer SupportWhere did you add the code ? Is it still added ?
May 13, 2020 at 6:02 am #1282322Edwin
Hi David
I am using Code Snippets and yes, it is still added to the website
May 13, 2020 at 11:03 am #1282971David
StaffCustomer SupportI cannot see the request on the frontend – Do any of the other plugins have an option to Disable dash icons ?
May 19, 2020 at 11:18 pm #1293181Edwin
Hi David
No, and not showing either with all other plugins disabled, but working when theme is changed to default.
May 20, 2020 at 1:43 am #1293325David
StaffCustomer SupportAre 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
May 20, 2020 at 1:52 am #1293341Edwin
Hi David
No, i am not using a child theme and for the functions i use the Snippets plugin.
May 20, 2020 at 2:01 am #1293352David
StaffCustomer SupportSee my edited topic here
https://generatepress.com/forums/topic/dashicons-not-working-with-generatepress-theme/#post-1293325May 20, 2020 at 2:07 am #1293358Edwin
Hi David
Thanks, but still not working
May 20, 2020 at 2:19 am #1293370David
StaffCustomer SupportWould 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
May 21, 2020 at 9:20 am #1295659Tom
Lead DeveloperLead DeveloperHi there,
Can you disable your caching plugin so we can take a closer look at your HTML?
May 23, 2020 at 2:31 am #1297752Edwin
Hi Tom
I have disabled the Litespeed pluginMay 23, 2020 at 10:55 am #1298342Tom
Lead DeveloperLead DeveloperStrange, 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.
-
AuthorPosts
- You must be logged in to reply to this topic.