Skip to content

Instantly share code, notes, and snippets.

View sasigit7's full-sized avatar
🎯
Keep Calm & Carry On Coding

Shashi sasigit7

🎯
Keep Calm & Carry On Coding
View GitHub Profile
@sasigit7
sasigit7 / functions.php
Created July 13, 2022 15:29 — forked from mikejolley/functions.php
WooCommerce - Show quantity inputs for simple products within loops.
<?php
/**
* Code should be placed in your theme functions.php file.
*/
add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 );
function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) {
if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) {
$html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">';
$html .= woocommerce_quantity_input( array(), $product, false );
@sasigit7
sasigit7 / gutenberg.txt
Created January 16, 2022 13:09 — forked from chrismccoy/gutenberg.txt
Gutenberg Resources
Building WordPress Block Themes with the New Gutenberg Pattern Block
https://richtabor.com/pattern-block/
Extract one block from post content
https://allisontarr.com/2021/11/05/extract-one-block-from-post-content/
How to Add a Block Pattern to a WordPress Theme
https://getbutterfly.com/how-to-add-a-block-pattern-to-a-wordpress-theme/
How to create a parallax image in Gutenberg
@sasigit7
sasigit7 / resources-web-developers-designers.md
Created January 3, 2022 07:26 — forked from kevinwhoffman/resources-web-developers-designers.md
Resources for Web Developers and Designers

Resources for Web Developers and Designers

This is an incomplete list of resources including courses and individuals who publish content that has helped me grow as a web developer and designer. Many of these resources are WordPress-specific as that is my current area of specialization. This list will grow over time. If you've got something to add, send me a link @kevinwhoffman and I'll check it out!

Course Providers

@sasigit7
sasigit7 / front-end-curriculum.md
Created April 16, 2018 19:56 — forked from stevekinney/front-end-curriculum.md
Front-end Curriculum Draft

Module 1

  • Semantic markup
  • HTML standards mode and quirks mode
  • HTML fundamentals
    • Classes and IDs
  • CSS fundamentals
    • Selectors
    • Resets and normalizers
    • The box model