How to get the current scroll top position?
How to get the current scroll top position? Copy and past the following codes below to your JS file.
var current_scroll = window.scrollY; console.log( current_scroll );
Just simply go to your WordPress profile and ENABLE / DISABLE the settings. Please image below.
Before we start please do support my Youtube channel Web Developer Green – https://www.youtube.com/channel/UCSilTsUejzMeHJ8rSvp2K_g master, thank you! HTML CODE <div class="r-faq"> <div class="r-wrap"> <h2>Top Questions, our customers Ask</h2> <div class="faq-q active">what is slow roasting? <i class="fas fa-plus"></i></div> <div class="faq-a" style="display:block;">Slow roasting is always better. The slower we bring the beans to temperature, the more consistent…
Header hooks and filters Remove site description add_action( ‘genesis_site_description’, ‘genesis_seo_site_description’ ); Custom Logo structure add_filter( ‘genesis_seo_title’, ‘genesis_custom_seo_title’, 10, 3 ); function genesis_custom_seo_title( $title ) { if( get_header_image() ){ $title .= ‘<div class="logo-wrap">’; $title .= ‘<a class="logo-image" href="’.get_bloginfo(‘url’).’" title="’.get_bloginfo(‘name’).’">’; $title .= ‘<img src="’.get_header_image().’" alt="’.get_bloginfo(‘name’).’"/>’; $title .= ‘</a>’; $title .= ‘</div>’; }else{ $title = ‘<h1 class="site-title">’.get_bloginfo(‘name’).'</h1>’; }…
Demo slidetoggle Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.Aenean massa. Lconsectetuer ipsum dolor sit amet, adipiscing elitorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesquem. HTML mark up <div id="faq"> <h6>Lorem…
If you encountered the same error just like the image above, just follow this instructions. Open your wp-config.php in cpanel and add this code. define( ‘WP_MEMORY_LIMIT’, ‘128M’ );
Redirect selected pages or single page into specific page. Example, redirect a selected pages or a single page after login into your dashboard page, membership page, or any page you desired. You can use https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect this but this is only access once. Once you’ve login, you cannot repeat the redirection. Unlike `template_redirect` hook, this will…