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
#gforms_confirmation_message_1 { | |
border-bottom: 1px solid #a5c199; | |
border-top: 1px solid #a5c199; | |
margin: 40px auto; | |
} | |
#gform_confirmation_wrapper_1 { | |
padding: 10px 0; | |
background: #dff0d8 none repeat scroll 0 0; | |
} | |
#gform_confirmation_message_1 { |
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
// Remove Admin bar | |
function remove_admin_bar() | |
{ | |
// return true; | |
if (!current_user_can('administrator') && !is_admin()) { | |
return false; | |
} else { | |
return true; | |
} | |
} |
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
add_filter( 'wp_login_errors', 'wpse_161709', 10, 2 ); | |
function wpse_161709( $errors, $redirect_to ) | |
{ | |
if( isset( $errors->errors['confirm'] ) ) { | |
// echo "<pre>"; | |
// print_r($errors->errors); | |
// echo "</pre>"; | |
// echo $errors->errors['confirm'][0]; | |
$errors->errors['confirm'][0] = "Please wait for and email, you don't need to do anything right now."; |
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
Add to functions.php | |
add_action( 'login_enqueue_scripts', 'enqueue_my_script' ); | |
function enqueue_my_script( $page ) { | |
wp_enqueue_script( 'my-script', 'http://www.xxx.net/wp/wp-content/themes/xxx/js/myjs-file.js', null, null, true ); | |
} | |
Add to new .js file in theme |
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
-- Functions.php | |
// http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/ | |
// Creating the widget | |
class meor_widget_facebook extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
// Base ID of your widget | |
'meor_widget_facebook', |
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
-- Functions.php | |
// http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/ | |
// Creating the widget | |
class meor_widget_posts extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
// Base ID of your widget | |
'meor_widget_posts', |
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 | |
<div class="treatments-view-all"> | |
<a href='#'>View all ></a> | |
</div> | |
CSS | |