Building theme so user can change header image [closed]

You can add theme support in your functions file for a Custom Header page using this code which also enables you to add a default size and selector class which you can style with CSS. add_theme_support( ‘custom-header’, array( ‘width’ => 320, ‘height’ => 60, ‘header-selector’ => ‘.site-title a’, ‘header-text’ => false ) ); Or this … Read more

Change text “My Basket” in woocommerce artificer theme

Technically, woocommerce_cart_link() is added to the site just before the menu by the artificer_header_cart_link() function, which is pluggable, meaning you could change that function to call a function that duplicates woocommere_cart_link() but with the text changed. However, I think the easiest thing to do is to tap into the gettext filter which kicks in for … Read more

How to remove uncategorised posts from WordPress

You have to add the argument to exclude the ‘Uncategorised’ category using this: <?php wp_list_categories(‘title_li=&exclude=XX’); ?> where XX is the ID of the category to exclude. Here is the codex page http://codex.wordpress.org/Template_Tags/wp_list_categories#Include_or_Exclude_Categories

WOW.js Script Tag Initialization Header/Footer

The theme should enqueue styles and scripts on the wp_enqueue_scripts hook, per Codex recommendations. function theme_enqueue_scripts() // register wow.js & animate.css wp_enqueue_style( ‘animate-stylesheet’, get_stylesheet_directory_uri() . ‘/library/css/animate.css’, array(), ”, ‘all’ ); wp_enqueue_script( ‘wow-js’, get_stylesheet_directory_uri() . ‘/library/js/vendor/wow.min.js’, array(), ”, ‘all’ ); } add_action(‘wp_enqueue_scripts’, ‘theme_enqueue_scripts’ ); Then your initization script can be added to the wp_head hook. function … Read more

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