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
git clone -b <branch name> <repo url> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>table</title> | |
<style type="text/css"> | |
.odd { background-color: #808080; } | |
.generated_for_mobile { margin-bottom: 30px } |
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
# There are two ways we can do this. | |
# Either using CSS or using remove action hook. | |
# Using CSS | |
.related.products { | |
display: none; | |
} | |
# Using remove action | |
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); |
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
# We can do it using CSS | |
#page .woocommerce-tabs .panel{ | |
width: 100%; | |
} |
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
# Using CSS | |
.product .cart .single_add_to_cart_button{ | |
border: 2px solid #3bb54a; | |
background-color: #fff; | |
} |
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
# There are two ways we can hide Sale text | |
# Using CSS | |
.content-area .summary .onsale{ | |
display: none; | |
} | |
# Using remove action | |
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 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
# Using CSS | |
.shoptimizer-primary-navigation { | |
background-color: darkblue; | |
} |
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
# Using CSS | |
@media screen and (max-width: 767px){ | |
.site-branding p{ | |
display: none; | |
} | |
} |
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
#Using Hooks or CSS | |
# Code must go to functions.php of Storefront theme or its child theme | |
function remove_header_from_cart(){ | |
if( is_cart() ):?> | |
<style> | |
header, | |
footer{ | |
display: none; | |
} |
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
# jQuery | |
$( '.post-type-archive-product #secondary' ).prepend( '<div class="close-drawer"></div>' ); | |
# JavaScript | |
var drawer = document.createElement("div"); | |
drawer.className="close-drawer" | |
document.querySelector('.post-type-archive-product #secondary').appendChild(drawer); | |