Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [icon]

The tag has no usage guidance.

0
votes
0answers
18 views

How to remove some unused SVG from twenty seventeen?

Twenty Seventeen ads tons of SVG icons on every page. i realized 95% of these icons are from social media or random sites i'll never use. So why load them? I found a hook to remove ALL SVG but i still ...
-1
votes
2answers
12 views

how to add fa fa icons customize menu using wp_nav_menu function?

how to add fa fa icons customize menu using wp_nav_menu function? wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'footer-menu', 'menu_class' => 'quick-...
-1
votes
0answers
12 views

How to remove ''Posted 2 days ago (eye icon)110''

I have a problem. the site i am building in with WPbakery has ''Posted 2 days ago (eye icon)110'' on every page and i want to get rid of that. I installed WP Date Remover and WP Meta and Date Remover ...
0
votes
1answer
26 views

jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser

My website's favicon that is seen in tabs of chrome disappears when i use the following jQuery. Removing this script from head makes the icon visible. But why a seemingly simple and unrelated code ...
1
vote
1answer
22 views

CSS to remove “comments count” icon from main page [closed]

as the title suggests, can you help me on how to remove icons on the homepage that show the comment count of each article? I do not know CSS, and I do not know exactly what to change. I am using the ...
0
votes
0answers
19 views

Custom Icon assigned to menu items not working for multi-site networks

I have assign different custom font icon to each menu item using the_title action hook and is working for single site but not working for multi-site networks. Is there any solution for this issue? How ...
0
votes
1answer
29 views

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

Wordpress has a "Site Icon" feature that serves correctly-sized favicons and so on to browsers. Is there a way to drive this feature programmatically, eg. by uploading media and setting an option with ...
0
votes
1answer
15 views

image on homepage disappeared due to change of permalink name

where to do this in Wordpress backend? I need to add the missing icons for "Smart living" and "Smart workspace" on homepage section - image is not in available in Media - It is in a section of the ...
2
votes
2answers
60 views

How can a default site icon be set in customizer?

From my research there are only two questions I've found around this topic on this site: How to change in customizer the “site identity” tab required capabilities how to change default icon of custom ...
0
votes
0answers
28 views

Where to place a svg chevron down in my custom walker?

i am a bit stuck with the custom walker in my Wordpress theme. I wanted to place a svg chevron down on the first link when a submenu is detected. My theme uses a svg file with all the svg paths. The ...
0
votes
0answers
21 views

Changing menu icons

I have four navigation menus in the widget area at the bottom of my page like this: - They don't look very nice and my current theme doesn't allow me to change the styling much. I'd like to change ...
3
votes
1answer
167 views

How can I make my Admin Icon SVG color correctly? [closed]

I am trying to use my own Custom SVG Icon for Wordpress admin menu icon. Below is the contents of the SVG File: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-...
0
votes
1answer
113 views

Hide icon and rating when there is no rating entered

Some newbie question regarding PHP. I need to hide star icon when there is no rating for the post: <span class="js-average-rating"><i class="star"></i> <?php echo ...
0
votes
3answers
508 views

Font awesome Icon HTML in widgets disappear on save

I've created a Text widget and put font-awesome icon HTML in editor Text Mode <i class="fab fa-facebook"></i> but toggling to Visual mode makes the code disappears though I can see it ...
0
votes
0answers
46 views

How to add a new favicon icon customizer setting after disabling default site identity setting?

I've added a new customizer setting for the site header and footer logo icons which is working. I want to do the same for the site/favicon icon. How can i use the favicon icons setting? function ...
0
votes
1answer
45 views

Taxonomy Category Icon on index page

There are few plugins to add icon to taxonomy's. These plugin show icon only on taxonomy archive or template pages. In my case CPT = event & Taxonomy = event-category & categories are green,...
0
votes
1answer
397 views

How to Change custom post type Dashicon Color

I have seen some example of changing custom Post Type icon colors but nothing for using wp builtin dashicon. I also tried to do this .dashicons { color: red; } which is only changing color of ...
1
vote
2answers
109 views

Font Awesome Icons Won't Work

I do have font awesome installed with my theme. The icons on my home page was working well before. I dont know why but the shortcodes of my icons now stopped working. I do have empty white square ...
1
vote
2answers
610 views

How do i add edit shortcut icon in wordpress without using selective refresh

I am developing a theme and I wonder if there anyway I can add a visual edit shortcut without selective refresh? $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $...
0
votes
1answer
337 views

social icons not showing

TL;DR; social icons not showing on website that's an alias of another website. Longer version: My sister has made a wordpress website and I uploaded it for her because she couldn't work with ftp and ...
0
votes
1answer
79 views

How to reduce the image size inside an icon? [closed]

The below image is a shortcode and it has a separate image. The white Gear in the image is a separate image in size of 32*32 and the blue is a background color for it. I just need to minimize the ...
5
votes
1answer
81 views

Extending Genericons in WordPress

With wordpress 4+, is it possible to create our own genericons and add them to the existing list that is bundled with WordPress? I know exactly what I want, which I can design in illustrator, but the ...
1
vote
2answers
264 views

Jetpack social icons in other places on site

I believe Jetpack is using "Font Awesome" to display social icons. This is the css content: "\f203"; to display facebook for example. If I look in the site source I can't find anywhere the "Font ...
1
vote
2answers
69 views

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

I have a technology blog based on wordpress. I would like it to show a icon on top of the menu bar to show new post counter for today. Just like Android Authority website (check here http://prnt.sc/...
0
votes
1answer
157 views

Can wp_get_image_editor convert to icon?

I have a very simple question regarding wp_get_image_editor (https://codex.wordpress.org/Class_Reference/WP_Image_Editor). I can crop, resize and save an image like this: $image = wp_get_image_editor(...
0
votes
2answers
582 views

Icon over thumbnail according to post format

How would I go about adding icons over post thumbnails according to their post format. So for example if I have a post with a post format of audio the thumbnail would show everywhere(widgets, category ...
0
votes
1answer
3k views

Icon font not working on subdomains of multisite

I have a multi site installation consisting of the main domain and various subdomans. The domain and subdomain all use the one theme however the icon font of the theme doesn't display/load an any of ...
1
vote
3answers
2k views

Remove apple-touch-icon link generated by WordPress

I am adding Favicons and Icons to my site manually in a more proper way than what WordPress adds by default. My WordPress is generating the below 4 lines of code automatically. <link rel="icon" ...
131
votes
7answers
60k views

Disable emojicons introduced with WP 4.2

So WP 4.2 introduced emojis (smileys) that basically adds JS and other junk all over your pages. Something some people may find shocking. How does one completely erase all instances of this?
0
votes
1answer
33 views

Shown icon if old

I have this code <?php if( date('U') - get_the_time('U', $post->ID) < 24*60*60 ) : ?>New Post<?php endif; ?> for posts that are under 24 hours old I want to alter the code for it ...
0
votes
4answers
3k views

Theming Using Bootstrap Glyphicons and WordPress Dashicons

I use a mixture of both Bootstrap Glyphicons and WordPress Dashicons in my WordPress themes. However, something which really bugs me is how the WordPress Dashicons don't seem to scale appropriately ...
0
votes
1answer
318 views

Get custom classes in Wordpress Navigation Menu

i'm a beginner to Wordpress. I have a question is how to get only classes we put in CSS classes box in Navigation Menu? Not all with the default Wordpress classes. The purpose of this is i want to ...
0
votes
1answer
52 views

Custom Fields Question

I'm new to wordpress and I am trying to understand these custom fields. I read the wordpress codex page refering to custom fields but I have some questions. I take for example my site. I created a ...
2
votes
2answers
933 views

Wordpress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?

If I use on my Wordpress 4.0 the beautiful playlist shortcode I don't see the famous "Next" and "Prev" icons, but only this code in my Html code: <div class="wp-playlist-next"></div> and ...
3
votes
2answers
5k views

How to add iOS & fav icons to the theme?

I want to add iOs, Android and favourite icons to the website. Generally I udnerstand how they shold be implomented: link files in the head section and you good to go, however there are many lines (...
-1
votes
1answer
53 views

Why plugin's icon for the menu not found?

Why plugin's icon is not showing in plugin menu ? All code of plugin : add_action( 'admin_menu', 'register_my_custom_menu_page' ); function register_my_custom_menu_page(){ add_menu_page( 'Site ...
-1
votes
1answer
1k views

How To Add Class To Style Search Box

I am not very experienced with PHP but have managed to find a snippet to add a search bar to my main menu, using this code in my functions.php file: add_filter( 'wp_nav_menu_items','add_search_box', ...
0
votes
1answer
1k views

Change the search icon in twenty fourteen

I guess the title says all. I'm trying to change the search icon of the twenty fourteen theme, because I need a darker one. I tried like this: .search-toggle { background: url('http://www....
5
votes
2answers
6k views

Replacing Icons in the Dashboard

Is there a way for me to replace the icons in the WordPress Dashboard with custom ones? I'm imagining there's got to be a way to do this with the functions.php or, more ideally, with a custom-built ...
1
vote
1answer
1k views

Dashicons and Pseudo :before

I am generating a custom post type that uses the dashicons and allows users to select one to associate with the post. The idea being the user can select an icon from a drop down list and it is ...
4
votes
2answers
4k views

How do I set up the defualt page icon for admin menu?

What do i Change this to So its shows the default page icon?', plugins_url( 'myplugin/images/icon.png' ) add_menu_page( 'Info', 'Info', 'manage_options', 'LINK', '', plugins_url( 'myplugin/images/...
1
vote
4answers
11k views

Programmatically Add Font-Awesome Icons to Category Widget

I use the Categories widget on my sidebar(s) and I would like to display a Font Awesome icon next to each category listed in the widget. The icon would be the same for all categories, for now, but I ...
0
votes
2answers
19k views

how to add home icon instead of text in wordpress menu

i need to add "home.png" icon image as home button instead of text for example i searched this question in google and find out a way, but that didn't work. the method mentioned in those sites are ...
0
votes
1answer
1k views

How to insert icon in site title

I'm trying to insert an icon using the font awesome icon plugin, via the Customisations > Appearance > Site Title But this just displays the code, not the icon. Anyone know the solution to this? ...
1
vote
2answers
3k views

How to get Menu Navigation Labels to output HTML

I'm trying to follow Jason Bradley's advice on how to style my Wordpress menus. Specifically, I want to insert an icon before my navigation items using Font-Awesome. I tried putting this code in the ...
0
votes
1answer
640 views

Issue on adding Icons to Custom Post Type

Can you please take a look at following code and let me know why i am not able to add icons to custom post type? add_action( 'admin_head', 'my_icons' ); function my_icons() {?> <style type="...
0
votes
1answer
885 views

Display an icon with get_post_meta?

I want to display an icon in the post meta data in the loop.php, for each post have a specific meta_value! To be more specific i use this code to display an icon when a new posts has been published ...
1
vote
1answer
740 views

How to display an icon when a new post is published and then remove it when a specific time past?

Every time i publish a new post i want to display an icon like a badge (NEW) and after a specific time it will disappear. Lets say i publish a new post and i want to display that it is a new post. So ...
0
votes
1answer
130 views

Replacing WordPress Icons (menu,icons32, etc)?

I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
1
vote
1answer
259 views

Compact pingback list with favicons

On a blog with pingbacks and trackbacks (pings) enabled I want to show just a link with link text and a favicon of the external site in a compact list: no date, no text. How can I do that?