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
// let's add our custom class to the actual link tag | |
function atg_menu_classes($classes, $item, $args) { | |
if($args->theme_location == 'primary') { | |
$classes[] = 'nav-link'; | |
} | |
return $classes; | |
} | |
add_filter('nav_menu_css_class', 'atg_menu_classes', 1, 3); | |
function add_menuclass($ulclass) { |
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
$("body").append( | |
"<a href='https://themeforest.net/checkout/from_item/36367959?license=regular&support=bundle_6month&_ga=2.253043593.1220166448.1645934757-918236941.1644836235' target='_blank' class='buy-now-btn'><img src='assets/images/envato.png' alt='envato'/>Buy Now</a>" | |
); | |
$("body").append("<div class='switch-box'><label id='switch' class='switch'><input type='checkbox' onchange='toggleTheme()' id='slider'><span class='slider round'></span></label></div>"); | |
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
document.writeln('<script src="assets/js/bootstrap.bundle.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/meanmenu.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/ajaxchimp.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/form-validator.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/contact-form-script.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/owl.carousel.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/jquery-ui.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/magnific-popup.min.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/aos.js" type="text/javascript"></script>'); | |
document.writeln('<script src="assets/js/tweenMax.min.js" type="text/javascript"></script>'); |
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; | |
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
{% 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 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
<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
<?php | |
add_filter('wp_image_editors', function($editors) { | |
return ['WP_Image_Editor_GD', 'WP_Image_Editor_Imagick']; | |
}); |
NewerOlder