Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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
    Adolar

    #878518

    Hey 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,
    Victoria

    #878531

    Hi 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, 1 month ago by Adolar.
    #878907

    Hi,
    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

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