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 | |
add_filter( 'wp_dropdown_users_args', 'add_subscribers_to_dropdown', 10, 2 ); | |
/** | |
* Allow subscribers to be set as authors | |
* | |
* @link http://wordpress.stackexchange.com/a/216117 | |
* | |
* @since 1.0.0 | |
* |
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 | |
add_filter( 'language_attributes', 'add_no_js_class_to_html_tag', 10, 2 ); | |
/** | |
* Add 'no-js' class to <html> tag in order to work with Modernizr. | |
* | |
* (Modernizr will change class to 'js' if JavaScript is supported). | |
* | |
* @since 1.0.0 | |
* |
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
@media only screen and (max-width: 900px) { | |
.site-description { | |
color: #fff; | |
opacity: 0.5; /* Remove or comment out this line */ | |
padding: 0 0 9px; | |
} | |
} |
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 | |
$view = Tribe__Tickets__Tickets_View::instance(); | |
$event_id = get_the_ID(); | |
$user_id = get_current_user_id(); | |
$user_has_rsvp = $view->has_rsvp_attendees( $event_id, $user_id ); |
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 | |
class AutoActivator { | |
const ACTIVATION_KEY = 'youractivationkeyhere'; | |
/** | |
* AutoActivator constructor. | |
* This will update the license field option on acf | |
* Works only on backend to not attack performance on frontend | |
*/ |
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
;(function($, window, document, undefined){ | |
'use strict'; | |
var init = function() { | |
} | |
/** | |
* Strictly not necessary because you're already loading this script in the | |
* footer, but sometimes there will be other scripts that didn't fire yet |
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 | |
add_action( 'widgets_init', 'wpe_remove_encourage_tls', 0 ); | |
function wpe_remove_encourage_tls() { | |
remove_action( 'init', 'wpesec_encourage_tls' ); | |
} |
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
/* Find the following section in your theme's style.css file (should be around line 2353) and add the line below */ | |
.home-top .widget, | |
html > body div.slide-excerpt-border { | |
background-color: #fff; | |
bottom: 50px; | |
font-size: 36px; | |
position: absolute; | |
right: 0; /* Add this line */ | |
width: 40%; |
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?://mydomain.com.com/wp-(content|includes)# => https://mydomain.com/wp-$1 | |
#https?://mydomain.com.com/blog/# => https://mydomain.com/wp-$1 | |
#http://installname-wpengine\.netdna-ssl\.com# => https://installname-wpengine.netdna-ssl.com |
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
.testimonials span[itemprop="name"]::after { | |
content: ","; | |
} |