Theme showing incorrect update

When it comes to developing your own stuff, it is always the best to make the code yours too, not just the copyright and such. As @Rarst already pointed out, the first thing to check if the theme’s folder. I faced the same issue before and changing the theme’s folder fixed the issue for me. … Read more

Adding dashicon fonts to the admin of pre 3.8 installs

This happens sometimes when the font is sent with a wrong MIME type. application/x-font-woff for example, is wrong. Try to add proper MIME types to your server configuration. In Apache, your can do that in a .htaccess: AddType image/svg+xml .svg AddType application/x-font-ttf .ttf AddType application/x-font-opentype .otf AddType application/vnd.ms-fontobject .eot AddType application/font-woff .woff You should add … Read more

How do I get gallery thumbnail URL and change the default thumbnail size?

The thumbnail size is based on the dimensions defined in WordPress Dashboard > Settings > Media, unless your theme overrides it. how can I make my theme override it? To change default post-thumbnail size, you need to use set_post_thumbnail_size. Add this in your functions.php file: if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); … Read more

What are WooCommerce starter themes? [closed]

if you are going for a e-commerce website here are some really good themes, plugins, and trickes that you will find really helpfull Themes Sommerce Shop: http://themeforest.net/item/sommerce-shop-a-versatile-ecommerce-theme/542001 Demo: http://www.yithemes.com/live/?theme=sommerce wordpress theme Mojo Theme: http://splashingpixels.com/themes/mojo/ Demo: http://mojo.splashingpixels.com/ wordpress theme Eggo Theme: http://splashingpixels.com/themes/eggo/ Demo: http://eggo.splashingpixels.com/ wordpress theme Storefront: Designer http://storefrontthemes.com/themes/designer/ wordpress theme Wootique: http://www.woothemes.com/products/wootique/ Demo: http://demo2.woothemes.com/wootique/ wordpress … Read more

Adding inline styles from a widget

Got it. So here’s how you insert a hover state halfway the processing of a page without violating the w3c rules. This is the code you don’t want your widget to produce: <div class=”mywidget”> <style>.mywidget a {color:red}, . mywidget a:hover {color:blue;}</style> <a>Link</a> </div> The following validates and is fairly elegant. In your widget generate the … Read more

Excluding categories from “Manage Categories” using a get_terms filter

I think you should use get_terms_args filter instead of get_terms and just add exclude arg, so now get_terms() function won’t retrieve those cats and you’ll get right count. Here’s code example: add_filter( ‘get_terms_args’, ‘mamaduka_edit_get_terms_args’, 10, 2 ); /** * Exclude categories from “Edit Categories” screen * */ function mamaduka_edit_get_terms_args( $args, $taxonomies ) { if ( … Read more

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