How to edit the default icon of Add Media button?

this function get_stylesheet_directory_uri() return URI to current theme’s stylesheet directory and /css/my-admin.css is path to their file which you can create in your theme directory example : <link rel=”stylesheet” type=”text/css” id=”my-css” href=”https://yourdomain.com/wp-content/themes/yourtheme/css/my-admin.css”> this is the output of the code in your source

How to Change custom post type Dashicon Color

The menu icons are displayed via CSS in the :before pseudo-element of the .wp-menu-image.dashicons-before wrapper. So first your code needs to target .wp-menu-image:before, or .dashicons-before:before (not .dashicons). This won’t be enough though because default styles in WordPress are using some more specific selectors. Though you could override them with !important and make all icons red … Read more

Dashicons and Pseudo :before

The dashicons are only part of the WordPress admin area. So if you’re aiming for dashicons in the frontend you’ll have to enqueue the icon font within your function.php: add_action( ‘wp_enqueue_scripts’, ‘frontend_dashicons’ ); function frontend_dashicons() { wp_enqueue_style( ‘dashicons’ ); } Moreover you’ll not need to remember those cryptic icon values like \f161; simply add the … Read more

How to Add Custom New Published Post Counter Icon on Top of the WordPress Site [closed]

Check out code below. Function returns a number of posts published with todays date. You just have to modify a navigation a little bit to add this number counter to a menu bar. echo “<h1>Today is: ” . date(“Y-m-d”) . “</h1>”; function published_today() { $counter = 0; $posts = get_posts(array(‘numberposts’=>-1)); foreach ($posts as $post){ if … Read more

Set Site Icon programmatically (eg. using `wp cli`)

The ‘official rules’ about site icons are here:https://www.w3.org/TR/html5/links.html#link-type-icon . They provide this example of site icons for several sizes: <link rel=icon href=favicon.png sizes=”16×16″ type=”image/png”> <link rel=icon href=windows.ico sizes=”32×32 48×48″ type=”image/vnd.microsoft.icon”> <link rel=icon href=mac.icns sizes=”128×128 512×512 8192×8192 32768×32768″> <link rel=icon href=iphone.png sizes=”57×57″ type=”image/png”> <link rel=icon href=gnome.svg sizes=”any” type=”image/svg+xml”> The above link also specifies if the ‘link … Read more

Change via CSS the color of social menu icons

You mentioned that you tried several ways but you didn’t provide information as to what they were. You’ll want to either add this code to your Custom CSS (customizer or Jetpack plugin): .jetpack-social-navigation .icon{ color:#000000; } With the little bit of information provided that’s the best I can offer – will happily edit and add … Read more

change video icons to selected thumbnail?

You can do this with a three easy steps: Create a directory in your theme that will hold all the new icons /themes/theme-name/images/icons/ Copy all the images from /wp-includes/images/crystal/ to your new directory Hook into the wp_mime_type_icon filter in your functions.php file Your filter would look like this: function change_mime_icon($icon, $mime = null, $post_id = … Read more

How to insert icon in site title

That setting is html escaped, it means that all the html special chars are converted in the realated html entities, so e.g. < became &lt;. To print correctly you can use echo html_entity_decode( get_option(‘blogname’) ); However be aware, that blogname option is used by WordPress and by a lot WP themes and plugins (e.g. SEO … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)