[Resolved] Dashicon not displayed on footer widgets

Home Forums Support Dashicon not displayed on footer widgets

  • This topic has 2 replies, 2 voices, and was last updated 8 months ago by Leo.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1176936
    George

    I have this custom HTML in one of the footer widgets:

    <a href="#" class="button">Read Report<span class="dashicons dashicons-arrow-right-alt2"></span></a>

    For some reason, the dashicon is not being displayed. It works on a normal editor.

    #1176938
    George

    Ok, sorted. Sorry about that!

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_style( 'dashicons' );
    } );
    #1176992
    Leo
    Staff
    Customer Support

    Glad you were able to figure out!

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