• Hey guys,

    I am running a child theme on Customizr and am trying to make a fairly straightforward change to my site. I want to move the customizr built in slider to the area above the content on my home page. The hook I need is __before_content but I am having trouble implementing that with the slider. I know it is possible because the featured pages can reside in the area above content. Just need to figure out how to get that slider there. Thanks for any help!

Viewing 1 replies (of 1 total)
  • Hi,

    Please take a look at this documentation.
    https://presscustomizr.com/snippet/move-featured-pages-block-anywhere-front-page/

    According to the above documentation, Please out the following codes in functions.php

    function customizr_remove_slider(){
    remove_action ('__after_header' , array( TC_slider::$instance , 'tc_slider_display'));
    
    }
    add_action('wp_head','customizr_remove_slider');
    add_action ('__before_main_container' , array( TC_slider::$instance , 'tc_slider_display' ), 10);

    It removes the slider and add back under the featured pages and above the post grid on homepage.

    Hope this example help you.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Moving Slider to Area Before Content in Post Lists’ is closed to new replies.