Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry, I will.
    In any case, your answer is not for my case, because I need the slider after the title.

    Regards.

    Hi Nikeo,

    first of all, compliments for your beautiful theme.

    I’m trying to use your snippet on a normal page of my website. I’m trying (without succeeding) to put the slider inside the body of the page, meaning after the title, embedded in the body of the page.
    At this time, I’m only able to see the slider after the body of the page, as shown here:
    https://hotel.moltosenso.it/accessori-per-le-camere/tv/

    May you help me, please? I’m acting with the re-hook solution as a filter that acts before the page load, but I guess there is also a way to show the slider as a page content, isn’t there?

    I’m pasting here the snippet, as it is now:

    add_action ( ‘wp_head’ , ‘move_my_slider’);
    function move_my_slider() {
    $page_id = 25;
    if (is_page($page_id)) { //we use the slider in this way only for that specific page
    //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(‘__after_main_container’ , array( TC_slider::$instance , ‘tc_slider_display’ ), 0);
    }}

    Do you find anything to change in order to obtain what I need? Or do you have another solution?

    Thank you so much!

    Kind regards,
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)