Fix Admin Bar on Mobile
@media only screen and (max-width: 767px) { #wpadminbar {margin-top:-45px;} }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
@media only screen and (max-width: 767px) { #wpadminbar {margin-top:-45px;} }Continue reading
add_action(‘template_redirect’, function () { if (preg_match(‘#^/members/(.+)#’, $_SERVER[‘REQUEST_URI’], $matches)) { wp_redirect(home_url(‘/’ . $matches[1]), 301); exit; } });Continue reading
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
add_action(‘login_head’, function () { $tokens = rd_client_get_brand_tokens(); $css = ‘:root{‘.rd_client_brand_css_vars_from_tokens($tokens).’}’; echo ‘ ‘; echo ‘ ‘; }); // Change Login Logo Link to Rosso Digital with UTM Parameters add_filter(‘login_headerurl’, function () { $site_title = rawurlencode(get_bloginfo(‘name’)); // Encode Site Title return…Continue reading
/** * 1) Omdirigera prenumeranter till startsidan efter inloggning */ add_filter( ‘login_redirect’, function( $redirect_to, $requested_redirect_to, $user ) { if ( $user instanceof WP_User && in_array( ‘subscriber’, (array) $user->roles, true ) ) { return home_url(‘/’); } return $redirect_to; }, 10, 3…Continue reading
sttsContinue reading
document.addEventListener(‘DOMContentLoaded’, function() { // Select the input element by its id var usernameInput = document.getElementById(‘user_login’); // Check if the element exists to avoid any potential JavaScript errors if (usernameInput) { // Change the placeholder text usernameInput.placeholder = ‘Nome utente o…Continue reading