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 sjaved_remove_and_replae_admin_bar_stylesheet(){ | |
//Remove the existing stylesheets | |
wp_dequeue_style( 'admin-bar' ); | |
wp_deregister_style( 'admin-bar' ); | |
//Enque the custom CSS file from your current theme or child theme | |
wp_enqueue_style( 'custom-admin-bar', get_stylesheet_directory_uri() . '/custom-admin-bar.css', false, '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
[data-style='burger'] ul.menu { | |
background: #FFBA00; | |
} | |
.responsive_nav_toggler { | |
border: 0px solid #FFFFFF; | |
} | |
.responsive_nav_toggler > div { | |
background: #1900d3; | |
} | |
.responsive_nav_toggler:hover { |
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 | |
/** | |
* Template Name: Blank Page | |
* | |
* A blank custom page template. | |
* | |
* Author - Sajid Javed | |
* | |
* The "Template Name:" bit above allows this to be selectable | |
* from a dropdown menu on the edit page screen. |
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 print_custom_style (){ | |
if(!is_super_admin()){ | |
echo '<style> #wp-admin-bar-blog-1 {display: none !important} </style>'; | |
} | |
} | |
//For wp-admin | |
add_action('admin_head', 'print_custom_style'); |
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
/*Optional: You can optionally change the register text e.g. Signup*/ | |
$register_text = 'Register'; |
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
/*Required: Replace Register_URL with the URL of registration*/ | |
$custom_register_link = 'Register_URL'; |
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 |
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( 'register', 'sjaved_register_link' ); | |
function sjaved_register_link( $link ) { | |
/*Required: Replace Register_URL with the URL of registeration*/ | |
$custom_register_link = 'Register_URL'; | |
/*Optional: You can optionally change the register text e.g. Signup*/ | |
$register_text = 'Register'; |
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 ms_redirect_to_referrer_after_login( $defaults ){ | |
$referrer = wp_get_referer(); | |
if( $referrer ){ | |
$defaults['redirect_login'] = $referrer; | |
} | |
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
/* | |
Theme Name: Twenty Sixteen Child Theme | |
Theme URI: http://www.sajidjaved.com/ | |
Description: A Twenty Sixteen child theme | |
Author: Sajid | |
Author URI: http://www.sajidjaved.com | |
Template: twentysixteen | |
Version: 1.0.0 | |
*/ |