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('blocksy:pro:woocommerce-extra:wish-list:slug', function ($mywlist) { | |
$mywlist = 'mywishlist'; | |
return $mywlist; | |
}); |
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
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
add_filter( 'woocommerce_loop_add_to_cart_link', 'replacing_add_to_cart_button', 10, 2 ); | |
function replacing_add_to_cart_button( $button, $product ) { | |
$button = '<a class="ct-button" href="' . $product->get_permalink() . '">View product</a>'; | |
return $button; | |
} |
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
<?php | |
function activate_category_page() { | |
// register_taxonomy_for_object_type('post_tag', 'page'); | |
register_taxonomy_for_object_type('category', 'page'); | |
} | |
add_action( 'init', 'activate_category_page' ); |
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
<script> | |
jQuery(document).ready(function($) { | |
$('.ct-filter').on( 'click', function(event){ | |
var $type = $(this).data("filter"); | |
if($type == "all"){ | |
$('.entry-card').fadeOut(0); | |
$('.entry-card').fadeIn(500); | |
} else { | |
$('.entry-card').hide(); | |
// For CPTs just change the category class to your CPTs slug for example: '.projects-' |
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
<script> | |
jQuery(document).ready(function($) { | |
$('.ct-filter').on( 'click', function(event){ | |
var $type = $(this).data("filter"); | |
if($type == "all"){ | |
$('.type-product').fadeOut(0); | |
$('.type-product').fadeIn(500); | |
} else { | |
$('.type-product').hide(); | |
// For CPTs just change the category class to your CPTs slug for example: '.projects-' |
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
<script type="text/javascript"> | |
jQuery(document).ready(function () { | |
jQuery("a.ct-image-container").attr("target", "_blank"); | |
jQuery("h2.entry-title a").attr("target", "_blank"); | |
}); | |
</script> |
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
[data-prefix="single_blog_post"] article { position:relative; } | |
[data-prefix="single_blog_post"] .entry-header ul.entry-meta , [data-prefix="single_blog_post"] .ct-featured-image { | |
position:absolute; | |
z-index:1; | |
left: 0; | |
right: 0; | |
margin-left: auto; | |
margin-right: auto; } |