Jquery UI tabs
Disable ui tabs menu
$("#tabs").tabs("option","disabled", [0, 1]); // Option 1
$( "#tabs" ).tabs( "disable", "#tabs-2" ); // Option 2
$( '#tabs li.disabled-tab' ).addClass( 'ui-state-disabled' ); // Option 3
Get Header Title function custom_category_page_title() { global $wp_query, $wpdb; $category_ = get_query_var('cat'); $current_cat = get_category ($category_); $category_id = $current_cat->term_id; echo '<header class="entry-header">'; echo'<h1 class="entry-title" itemprop="headline">'.get_cat_name( $category_id ).'</h1>'; echo '</header>'; }
Collection of Genesis header hooks and customization’s How to remove page title? add_action('get_header','remove_title'); function remove_title(){ remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); }
Using your Add to Wishlist button with the specific product, after clicking this will automatically add to your wishlist page. See the button mark up below. <header> <a href="#>WISH LIST COUNT : <span>0</span></a> </header> // Button only without ajax loading GIF <a href="http://yoursite.com/product/product-2/?add_to_wishlist=218" rel="nofollow" data-product-id="218" data-product-type="simple" class="add_to_wishlist">Add to Wishlist</a> // Default wishlist button mark up…
Renaming existing tabs. add_filter( ‘woocommerce_product_tabs’, ‘woo_rename_tabs’, 98 ); function woo_rename_tabs( $tabs ) { $tabs[’description’] = array( ‘title’ => __( ‘WORKING’, ‘woocommerce’ ), ‘priority’ => 10, ‘callback’ => ‘the_content’ ); $tabs[’reviews’] = array( ‘title’ => __( ‘FAULTY’, ‘woocommerce’ ), ‘priority’ => 30, ‘callback’ => ‘woo_before_tabs_title’ ); return $tabs; } function woo_before_tabs_title() { the_field(‘faulty’); } This code…
Get the sub category of the current product category page. This code is applied if you are viewing the product archive page. The codes below and a sample category hierarchy list. Example: Category Parent Category 1 Category 2 Category 3 Category 4 Category 1.1 Category 2.1 Category 3.1 Category 4.1 Here’s a code: $category_object =…