Compact pingback list with favicons

The first you do: separate regular comments and pingbacks. In your comments.php set the type parameter for both: <ol class=”commentlist”> <?php // show regular comments wp_list_comments( array ( ‘type’ => ‘comment’, ‘style’ => ‘ul’ ) ); ?></ol> <ol class=”pinglist”> <?php // show pingbacks and trackbacks, short: “pings” wp_list_comments( array ( ‘type’ => ‘pings’, ‘style’ => … Read more

Icon font not working on subdomains of multisite

The problem: Console log: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at xxx. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). The solution: Add the following header to your .htaccess file: # https://wordpress.org/support/topic/font-awesome-not-working?replies=8#post-4921179 # Allow icon font to load on subdomains of WordPress multisite install. <FilesMatch “.(ttf|otf|woff)$”> Header set Access-Control-Allow-Origin “*” </FilesMatch> …before: … Read more

Plugin that inserts favicon next to links

(from the closing duplicate) I typed this plugin very quickly during posting this… It seems to work, see http://leau.co (where I quickly tested it) or http://edward.de.leau.net (where I have tested it against more links in the post content) e.g. see the bottom left sidebar or some posts with multiple links in it. Hmmm, I will … Read more

Add 32×32 icon to custom post type index page

If when using firebug you are seeing #icon-album.icon32.icon32-posts-album { background:url(‘<?php get_template_directory_uri(); ?>/images/album32x32.png’) no-repeat; } Then you’re passing the string ‘<?php get_template_directory_uri(); ?>/images/album32x32.png’ to the background property in your css file – and they don’t execute php code. If the image and CSS are in a theme folder (or at least the CSS file is in … Read more

How can a default site icon be set in customizer?

You can see the customizer API to set default icon. This should do the trick, I guess: function mytheme_customize_register( $wp_customize ) { $wp_customize->add_setting( ‘site_icon’ , array( ‘default’ => get_bloginfo(‘template_url’) . ‘/images/logo.png’, ) ); } add_action( ‘customize_register’, ‘mytheme_customize_register’ );

How can I use a different default admin menu icon for custom post type?

add_action( ‘admin_head’, ‘custom_post_type_icon’ ); function custom_post_type_icon() { ?> <style type=”text/css” media=”screen”> #menu-posts-intranet-pages .wp-menu-image { background: url(“PATH TO SMALL ICON”) no-repeat 6px 6px !important; } #menu-posts-intranet-pages:hover .wp-menu-image, #menu-posts-intranet-pages.wp-has-current-submenu .wp-menu-image { background-position:6px -16px !important; } #icon-edit.icon32-posts-intranet-pages {background: url(“PATH TO BIG ICON”) no-repeat;} </style> <?php } This way is much better I believe as it also allows to … Read more

How to add iOS & fav icons to the theme?

Hook into wp_head in your functions.php file. add_action(‘wp_head’, ‘add_your_stuff’); function add_your_stuff() { ?> <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/157869/<?php echo get_stylesheet_directory_uri();?>/favicon.ico” type=”image/x-icon” /> <link rel=”apple-touch-icon” href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon.png” /> <link rel=”apple-touch-icon” sizes=”57×57″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-57×57.png” /> <link rel=”apple-touch-icon” sizes=”72×72″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-72×72.png” /> <link rel=”apple-touch-icon” sizes=”76×76″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-76×76.png” /> <link rel=”apple-touch-icon” sizes=”114×114″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-114×114.png” /> … Read more

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