This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ADD CLASS .flexbox-container TO PARENT - JOB DONE */ | |
.flexbox-container { | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
-ms-flex-align: center; | |
-webkit-align-items: center; | |
-webkit-box-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- here there's a simple example wwith a radio with field id features_website - 2 options --> | |
<?php $var = get_field('features_website'); ?> | |
<?php if( $var == 'web' ){ ?> | |
<p>It's a website...</p> | |
<?php } else if( $var == 'ecommerce' ){ ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddType x-httpd-php54 .php | |
Options +FollowSymLinks | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^olddomain.com [NC] | |
RewriteRule ^(.*)$ http://www.olddomain.com/$1 [L,R=301,NC] | |
RedirectMatch 301 ^(.*)$ http://newdomain.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- variable (shipping title downcased) --> | |
{% capture shipping_title_downcased %}{{ shipping_method.title | downcase }}{% endcapture %} | |
<!-- logic --> | |
<!-- if the order shipping method title downcased contains the word collection --> | |
{% if shipping_title_downcased contains "collection" %} | |
<h1>You can collect your products from our stores 9-5 on weekdays</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for collection in collections %} | |
{% if collection.title == product.vendor %} | |
{% capture thecollection %}<a class="product-brand" href="/collections/{{ collection.handle }}">{{ collection.title }}</a>{% endcapture %} | |
{% endif %} | |
{% endfor %} | |
{% if thecollection == '' %} | |
<a class="product-brand" href="{{ product.vendor | url_for_vendor }}">{{ product.vendor }}</a> | |
{% else %} | |
{{ thecollection }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign counter = 0 %} | |
{% for something in somethings %} | |
{% assign counter = counter | plus: 1 %} | |
{% endfor %} | |
{{ counter }} |
OlderNewer