Move Featured Pages below Page Content
-
I want to replace the built-in home page slider on the home page with the “Smart Slider 3” plug-in. When I turn off the built-in slider and put the SS3 shortcode into my home page content, the SS3 slider appears below the “Featured Pages” section.
I have the ‘classic’ style enabled.
I Tried the instructions here ( https://presscustomizr.com/snippet/move-featured-pages-block-anywhere-front-page/ ) creating a child theme (Childify Me) and tried the following code to move the featured pages above the footer.
//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_fp'); function move_my_fp() { //we unhook the featured pages remove_action ( '__before_main_container', array( TC_featured_pages::$instance , 'tc_fp_block_display'), 10 ); //we re-hook the block. Check out the priority here : set to 0 to be the first in the list of different actions hooked to this hook add_action ( '__after_content', array( TC_featured_pages::$instance , 'tc_fp_block_display'), 0 ); }
But I get the error: Fatal error: Class ‘TC_featured_pages’ not found in /home/bobswh5/public_html/asburyunitedmethodist.org/wp-content/themes/customizr_child/functions.php on line 5
I’m guessing that something has changed in the theme code since the instructions were written. Any thoughts about how to accomplish moving the “Featured Pages” below the page content?
Thanks in advance.
BOb.The page I need help with: [log in to see the link]
- The topic ‘Move Featured Pages below Page Content’ is closed to new replies.