Skip to content

Instantly share code, notes, and snippets.

View tribulant's full-sized avatar

Tribulant tribulant

View GitHub Profile
.modal-backdrop {
display: none;
}
[newsletters_meta key="_regular_price"]
@tribulant
tribulant / gist:4c3901a591a526362194dbb563294d8e
Created November 20, 2018 22:08
Products in Newsletters
[newsletters_posts language="en" showdate="N" eftype="excerpt" orderby="post_date" order="ASC" thumbnail_size="thumbnail" thumbnail_align="left" thumbnail_hspace="15" category="" post_type="product"]
@tribulant
tribulant / auto-iframe-height.html
Created November 13, 2018 10:21
Auto iFrame Height
<!-- Auto iFrame Height Instructions: https://www.lost-in-code.com/programming/javascript/javascript-auto-iframe-height/ -->
<iframe class="autoHeight" id="myframe" name="myframe" src="http://example.com/iframe.php" height="240" width="320" frameborder="0" scrolling="auto"></iframe>
@tribulant
tribulant / auto-iframe-height.html
Created November 13, 2018 10:18
Auto iFrame Height
// Auto iFrame Height instructions: https://www.lost-in-code.com/programming/javascript/javascript-auto-iframe-height/
<script type="text/javascript" src="autoheight.js"></script>
@tribulant
tribulant / ssl
Created October 9, 2018 11:16
SSL redirect specific folder
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.yourdomain.com/folder/$1 [R,L]
@tribulant
tribulant / ssl
Created October 9, 2018 11:16
SSL redirect specific domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
@tribulant
tribulant / ssl
Created October 9, 2018 11:15
SSL redirect all traffic
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
@tribulant
tribulant / wp-config.php
Created September 11, 2018 00:01
Change WordPress Temporary Directory
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
@tribulant
tribulant / mailinglists.php
Created August 27, 2018 12:40
Newsletters - Get Mailing Lists
<?php
global $Mailinglist;
$mailinglists = $Mailinglist -> select(true);
//print_r($mailinglists);
?>