Skip to content

Instantly share code, notes, and snippets.

View chikaibeneme's full-sized avatar
:atom:
Focusing

Chika Ibeneme chikaibeneme

:atom:
Focusing
  • iKaDigital
  • Jamaica
View GitHub Profile
//Add to theme.liquid file before </body> tag
<script>
if(Storage !== undefined) {
var defaultLink = "/collections/all";
{% if template contains 'collection' %}
sessionStorage.collection = "{{ collection.url }}";
{% endif %}
<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 data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> Is the theme easy to install? </a></h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">Yes. Shopify themes are very easy to install. If you purchase from the Shopify Theme Store, it's as easy as one click after purchase. If you purchase from our website, it's still very easy. <a href="http://www.vectorthemes.com/help/installing-theme/" target="_blank">Here's a link</a> to our website that describes the process. If you run into any issues, let us know and we'd be glad to help you out.</div>
</div>
</div>
{% if product.variants.size > 0 %}
<form action="/cart/add" method="post" enctype="multipart/form-data" class="product-form product">
<input type='hidden' name='id' value="{{product.selected_or_first_available_variant.id}}" />
<input type='hidden' name='quantity' value="1" />
<button type="submit" name="add" {% unless product.available %} disabled {% endunless %} class=" {% unless product.available %} disabled {% endunless %} btn product-form__cart-submit{% if product.options.size == 1 and product.variants[0].title == 'Default Title' %} product-form__cart-submit--small{% endif %} btn-primary btn-sm btn-lg">
<span>
{% if product.available %}
{{ 'products.product.add_to_cart' | t }}
{% else %}
{{ 'products.product.sold_out' | t }}
{% if section.settings.frontpage_grid_style == false %}
<div class="container">
<div class="sixteen columns">
{% endif %}
<div class="image-with-text
featured_collections
clearfix across-{{section.settings.featured_links_per_row}} image-align--{{ section.settings.frontpage_image_position }}
full-width--{{ section.settings.frontpage_grid_style }}">
{% if section.blocks.size > 0 %}
{% for block in section.blocks %}
@font-face {
font-family: 'Proxima Nova Lt';
src: url('ProximaNova-Semibold.eot');
src: url('ProximaNova-Semibold.eot?#iefix') format('embedded-opentype'),
url('ProximaNova-Semibold.woff2') format('woff2'),
url('ProximaNova-Semibold.woff') format('woff'),
url('ProximaNova-Semibold.ttf') format('truetype'),
url('ProximaNova-Semibold.svg#ProximaNova-Semibold') format('svg');
font-weight: 600;
font-style: normal;
var s = `@font-face {
font-family: 'Proxima Nova Lt';
src: url('ProximaNova-Semibold.eot');
src: url('ProximaNova-Semibold.eot?#iefix') format('embedded-opentype'),
url('ProximaNova-Semibold.woff2') format('woff2'),
url('ProximaNova-Semibold.woff') format('woff'),
url('ProximaNova-Semibold.ttf') format('truetype'),
url('ProximaNova-Semibold.svg#ProximaNova-Semibold') format('svg');
font-weight: 600;
<div class="page-wrapper ">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="mobile-hidden-sm">
<ul class="theme-features_nav" role="tablist">
<li role="presentation" class=""><a href="#link1" aria-controls="overview" role="tab" data-toggle="tab" aria-expanded="false">Link 1</a></li>
<li role="presentation" class=""><a href="#link2" aria-controls="general" role="tab" data-toggle="tab" aria-expanded="false">Link 2</a></li>
<li role="presentation" class="active"><a href="#link3" aria-controls="homePage" role="tab" data-toggle="tab" aria-expanded="true">Link 3</a></li>
</ul>
function cmdm_private_event( $content )
{
global $post;
$cmdm_content = '';
$cmdm_private = false;
$cmdmc_post_types = array( 'tribe_events' );
if ( function_exists( 'tribe_get_custom_fields' ) )
{
function tribe_exclude_events_category( $wp_query ) {
// only filter the query if the user cannot edit pages (< editor)
if (!current_user_can('edit_pages')) {
$exclude_cats = array('exclude-me');
// Join with current tax query if set
if (is_array($wp_query->get( 'tax_query')))
{$tax_query =$wp_query->get( 'tax_query');}
else
{$tax_query = array();}