Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View WebVooruit's full-sized avatar

WebVooruit WebVooruit

View GitHub Profile
@WebVooruit
WebVooruit / template-sample.html
Last active April 16, 2021 11:23
Copernica Template with jQuery
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WebVooruit Template Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0 " />
<meta name="format-detection" content="telephone=no" />
<style type="text/css">
</style>
@WebVooruit
WebVooruit / .htaccess
Last active January 28, 2019 13:41
.htaccess HTTPS + HSTS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
</IfModule>
@WebVooruit
WebVooruit / functions.php
Created November 22, 2018 11:08
Allow custom field when ACF is active
<?
// allow WordPress Custom Field (meta box) when ACF (Advanced Custom Fields) is active
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
@WebVooruit
WebVooruit / wp-config.php
Created September 20, 2018 15:02
FTP setup in WP Config
<?php
define('FS_METHOD', 'ftpext'); // tells WordPress to use FTP to upload/update plugins and theme's.
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
define( 'FTP_BASE', '/' );
define( 'FTP_CONTENT_DIR', '/wp-content/' );
define( 'FTP_PLUGIN_DIR ', '/wp-content/plugins/' );
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'www.domain.com');
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
</IfModule>
<!-- default embed code -->
<iframe width="560" height="315" src="https://www.youtube.com/embed/9BHGxXINg-Y" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<!-- updated embed code -->
<iframe width="560" height="315" src="https://www.youtube.com/embed/9BHGxXINg-Y?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
@WebVooruit
WebVooruit / .htaccess
Created February 24, 2018 23:09
Switch to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]