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 );
VIDEOJS: ERROR: videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present. This indicates that videojs-contrib-ads was initialized too late. It must be initialized immediately after video.js in the same tick. As a result, some ads will not play and some media events will be incorrect. For more…
First is you must have the browser.php in your current themes. If not, click here and create a file named browser.php in your current themes. Copy the codes below and place it into your function.php file. add_filter('body_class','browser_name_class'); function browser_name_class($classes) { $browser = new Browser(); $browser_detect_replace = str_replace( ' ', '-', $browser->getBrowser('browser_name:Browser:private') ); $browser_name = strtolower(…
Copy this code to your functions.php file add_action( 'bp_setup_nav', 'wdes_bp_add_nav_item', 100 ); function wdes_bp_add_nav_item(){ // Add music page in my profile menu item bp_core_new_nav_item( array( 'name' => 'My Music', 'slug' => 'my-music', 'default_subnav_slug' => 'sub-music', 'screen_function' => 'my_music_screen_function', 'show_for_displayed_user' => true, 'position' => 160 ) ); // Add upload music page in my profile menu…
ERROR: Warning: reset() expects parameter 1 to be array, boolean given in /wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 3113 Copy this code to your functions.php in-case you did not find where there error from. error_reporting(0);
Visit my demo page HTML CODE: <div id="prev-next" class="clearfix"> <a class="page-numbers" href="http://example.com/category/blog/">1</a> <a class="page-numbers" href="http://example.com/category/blog/page/2/">2</a> <a class="page-numbers" href="http://example.com/category/blog/page/3/">3</a> <a class="page-numbers" href="http://example.com/category/blog/page/10/">4</a> <a class="page-numbers" href="http://example.com/category/blog/page/10/">5</a> </div> SCRIPT $('a.page-numbers').live( 'click', function(e){ e.preventDefault(); $( '#loading' ).show(); var link = $( this ).attr( 'href' ); $( '#loop' ).animate({ opacity:0.1 }, 200, function(){ $( this ).load( link + ' #loop',…
How to add rtMedia custom settings just like the example image above? Just add the codes to your functions.php of your theme. add_filter( 'rtmedia_add_settings_sub_tabs', 'wdes_music_rtmedia_pro_settings_tabs_content' ); function wdes_music_rtmedia_pro_settings_tabs_content( $tabs ){ $tabs[] = array( 'href' => '#rtmedia-music-genre', 'icon' => 'dashicons-admin-tools', 'title' => esc_html__( 'Music Genre' ), 'name' => esc_html__( 'Music Genre' ), 'callback' => 'wdes_music_genre_settings_callback', );…