Sticky header
/*Sticky header*/ #site-header { position: fixed; top:0; opacity: 0.98; } #main { margin-top: 70px !important; /* 70px – width of the header.*/ }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/*Sticky header*/ #site-header { position: fixed; top:0; opacity: 0.98; } #main { margin-top: 70px !important; /* 70px – width of the header.*/ }Continue reading
/** * WooCommerce My Account Page login Redirect */ add_action( ‘wp_login’, ‘owp_redirect_after_logout’ ); function owp_redirect_after_logout() { wp_redirect( home_url() ); exit(); }Continue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-7X38N6QS3M’); GContinue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-7X38N6QS3M’); GContinue reading
/* * Make Private Posts visible to Subscribers * Typically only visible to admin or editor */Continue reading
function redirect_to_bestellen_after_login($redirect, $user) { $redirect_page_id = get_page_by_path(‘bestellen’); //slug van de doelpagina if ($redirect_page_id) { $redirect = get_permalink($redirect_page_id); } return $redirect; } add_filter(‘woocommerce_login_redirect’, ‘redirect_to_bestellen_after_login’, 10, 2);Continue reading
// Leidt niet-ingelogde gebruikers om van de /bestellen pagina naar de /my-account pagina. // Als de gebruiker is ingelogd, kunnen ze de /bestellen pagina normaal bekijken. function redirect_non_logged_users() { if (is_page(‘bestellen’) && !is_user_logged_in()) { //doelpagina ‘bestellen’ wp_redirect(site_url(‘/mijn-account’)); //redirect bestemming ‘/mijn-account’…Continue reading