This file contains hidden or 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
/****************Customizing Woocommerce Checkout Page with CSS***************/ | |
.woocommerce form .form-row { | |
width: 100% !important; | |
} | |
.woocommerce-checkout #payment div.payment_box input.input-text, .woocommerce-checkout #payment div.payment_box textarea { | |
width: 100% !important; | |
padding: 8px; | |
} | |
.woocommerce #payment .form-row select, .woocommerce-page #payment .form-row select { | |
width: 100%; |
This file contains hidden or 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
/** | |
* Proper way to enqueue scripts and styles | |
*/ | |
function wpdocs_theme_name_scripts() { | |
wp_enqueue_style( 'style-name', get_stylesheet_uri() ); | |
wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' ); |
This file contains hidden or 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="blog-list-area"> | |
<div class="container"> | |
<?php | |
$custom_terms = get_terms( | |
'portfolio_cat', | |
array( | |
'orderby' => 'name', | |
'order' => 'DESC', | |
'hide_empty' => 1, |
This file contains hidden or 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 | |
add_filter('wp_image_editors', function($editors) { | |
return ['WP_Image_Editor_GD', 'WP_Image_Editor_Imagick']; | |
}); |
This file contains hidden or 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
<nav id="nav-single"> | |
<?php | |
$prev_post = get_previous_post(); | |
$id = $prev_post->ID ; | |
$permalink = get_permalink( $id ); | |
?> | |
<?php | |
$next_post = get_next_post(); | |
$nid = $next_post->ID ; | |
$permalink = get_permalink($nid); |
This file contains hidden or 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
{% for collection in collections %} | |
{% if collection.products_count > 10 %} | |
<h4> | |
<a href="{{ collection.url }}">{{ collection.title }}</a> | |
</h4> | |
{% endif %} | |
{% endfor %} |
This file contains hidden or 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
{% comment %} Our basic motive is to breakdown our products in different filters in form of tags.Let your customers search products with "shop by category,shop by size and many more | |
Replace the given code below in your collection.liquid | |
{% endcomment %} | |
<ul class="clearfix filters"> | |
<li class="clearfix filter"> | |
{% assign tags = 'Blue, Grey, Black' | split: ',' %} | |
<label>Shop by color</label> | |
<select class="coll-filter"> |
This file contains hidden or 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
{%- for product in collections[block.settings.collection].products -%} | |
{{ product | json }} | |
{% render 'product-card', product: product, column_wrapper: true %} | |
{% for tag in product.tags %} | |
<li><a href="/collections/all/{{ tag | handleize }}">{{ tag }}</a></li> | |
{% endfor %} | |
{%- endfor -%} |
This file contains hidden or 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
require_once function.php | |
<?php | |
// PAGINATION | |
function pagination($pages = '', $range = 4){ | |
$showitems = ($range * 2)+1; | |
global $paged; | |
if(empty($paged)) $paged = 1; | |