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
.pllessdemo { | |
.column-2 { border: 2px solid red; } | |
.row-1 .column-2 { border: none; border-bottom: 2px solid red; } | |
// | |
.row-2 .column-2 { background: @pl-base !important; } | |
.row-3 .column-2 { background: @pl-text !important; } | |
.row-4 .column-2 { background: @pl-link !important; } | |
.row-5 .column-2 { background: @pl-background !important; } | |
.row-6 .column-2 { background: @pl-header !important; } | |
.row-7 .column-2 { background: @pl-footer !important; } |
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
$current_blog_id = $GLOBALS['blog_id']; | |
if ($current_blog_id == 1) { | |
// for site 1 | |
} elseif ($current_blog_id == 2) { | |
// for site 2 | |
} else { | |
// for rest of sites | |
} ?> |
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
/** | |
* Remove WordPress SEO (by Yoast) Stuff | |
* | |
* These different functions from various sources can come in handy when you manage sites for other people | |
* and you don't want to give them too much control or you don't want to risk them messing up the settings. | |
* | |
*/ | |
// get rid of WordPress SEO metabox - adapted from http://wordpress.stackexchange.com/a/91184/2015 | |
if ( ! is_super_admin() ) { |
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
<?php | |
# WP Engine Staging Sites Rules | |
### Must be placed *after* the 'DOMAIN_CURRENT_SITE' (for Multisite) or 'WP_SITEURL' (for non-Multisite) constant is defined (near the bottom of Production Server's wp-config.php) | |
//Multisite | |
if( defined('DOMAIN_CURRENT_SITE') && preg_match('/.staging.wpengine.com$/', constant('DOMAIN_CURRENT_SITE')) ) { | |
//Non-Multisite | |
//if( defined('WP_SITEURL') && preg_match('/.staging.wpengine.com$/', constant('WP_SITEURL')) ) { |
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
<?php | |
/* | |
Plugin Name: Force SSL URL Scheme | |
Plugin URI: https://gist.github.com/cliffordp/6378826 | |
Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work. Recommended to me by Jason Cohen of WP Engine on 2013-08-28. | |
Version: 1.0.0 | |
Author: WebAware | |
Author URI: http://www.webaware.com.au/ | |
*/ |
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
<?php | |
/* | |
Plugin Name: PageLines DMS Toolbar Customizer | |
Author: TourKick (Clifford P) | |
Author URI: http://tourkick.com/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmstoolbarcustomizer | |
Plugin URI: http://www.pagelinestheme.com/remove-dms-editor-toolbar-items-2/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmstoolbarcustomizer | |
Description: Removes 'Get More Sections' link from Add To Page panel, removes Theme panel, and removes DMS panel from the DMS editor for non-Administrators (e.g. Editors). <strong>Edit the plugin's file to customize other options.</strong> May also choose to copy code directly into your DMS child theme's functions.php file instead of activating this plugin. <a href="http://www.pagelinestheme.com/dms-editor-lock-down/" target="_blank">http://www.pagelinestheme.com/dms-editor-lock-down/</a> may also be helpful. | |
License: GPLv2 | |
Version: 1.1.20131105 | |
*/ |
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
<?php | |
if( function_exists('pl_has_editor') ){ | |
//PageLines v3 (DMS) is the current theme | |
} | |
if( !function_exists('pl_has_editor') ){ | |
//PageLines v3 (DMS) is NOT the current theme | |
} |
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
<?php | |
function nofollow_cat_posts($text) { | |
global $post; | |
if( in_category(1) ) { // SET CATEGORY ID HERE | |
$text = stripslashes(wp_rel_nofollow($text)); | |
} | |
return $text; | |
} | |
add_filter('the_content', 'nofollow_cat_posts'); |
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
.ie6, | |
.ie7, | |
.ie8 { | |
i, | |
[class^="icon-"]:before, | |
[class*="icon-"]:before { | |
content: "" !important; | |
display:none; | |
} | |
} |
OlderNewer