Reply To: Possible conflict with Visual Composer

Home Forums Support Possible conflict with Visual Composer Reply To: Possible conflict with Visual Composer

Home Forums Support Possible conflict with Visual Composer Reply To: Possible conflict with Visual Composer

#144792
Peter Islin Nielsen

Yeah, it’s super weird. I’ve tried with your suggested code, but it doesn’t help. But I think I’ve found something: After debugging like hell, I’ve narrowed (part of) the issue down to this little code snippet:

/**
 * Display the classes for the sidebar.
 *
 * @since 0.1
 * @param string|array $class One or more classes to add to the class list.
 */
function generate_right_sidebar_class( $class = '' ) {
	// Separates classes with a single space, collates classes for post DIV
	echo 'class="' . join( ' ', generate_get_right_sidebar_class( $class ) ) . '"';
}

I don’t know why, but if I remove this code from generatepress/inc/element-classes.php the issue seems to go away on some pages. Of course this not a useful solution because it provokes other errors, but maybe it can give you a hint in what direction to look. I don’t think it’s related to the sidebar – but it might be related to the way classes are handled.