Slider not moving when page scrolling up
-
I added following code to functions.php
//we hook the code on the wp_head hook, this way it will be executed before any html rendering. add_action ( 'wp_head' , 'move_my_slider'); function move_my_slider() { //we unhook the slider remove_action( '__after_header' , array( TC_slider::$instance , 'tc_slider_display' )); //we re-hook the slider. Check the priority here : set to 0 to be the first in the list of different actions hooked to this hook add_action( '__header' , array( TC_slider::$instance , 'tc_slider_display' ), 0); }
Then slider placed top, but on page scrolls up, it is not moving accordingly.
ordinary.net46.net/wordpress
- The topic ‘Slider not moving when page scrolling up’ is closed to new replies.