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
# ignore all files starting with . | |
.* | |
# track this file .gitignore (i.e. do NOT ignore it) | |
!.gitignore | |
# track .editorconfig file (i.e. do NOT ignore it) | |
!.editorconfig | |
# track readme.md in the root (i.e. do NOT ignore it) |
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 SVG to media libary upload | |
function cc_mime_types($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'cc_mime_types'); |
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
/** Wordpress memory limit. */ | |
define('WP_MEMORY_LIMIT', '128M'); | |
/* Hides all updates to the core and plugins : Change to false to update */ | |
define('DISALLOW_FILE_MODS',true); | |
// Only allow 5 post revisons | |
define('WP_POST_REVISIONS', 5); // Change to false if you don't want any to save | |
// Empty trash after 7 days |
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
# HTTPS wordpress rewrite | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{ENV:HTTPS} !=on | |
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] |
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
// Fade out on scroll | |
jQuery(window).scroll(function(){ | |
jQuery(".fadeoutup").css("opacity", 1 - jQuery(window).scrollTop() / 550); | |
}); |
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
// twitter widget | |
if (function_exists('register_sidebar')) { | |
register_sidebar(array( | |
'name'=> 'Twitter', | |
'id' => 'twitter' | |
)); | |
} |
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
// Woocommeres theme support | |
add_action( 'after_setup_theme', 'woocommerce_support' ); | |
function woocommerce_support() { | |
add_theme_support( 'woocommerce' ); | |
} |
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 a button when there is no price displayed - edit price.php | |
<p class="price"><?php echo $product->get_price_html(); ?></p> // Remove this and replace with | |
<p itemprop="price" class="price"> | |
<?php | |
$price = $product->get_price_html(); | |
if(empty($price)) | |
{ |
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
# hides the files | |
defaults write com.apple.finder AppleShowAllFiles NO | |
# Shows the files | |
defaults write com.apple.finder AppleShowAllFiles YES |
OlderNewer