Two Navigation Menus in Themes Produce the same menus?
Try theme_location instead of menu in arguments. Too late here to look up specifics, but I remember documentation/code being absolutely confusing about that.
Try theme_location instead of menu in arguments. Too late here to look up specifics, but I remember documentation/code being absolutely confusing about that.
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
I know that this is an old question… but! there is a nice view count which means that people still need this. Maybe it would also help you close this question 😉 Here is an ajax version The page itself the JS code The PHP Ajax receiver and publishing code. Inside your Page Template – … Read more
Own theme If you are using your own theme, no need to worry about, because /languages folder is in your control that way. 🙂 Other’s theme But your concern is about other’s theme and you want to apply your translations into that theme, then the best way is to make a Child Theme. Because you … Read more
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
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
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
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
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
If get_theme_mod() is loading in the customize section, but not on site, it’s probably because you haven’t saved and published the field. Try altering a field and clicking ‘Save & Publish’.