How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?

You don’t want to unregister the script; that would make it unavailable to be enqueued. Rather, you want to dequeue the script. You have two choices: If you know the callback function through which wp_enqueue_script( ‘jquery’ ) is called, you can simply call remove_action( ‘wp_footer’, ‘callback_function_name’ ) More likely, you won’t know the callback function … Read more

How to put a banner ad between post 1 and post 2 on homepage only

Register a widget, and call it on the front-page when the the_post action is called second time: add_action( ‘wp_loaded’, ‘wpse_80202_register_banner_widget’ ); function wpse_80202_register_banner_widget() { // used on the first page of main loop only register_sidebar( array ( ‘name’ => ‘Banner front-page ‘, ‘id’ => ‘frontpage_banner’, ‘before_widget’ => ‘<div class=”frontpage-banner”>’, ‘after_widget’ => ‘</div>’ ) ); } … 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

How to attach region identifier to a pretty url?

Referencing this question I was able to resolve this issue: Need help with add_rewrite_rule To briefly display the changes I made here it goes, in my theme functions.php I added the following action: add_action(‘init’,’custom_rewrite_rule’); function custom_rewrite_rule(){ add_rewrite_rule(‘^student/([^/]*)/’,’index.php?pagename=student&country=$matches[1]’,’top’); } This above allows for my urls to be the pretty form of: {{site_url}}/student/ca/ {{site_url}}/student/us/ However this form … Read more

How to override parent theme function through the child theme [closed]

I just downloaded the theme to check it out, and header-extensions.php is not loaded as a template: /** Load Structure */ require_once (AMBITION_STRUCTURE_DIR . ‘/header-extensions.php’); So you wouldn’t be able to override the file in that manner. I’m not sure exactly what you are trying to do, but it looks like ambition_headercontent_details method is in … Read more