Skip to content

Instantly share code, notes, and snippets.

View HosseinKarami's full-sized avatar
🏠
Working from home

Hossein Karami HosseinKarami

🏠
Working from home
View GitHub Profile
@HosseinKarami
HosseinKarami / html5boilerplate.jade
Created January 15, 2016 06:02 — forked from xtian/html5boilerplate.jade
HTML5 Boilerplate in jade
!!! 5
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
@HosseinKarami
HosseinKarami / storefront-custom-homepage-shortcode-section.php
Last active January 15, 2018 08:09 — forked from stuartduff/storefront-custom-homepage-shortcode-section.php
Add a custom shortcode section to the storefront themes homepage template.
function sf_output_custom_shortcode_section() {
echo '<section class="storefront-product-section storefront-product-category">';
echo '<h2 class="section-title">' . __( 'Music Category', 'storefront' ) . '</h2>';
echo do_shortcode( '[product_category category="music" columns="4" per_page="4"]' );
echo '</section>';