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
## First go to wp-config.php and just paste the line below | |
define( 'WPCF7_AUTOP', false ); //Sometimes this block of code will not work on live server then please try the second | |
## If the first one is not working then please go to your theme folder and paste the line in functions.php | |
add_filter('wpcf7_autop_or_not', '__return_false'); |
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
$('#return-to-top').click(function() { // When arrow is clicked | |
$('body,html').animate({ | |
scrollTop : 0 // Scroll to top of body | |
}, 500); | |
}); |
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
<!-- Carousel --> | |
<div id="carouselHero" class="carousel slide carousel-fade" data-ride="carousel" data-pause="false"> | |
<?php if( have_rows('carousel') ): $id = 0 ?> | |
<div class="carousel-inner"> | |
<?php while( have_rows('carousel') ): the_row(); $id++ ?> | |
<div class="carousel-item <?php if($id == 1): echo "active"; endif; ?>"> | |
<div class="content-wrap"> | |
<?php | |
$logo = get_sub_field('logo'); | |
$title = get_sub_field('title'); |
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 wvs_noo_mebla_theme_support() { | |
remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 30 ); | |
add_action( 'woocommerce_after_shop_loop_item_title2', 'wvs_pro_archive_variation_template', 10 ); | |
add_action( 'woocommerce_after_shop_loop_item_title', 'wvs_pro_archive_variation_template', 10 ); | |
add_action( 'woocommerce_after_shop_loop_item_title2', 'woocommerce_template_loop_add_to_cart', 11 ); | |
// remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10); | |
} |
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 | |
echo apply_filters( | |
'woocommerce_loop_add_to_cart_link', // WPCS: XSS ok. | |
sprintf( | |
'<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s" %s>%s</a>', | |
esc_url( $product->add_to_cart_url() ), | |
esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), | |
esc_attr( $product->get_id() ), | |
esc_attr( $product->get_sku() ), | |
esc_attr( isset( $args['class'] ) ? $args['class'] : '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
ul.products li.product-awq_onimage .add-links { | |
right: 0 !important; | |
} |
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
ed.addButton('button_green', { | |
title: 'Add span', | |
image: '../wp-includes/images/smilies/icon_mrgreen.gif', | |
cmd: 'button_green_cmd' | |
}); | |
ed.addCommand('button_green_cmd', function () { | |
var data = { | |
title: 'Default Title', | |
limit: 10 | |
} |
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
if ( class_exists( 'Woo_Variation_Gallery' ) ): | |
function wvg_serialize_support(){ | |
$columns = absint( get_option( 'woo_variation_gallery_thumbnails_columns', apply_filters( 'woo_variation_gallery_default_thumbnails_columns', 4 ) ) ); | |
$thumbnail_js_options = array( | |
'slidesToShow' => $columns, | |
'slidesToScroll' => $columns, | |
'focusOnSelect' => true, | |
// 'dots'=>true, | |
'arrows' => wc_string_to_bool( get_option( 'woo_variation_gallery_thumbnail_arrow', 'yes' ) ), |
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
RewriteEngine on | |
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC] | |
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC] | |
RewriteRule \.(zip|php)$ - [F] |
OlderNewer