A Pen by Christos Chiotis on CodePen.
This file contains hidden or 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
(function() { | |
function main() { | |
if (!window.WPLeafletMapPlugin) { | |
console.log("no plugin found!"); | |
return; | |
} | |
// iterate any of these: `maps`, `markers`, `markergroups`, `lines`, `circles`, `geojsons` | |
var maps = window.WPLeafletMapPlugin.maps; |
This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC] | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L] | |
# Follow symbolic links. | |
Options +FollowSymLinks | |
# Stop hotlinking. | |
RewriteCond %{HTTP_REFERER} !^$ |
This file contains hidden or 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
RewriteEngine on | |
RewriteBase / | |
# Check if this is the noredirect query string | |
RewriteCond %{QUERY_STRING} (^|&)m=0(&|$) | |
# Set a cookie, and skip the next rule | |
RewriteRule ^ - [CO=mredir:0:www.website.com] | |
# Check if this looks like a mobile device | |
# (You could add another [OR] to the second one and add in what you | |
# had to check, but I believe most mobile devices should send at |
This file contains hidden or 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
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Remove default padding */ | |
ul[class], | |
ol[class] { |
This file contains hidden or 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
<?php | |
/** | |
* The base configuration for WordPress | |
* | |
* The wp-config.php creation script uses this file during the | |
* installation. You don't have to use the web site, you can | |
* copy this file to "wp-config.php" and fill in the values. | |
* | |
* This file contains the following configurations: | |
* |
This file contains hidden or 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
# 7G FIREWALL v1.2 20190727 | |
# @ https://perishablepress.com/7g-firewall/ | |
# 7G:[CORE] | |
ServerSignature Off | |
Options -Indexes | |
RewriteEngine On | |
RewriteBase / | |
# 7G:[QUERY STRING] |
This file contains hidden or 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
html::-webkit-scrollbar { | |
width: 30px; | |
height: 30px; | |
} | |
html::-webkit-scrollbar-track { | |
background: linear-gradient(to right,#201c29,#201c29 1px,#100e17 1px,#100e17); | |
} | |
html::-webkit-scrollbar-thumb { |
This file contains hidden or 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
<?php | |
/* | |
* Set the following constants in wp-config.php | |
* These should be added somewhere BEFORE the | |
* constant ABSPATH is defined. | |
*/ | |
define( 'SMTP_USER', 'user@example.com' ); // Username to use for SMTP authentication | |
define( 'SMTP_PASS', 'smtp password' ); // Password to use for SMTP authentication |
This file contains hidden or 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
<script type='text/javascript'> | |
//<![CDATA[ | |
//Open External Links in New Window | |
jQuery(document).ready(function(){ | |
jQuery("#content a[href^=http], #content a[href^=https]").each(function(){ | |
if (this.href.indexOf(location.hostname) == -1) { | |
jQuery(this).attr({ "target":"_blank" }) |
NewerOlder