This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* https://businessbloomer.com/category/woocommerce-tips/visual-hook-series/ | |
*/ | |
//remover resultado de pagina shop | |
remove_action( 'woocommerce_before_shop_loop' , 'woocommerce_result_count', 20 ); | |
//remover orden de catalogo pagina shop | |
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'body_class', 'knx_body_class_for_pages' ); | |
/** | |
* Adds a css class to the body element | |
* | |
* @param array $classes the current body classes | |
* @return array $classes modified classes | |
*/ | |
function knx_body_class_for_pages( $classes ) { | |
global $post; | |
$classes[] = $post->post_name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT p.ID, | |
p.post_title, | |
p.post_type, | |
pm.meta_value | |
FROM wp_posts p | |
LEFT JOIN wp_postmeta pm | |
ON pm.post_id = p.ID | |
AND pm.meta_key = '_sku' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE wp_posts, | |
wp_postmeta, | |
wp_comments, | |
wp_commentmeta | |
FROM wp_posts | |
LEFT JOIN wp_postmeta | |
ON wp_postmeta.post_id = wp_posts.ID | |
AND wp_postmeta.meta_key = '_sku' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<h2>Box Title</h2> | |
<p>The Quick Brown Fox Jumped Over The Lazy Dog</p> | |
<p><a class="divLink" href="http://www.labnol.org/">Webpage URL</a></p> | |
</div> | |
<script> | |
jQuery(document).ready(function () { | |
// Or use this to Open link in same window (similar to target=_blank) | |
jQuery(".box").click(function(){ | |
window.location = jQuery(this).find("a:first").attr("href"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Set in row parent "five-columns" class | |
*/ | |
@media screen and (min-width: 768px) { | |
.five-columns.vc_row .vc_col-sm-2 { | |
float: left; | |
width: 18.5%; | |
padding: 0; | |
margin-right: 1.5%; | |
min-height: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bf_dequeue_woocommerce_styles_scripts() { | |
if( function_exists( 'is_woocommerce' ) ) { | |
if( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { | |
# Styles | |
wp_dequeue_style( 'woocommerce-general' ); | |
wp_dequeue_style( 'woocommerce-layout' ); | |
wp_dequeue_style( 'woocommerce-smallscreen' ); | |
wp_dequeue_style( 'woocommerce_frontend_styles' ); | |
wp_dequeue_style( 'woocommerce_fancybox_styles' ); | |
wp_dequeue_style( 'woocommerce_chosen_styles' ); |