Skip to content

Instantly share code, notes, and snippets.

@SitesByYogi
SitesByYogi / custom-dash-link.php
Created December 16, 2022 23:38
Add Custom Link To WordPress Admin Dashboard
@SitesByYogi
SitesByYogi / wc-quantity.php
Created December 2, 2022 19:02
WooCommerce Quantity Increments
/**
* Adjust the quantity input values
*/
add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products
function jk_woocommerce_quantity_input_args( $args, $product ) {
if ( is_singular( 'product' ) ) {
$args['input_value'] = 1; // Starting value (we only want to affect product pages, not cart)
}
$args['max_value'] = 80; // Maximum value
@SitesByYogi
SitesByYogi / print-properties.php
Created November 23, 2022 10:57
print attribute details on to webpage
<?php print_r($pageBannerImage); ?>
@SitesByYogi
SitesByYogi / change-link.js
Created October 24, 2022 13:18
change WordPress site title using jQuery
@SitesByYogi
SitesByYogi / clothing-store-about.html
Last active October 18, 2022 01:10
Full clothing store about page
<div class="tmpl-about-6 boldgrid-section dynamic-gridblock background-parallax" style="background-position: 50% 50%; background-size: cover; background-image: url('https://demo2.cloudwp.dev/trial-8384w43w/wp-content/uploads/2022/10/ixlibrb-0.3.5q80fmjpgcropentropycstinysrgbw1600h900fitcrops11369019c2a9bb4375e46943072f1eab.jpg');" data-image-url="https://demo2.cloudwp.dev/trial-8384w43w/wp-content/uploads/2022/10/ixlibrb-0.3.5q80fmjpgcropentropycstinysrgbw1600h900fitcrops11369019c2a9bb4375e46943072f1eab.jpg">
<div class="container">
<div class="row hidden-md hidden-lg hidden-sm" style="padding-top: 0px; padding-bottom: 50px; border-width: 0px;">
<div class="col-md-7 col-sm-5 col-xs-12 col-lg-7"></div>
</div>
<div></div>
<div class="row" style="padding-top: 0px;">
<div class="col-md-5 col-sm-7 col-xs-12 col-lg-5">
<div style="padding: 80px 5%;" class="bg-box-cover color5-background-color color-5-text-contrast bg-background-color bg-box">
<h2 class="h1 color2-color" style="text-align: center; font-size: 4em;">A
<div class="boldgrid-section">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title"><a role="button" href="#collapseOne" data-toggle="collapse" data-parent="#accordion" aria-expanded="true" aria-controls="collapseOne">
What steps do i need to take to return my product?
</a></h4>
<div class="boldgrid-section color2-background-color color-2-text-contrast bg-background-color" style="border-width: 0px;">
&nbsp;
<div class="container">
<div class="row" style="padding-top: 75px; padding-bottom: 0px;">
<h2 class="" style="border-width: 0px; padding: 0px 0px 0px 20px;">FAQs</h2>
</div>
</div>
</div>
<div class="boldgrid-section color2-background-color color-2-text-contrast bg-background-color" style="border-width: 0px; padding-top: 1em;">
<div class="gallery-full-width tmpl-gallery-3 boldgrid-section dynamic-gridblock">
<div class="container-fluid"></div>
</div>
<div class="boldgrid-section" style="border-width: 0px;" custom-classes="">
<div class="container">
<div class="row hidden-xs hidden-sm" style="border-width: 0px;">
<div class="col-md-2 col-sm-4 col-xs-6 col-lg-2">
<div class="bg-box-cover bg-box-flush bg-box">
<p class="mod-reset"><img class="bg-img alignnone wp-image-6453 size-medium" src="https://demo2.cloudwp.dev/trial-33006u64/wp-content/uploads/2022/10/ezshopper-model-1-300x300.png" alt="" width="300" height="300"></p>
<div class="tmpl-about-16 boldgrid-section dynamic-gridblock color2-background-color color-2-text-contrast bg-background-color" style="border-width: 0px; background-image: linear-gradient(to left, rgba(247, 247, 247, 0.81), rgba(247, 247, 247, 0.81)), url('https://demo2.cloudwp.dev/trial-33006u64/wp-content/uploads/2022/10/f2184fd912bfad570c83049c2b736def.jpg'); background-size: cover; background-position: 50% 50%;" data-image-url="https://demo2.cloudwp.dev/trial-33006u64/wp-content/uploads/2022/10/f2184fd912bfad570c83049c2b736def.jpg" data-bg-overlaycolor="#f7f7f7" data-bg-overlaycolor-alpha="0.81" data-bg-overlaycolor-class="3">
<div class="container">
<div class="row" style="padding-top: 25px; padding-bottom: 25px;">
<div class="col-md-12 col-xs-12 col-sm-12 col-lg-12">
<div class="boldgrid-wrap-row boldgrid-slider" data-config="{&quot;arrows&quot;:true,&quot;autoplay&quot;:false,&quot;autoplaySpeed&quot;:&quot;10&quot;,&quot;dots&quot;:false,&quot;infinite&quot;:true,&quot;bgOptions&quot;:{&quot;arrowsPos
@SitesByYogi
SitesByYogi / WPN-ezshopper-welcome-full.html
Last active October 16, 2022 17:19
Ez Shopper (Full) Welcome Page
<div class="boldgrid-section color-3-text-contrast color3-background-color" style="border-width: 0px; padding-top: 2em; padding-left: 0em; padding-bottom: 5em;">
<div class="container-fluid">
<div class="row">
<div class="col-lg-6 col-md-12 col-xs-12 col-sm-12">
<h2 class="hidden-sm hidden-md hidden-lg" style="border-width: 0px; font-size: 50px; text-align: center; line-height: 1.8em;">&nbsp; Aim TO
Amaze</h2>
</div>
<div class="col-lg-6 col-md-12 col-xs-12 col-sm-12"></div>
</div>
<div class="row swap-on-mobile" style="border-width: 0px;" custom-classes="swap-on-mobile">