-
AuthorPosts
-
November 17, 2017 at 9:04 am #877977
Hi all,
I want a right top menu with icon and text (see homepage), but since i added the awsome fonts the icon and text every side load are reloading.
Is there a way that the top menu only load one time without reloading?Thx and Regards
AdolarNovember 18, 2017 at 12:03 pm #878518Hey Adolar,
I did not see the behavior you’re describing. Can you please explain a bit more on how to see the issue? Screenshot maybe?
Best regards,
VictoriaNovember 18, 2017 at 12:34 pm #878531Hi Victoria,
Please, look to the right top menu (Telephonenr., Ticketsystem, TeamViewer) and klick to another page (like Kontakt).
You will see the reloading of the “awsome icons” in the top menu.I’ve created a video for you ;) show in the private content :)
Best Regards
Adolar-
This reply was modified 7 years, 11 months ago by
Adolar.
November 20, 2017 at 12:04 am #878907Hi,
Thank you for the video, how did you add font awesome to your site? I see you are loading it from their server (CDN) but did you enqueue the stylesheet in your functions.php?//enqueues our external font awesome stylesheet function enqueue_our_required_stylesheets(){ wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'); } add_action('wp_enqueue_scripts','enqueue_our_required_stylesheets');If so, perhaps try self hosting and enqueue the stylesheet in your functions.php like this:
//enqueues our locally supplied font awesome stylesheet function enqueue_our_required_stylesheets(){ wp_enqueue_style('font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.css'); } add_action('wp_enqueue_scripts','enqueue_our_required_stylesheets');you will need to add the font awesome files.
Best regards,
Mike -
This reply was modified 7 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
