Skip to content

Instantly share code, notes, and snippets.

Working from home

Hossein Karami HosseinKarami

Working from home
Block or report user

Report or block HosseinKarami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
HosseinKarami / storefront-custom-homepage-shortcode-section.php
Last active Jan 15, 2018 — forked from stuartduff/storefront-custom-homepage-shortcode-section.php
Add a custom shortcode section to the storefront themes homepage template.
View storefront-custom-homepage-shortcode-section.php
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>';
View html5boilerplate.jade
!!! 5
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
You can’t perform that action at this time.