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 plugin? outside of the site I did find: How to Add a Default Site Icon in Theme's Customizer but when I try: function default_icon() { global $wp_customize; $wp_customize->get_setting('site_icon',array ( 'default' => home_url() . 'img/test.png' )); } add_action('customize_register','default_icon'); I've also tried add_setting with: function default_icon() { global …
Category: Web

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="text/css" media="screen"> #menu-posts-product .wp-menu-image { background: url(<?php bloginfo('url') ?>/wp-content/themes/BootWp/img/contactLensemenu.png) no-repeat 6px !important;} .icon32-posts-product { background: url(<?php bloginfo('url') ?>/wp-content/themes/BootWp/img/contactLensepage.png) no-repeat !important; } </style> <?php } I have checked the root and image file existence, they are all correct but the code not working
Category: Web

WordPress Favicon not Working For Images/Videos/PDFs

I am using WordPress with Neve theme, for my site, Favicon is working on posts/pages, but Favicons aren't visible for JPG/PNG/Videos. If I use the Theme Customizer and select the Favicon PNG image, it shows on all posts and images etc. But I want to have different Favicon Images on different URLs. I saw that Theme was adding the below code on my site in Head. <link rel="apple-touch-icon" sizes="72x72" href="https://milyin.com/wp-content/uploads/Icons/Icon72x72.png"> <link rel="icon" type="image/png" sizes="32x32" href="https://milyin.com/wp-content/uploads/Icons/Icon32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="https://milyin.com/wp-content/uploads/Icons/Icon16x16.png"> …
Category: Web

Font awesome icons not showing: 'access-control-allow-origin

I recently switched to a multisite, but since then the font awesome icons don't show up anymore on one subsite of the multisite. The icons do show up on my other subsite. On my staging site, also a multisite, the icons show up on both sites. Access to font at 'https://secureservercdn.net/blabla.com/wp- content/themes/ave/assets/vendors/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. What could be the problem? edit: investigating further reveals that …
Category: Web

Why could I not change the icon of the default Add media button that I added into the toolbar of TinyMCE?

I used this guide to change the default Add media icon in WP: How to replace default icon on "Add Media" button? But, I had also added an Add media button into the toolbar using this codeblock: add_filter( 'mce_buttons', 'custom_tinymce_button' ); function custom_tinymce_button( $buttons ) { $buttons[] = 'wp_add_media'; return $buttons; } However, when I changed the default Add media icon, the one that appears above the editor was changed, and not the one present in the toolbar. See this: …
Category: Web

How to edit the default icon of Add Media button?

I am trying to replace the default Add Media icon in my Wordpress site. I searched for the same on the web and got this: How to replace default icon on "Add Media" button? This seems to work for the OP, and ofcourse should've worked for others too. But, I am getting confused as the answer contains words like Child Theme and all. I could understand the first part of the answer, but I lost the track when the answer …
Category: Web

How should SVG icons best be applied to user-entered content?

Replacing icon fonts with inline SVG icons seems to be strongly recommended by many developers these days. That makes sense for icons that can be hardcoded in theme files. But what about those that involve user-entered content? For example, perhaps you want the user to be able to add a class to a list when writing a post in the backend, and it changes to use custom SVG icons as bullets. Or perhaps all headings of a certain level need …
Category: Web

Hover a css icon width other color inside wp_get_attachment_image

I'm using ACF and have inside a loop: <?php echo wp_get_attachment_image( $button_image, 'small', 'sidebar-btn-icon', ["class" => "sidebar-btn-icon" , "alt"=> "sidebar icons"]); ?> This shows a svg icon. fill: #eee doesn't work because there is no direct path. Now I'm wondering how the change the color after a hover action?
Category: Web

Widget Style - Icon Type

I would like to use custom image instead icon from Icon Picker in Widget. Problem is, that icon has size about 70x70px, but if I choose image, and I upload it there, it is much more bigger, even tough I use smaller image. Icon large image small image Could someone help me how to set size of the image? I want to have image of virus in front of caption "TEST" (like alternative with icon). Edit: This is widget (FT: …
Category: Web

How do I remove the eye icon that shows visibility on login screen and reset password screen

I'm looking for a way to remove the eye icon that shows visibility on login screen (wp-admin and wp-login) and reset password screen (/wp-login.php?action=rp). As you can see on the screenshot below : Login Page : Reset password Page : Update : I need to remove this button not only the visibility : Thanks in advance for your reply. regards.
Category: Web

Export / import

I have a GeneratePress theme website on a multisite wordpress and I am having a problem with duplicating the site. Everything is imported correctly, but one field is always missing after import - Icons http://prntscr.com/vut1f6 On the original version that I made an export from, there is a link to an external icon source. All links from this field disapear when I import the site to a new domain. Can anyone help so I can avoid editing every icon after …
Category: Web

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.citizen-science.at/wordpress/wp-content/themes/cs/img/search-icon.png'); } which results in nothing.
Category: Web

How to edit original wordpress HTML source code and add icon?

Hello I want to know how to edit wordpress html and add custom html for example I want to add html element like icon beside a link. here is the code: wordpress original source code: <a rel="nofollow" class="comment-reply-link"> Reply </a> I want to edit this wordpress html code to add this icon to be: <a rel="nofollow" class="comment-reply-link"> <i class="material-icons"> Reply </i> </a> UPDATE: another example to be clear: I want to add custom id to the link which is wordpress …
Topic: icon Wordpress
Category: Web

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/icon.png' ), 10 ); I find out how to do this. Step 1. Screenshot or find the image you like. Step 2. Name it icon.png step 3. Create a folder myplugin inside the plugin folder and then create inside that folder images folder and then put the icon.png image inside the image folder and thats it. in …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.