Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#34314 closed defect (bug) (invalid)

Down arrow alt2 displays ? mark box

Reported by: deldavid's profile deldavid Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: General Keywords:
Focuses: ui Cc:

Description (last modified by johnbillion)

The dashicon is displaying ? box instead of icon. Below is the code I am using to reference.

.header-nav li.account-dropdown:before {
content: '\f347';
}

Even when i use "" instead of '' still produces same issue. Also I have tried using :after instead of :before selector.-still same issue.

WP 4.3.1

Change History (2)

#1 @swissspidy
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This usually happens when you're not loading dashicons correctly.

The easiest way to add the icon you want is to add the necessary classes to your .header-nav li.account-dropdown element. In the HTML, it'd look something like this:

<li class="account-dropdown dashicons dashicons-arrow-down-alt2">

Also make sure you're correctly enqueueing the dashicons CSS if it isn't already.

Last but not least, as this is a support question, please ask in the WordPress.org support forums if you need further help. Trac is for core development only.

#2 @johnbillion
9 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.