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
add_filter( ‘wpcode_add_snippet_show_library’, ‘__return_false’ );Continue reading
add_filter( ‘wpcode_code_snippets_table_columns’, function ( $columns ) { if ( isset( $columns[‘status’] ) ) { $status = $columns[‘status’]; unset( $columns[‘status’] ); $columns = array_slice( $columns, 0, 1, true ) + array( ‘status’ => $status ) + array_slice( $columns, 1, count( $columns…Continue reading
function current_year_shortcode() { return date(‘Y’); } add_shortcode(‘year’, ‘current_year_shortcode’);Continue reading
function mepr_override_protection( $protect, $post ) { if( has_category( ‘category_slug_here’, $post ) ) { $protect = false; } return $protect; } function mepr_override_content_protection( $protect, $post, $uri ) { return mepr_override_protection( $protect, $post ); } function mepr_override_redirection_protection( $protect, $uri, $delim ) {…Continue reading