Icon not shown in Dropdown menus in Twenty Seventeen Theme

It’s not images, its fontawesome icons, and the fontawesome library is not being called. so you can add the below code to your theme functions.php add_action( ‘wp_enqueue_scripts’, ‘enqueue_load_fa’ ); function enqueue_load_fa() { wp_enqueue_style( ‘load-fa’, ‘https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css’ ); } thats how the current icons for the menus will be showing.

What is the `post-status` icon handle when using `@wordpress/icons`?

So after a little digging and being maybe a little bit oblivious 😅. The correct way to use dashicons within WordPress is as follows; import { Dashicon } from “@wordpress/components”; <Dashicon icon=”post-status” /> Note: This info can be found in the Developer Resources: Dashicons docs, but annoyingly it is buried at the bottom of the … Read more

How To Add Class To Style Search Box

The tutorial shows you how to add a class and style it. add_filter( ‘wp_nav_menu_items’,’add_search_box’, 10, 2 ); function add_search_box( $items, $args ) { $items .= ‘<li class=”your-class”>’ . get_search_form( ‘echo=0’ ) . ‘</li>’; return $items; } For CSS questions, please ask on Stackoverflow. But the code doesn’t enable you to select between the primary or … Read more

Why plugin’s icon for the menu not found?

Sometimes i find wordpress can be quite finiky when it comes to referencing files within the plugin. Specifying a full path seems to fix the problem. Try replacing… market_admin/icon.png With… /wp-content/plugins/your-plugin-name-goes-here/your-file-name-goes-here.png

Issue on adding Icons to Custom Post Type

This code works perfectly for me: add_action( ‘admin_head’, ‘my_icons’ ); function my_icons() { ?> <style type=”text/css” media=”screen”> #menu-posts-product .wp-menu-image, .icon32-posts-product { background: url(<?php echo get_template_directory_uri(); ?>/img/contactLensemenu.png) no-repeat center center!important; } #menu-posts-product .wp-menu-image { background-size:16px 16px!important; } .icon32-posts-product { background-size:32px 32px!important; } </style> <?php } ?> PHP part is the same of the yours, (except for … Read more