Hide:
/usr/libexec/PlistBuddy -c "Add :LSUIElement bool true" /Applications/iTerm.app/Contents/Info.plist
Show:
/usr/libexec/PlistBuddy -c "Delete :LSUIElement" /Applications/iTerm.app/Contents/Info.plist
<!-- The grid links, change the grid column sizes | |
with the below addition. Style as required --> | |
<ul class="list-inline grid-toggle"> | |
<li><h5>GRID:</h5></li> | |
<li><a class="six" href="#">6</a></li> | |
<li><a class="four" href="#">4</a></li> | |
<li><a class="three" href="#">3</a></li> | |
<li><a class="two" href="#">2</a></li> | |
</ul> |
// # Tictail Product Image resize | |
// | |
// Use on themes that dont use the "mobile optimized layout" feature on tictail. | |
// The code resizes the products <img src=""> to lower resolution images. | |
// When document is ready preform the following actions: | |
// | |
$(function () { | |
if (window.matchMedia("(max-width:768px)").matches) { | |
$('.lazy').attr('data-original',function(i,e){ |
// Add the following code between the <head> tags in the theme.liquid file. | |
if (window.location.protocol != "https:") | |
window.location.href = "https:" + window.location.href.substring(window.location.protocol.length); |
(function($) { | |
$.fn.TTprices = function(options){ | |
// Default Settings | |
// | |
var settings = $.extend({ | |
threshold : 1000, // Default price threshold (sek) | |
discount : 50, // Discount percentage (%) | |
exclude : [] // Products to exclude | |
}, options); |
// Gulp plugin setup | |
var gulp = require('gulp'); | |
// Gulp Ruby for local build | |
var sass = require('gulp-ruby-sass'); | |
// Merge Streams | |
var merge = require('merge-stream'); | |
// Bower Components |
{ "products":[ | |
{ | |
"title":"One", | |
"handle":"link-one", | |
"tags":[ | |
"Red", | |
"Square", | |
"Autumn \/ Winter" | |
], | |
"variants":[ |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Addition: Force SSL | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |