How to add custom css file in theme?

I usually add this piece of code if I want to add another css file <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/58351/<?php bloginfo(“template_url’); ?>/css/my_custom_css.css” type=”text/css” media=”screen” /> I believe the theme makers want to retain as much as possible of the theme’s layout design. So a custom css file doesn’t hurt much. I think it’s more of a support … Read more

What is a Theme textdomain?

In this case, ‘themify’ is the defined textdomain for the Theme, used to make the Theme translatable. (Codex reference: load_theme_textdomain()). Making a Theme translation-ready requires a few steps. Define the Theme’s textdomain: load_theme_textdomain( ‘themify’, TEMPLATEPATH.’/languages’ ); Define translatable strings in the template. This is done using one of a few translation functions: __() (for returned … Read more

Does the functions.php file ever get called during an AJAX call? Debug AJAX

admin-ajax.php loads wp-load.php: /** Load WordPress Bootstrap */ require_once( dirname( dirname( __FILE__ ) ) . ‘/wp-load.php’ ); wp-load.php loads wp-config.php, and there wp-settings.php is loaded. And here we find this: // Load the functions for the active theme, for both parent and child theme if applicable. if ( ! defined( ‘WP_INSTALLING’ ) || ‘wp-activate.php’ === … Read more

WordPress Theme Preview Image

There is no automatic preview. You need to create the screenshot yourself and place it in the theme/child theme folder named screenshot.png The recommended image size (currently) is 1200px wide by 900px tall, however the screenshot will only be shown as 387×290. It is over-sized to allow for high-resolution viewing on HiDPI displays. Note that … Read more

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