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 wp cli?
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 …
is there a hook to add a icon to a plugin? I just found the information about how to add it, when you want to publish a icon. https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
Question How can I change the text at the top of the column into an icon ? Example a star or a thumbs up. Like the "Comment" field. There is no text, just a icon. The files for the plugin is here, if you would take a look. https://github.com/bjovaar/terplugin
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
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"> …
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 …
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: …
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 …
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 …
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?
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?
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: …
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.
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 …
I figured out how to remove the author and date data from posts, but the corresponding icons still appear. What file or function should I edit to remove those? Update: I've figured out how to hide them by changing the color to match the background, but this still leaves a large gap where it went...
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.
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 …
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 …