Avada Forums Community Forum Related Posts not Showing on Post pages Reply To: Related Posts not Showing on Post pages

Anni
Participant
Post count: 3

Solved it! It was a conflict in my child theme functions.php since the update of the Avada Theme.
I had put this in it:
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );

function avada_main_dequeue_script() {
//de-register and de-queue all scripts we don’t need here
Fusion_Dynamic_JS::deregister_script(‘fusion-flexslider’);
Fusion_Dynamic_JS::deregister_script(‘jquery-flexslider’);
Fusion_Dynamic_JS::deregister_script(‘fusion-carousel’);
Fusion_Dynamic_JS::deregister_script(‘jquery-cycle’);
Fusion_Dynamic_JS::deregister_script(‘jquery-caroufredsel’);
Fusion_Dynamic_JS::dequeue_script(‘fusion-flexslider’);
Fusion_Dynamic_JS::dequeue_script(‘jquery-flexslider’);
Fusion_Dynamic_JS::dequeue_script(‘fusion-carousel’);
Fusion_Dynamic_JS::dequeue_script(‘jquery-cycle’);
Fusion_Dynamic_JS::dequeue_script(‘jquery-caroufredsel’);

}

As you can see I’ve now commented out the offending bits and it works!
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );

function avada_main_dequeue_script() {
//de-register and de-queue all scripts we don’t need here
Fusion_Dynamic_JS::deregister_script(‘fusion-flexslider’);
Fusion_Dynamic_JS::deregister_script(‘jquery-flexslider’);
//Fusion_Dynamic_JS::deregister_script(‘fusion-carousel’);
Fusion_Dynamic_JS::deregister_script(‘jquery-cycle’);
//Fusion_Dynamic_JS::deregister_script(‘jquery-caroufredsel’);
Fusion_Dynamic_JS::dequeue_script(‘fusion-flexslider’);
Fusion_Dynamic_JS::dequeue_script(‘jquery-flexslider’);
//Fusion_Dynamic_JS::dequeue_script(‘fusion-carousel’);
Fusion_Dynamic_JS::dequeue_script(‘jquery-cycle’);
//Fusion_Dynamic_JS::dequeue_script(‘jquery-caroufredsel’);

}

Very pleased with myself for finding and fixing the problem… hope it helps someone else
Anni
You can see Related Posts are now showing in the pages on my Blog