Skip to content

Instantly share code, notes, and snippets.

View jhkoning's full-sized avatar

Json jhkoning

View GitHub Profile
@ebinnion
ebinnion / wordpress_remote_images
Created November 9, 2017 15:59 — forked from bjorn2404/wordpress_remote_images
WordPress load remote images if they don't exist on the local development server htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/(.*)$
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads/%1 !-f
RewriteRule ^wp-content/uploads/(.*)$ http://www.remotesite.com/wp-content/uploads/$1 [R=301,L]
</IfModule>
<?php
global $woo_options;
get_header();
// Determine whether or not the homepage sidebar is enabled (enabled by default).
// Also determine the various differences in logic if the sidebar is enabled/disabled.
$has_sidebar = true;
$content_css_class = ' home-sidebar';
$main_css_class = 'col-left';
$mini_features_count = 2;