Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Divi theme and reply threading issue

@klink

Participant

Thank you @robkk It didn’t work, but I only have a basic understanding, so I’m not exactly sure if I put the code in the right place in the file. Here is what my functions.php file looks like with the code you provided.

<?php

add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array('parent-style')
    );
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );

register_nav_menus( array(
	'primary-menu'   => __( 'Primary Menu', 'Divi' ),
	'profile-menu'   => __( 'Profile Menu', 'Divi' ),
	'secondary-menu' => __( 'Secondary Menu', 'Divi' ),
	'footer-menu'    => __( 'Footer Menu', 'Divi' ),
) );
add_action( 'wp_print_scripts', 'rkk_reply_threading_divi' );

function rkk_reply_threading_divi() {

    if( function_exists( 'is_bbpress' ) && bbp_is_single_topic() && bbp_thread_replies() ) 

{
        wp_dequeue_script( 'divi-custom-script' );
    }
}
?>
Skip to toolbar