Multi str_replace php
str_replace(
array(
'<',
'>',
'/',
',',
'{',
'}',
'?',
'*'
),
'',
$value[0]->post_content
)
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…
html5shiv.googlecode.com/svn/trunk/html5.js or simply copy the code below and paste it into your header.php <!–[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]–>
Before we start please do support my Youtube channel Web Developer Green – https://www.youtube.com/channel/UCSilTsUejzMeHJ8rSvp2K_g master, thank you! HTML CODE <div class="r-faq"> <div class="r-wrap"> <h2>Top Questions, our customers Ask</h2> <div class="faq-q active">what is slow roasting? <i class="fas fa-plus"></i></div> <div class="faq-a" style="display:block;">Slow roasting is always better. The slower we bring the beans to temperature, the more consistent…
All of the codes below will be place on your function.php Change number of products displayed per page add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 1000;' ), 20 ); Archive columns global $woocommerce_loop; $woocommerce_loop['columns'] = 4; // Change the product category list column to 4. Archive columns with body class add_filter('body_class','archive_columns'); function archive_columns($classes) { global $woocommerce_loop; $classes[]…
Remove subcategory count. add_filter( 'woocommerce_subcategory_count_html', function(){ return ''; }); Change the number of loop shop columns. add_filter( 'loop_shop_columns', function(){ $cat_obj = get_queried_object(); $cat_id = $cat_obj->term_id; if( get_woocommerce_term_meta( $cat_id, 'display_type', true )== 'subcategories' ){ return 3; }else{ return 4; } }); Change the number of loop shop columns css. Just add a class on the body…
WordPress Menu Exporter