skip to Main Content

Let the child CSS file load last in the DIVI Theme WordPress

With the following code I integrate the CSS file from the Divi child theme. add_action( 'wp_enqueue_scripts', 'divi_engine_dynamic_child_theme', 20 ); function divi_engine_dynamic_child_theme() { wp_enqueue_style( 'parent-theme', get_template_directory_uri() . '/style.css', array(), et_get_theme_version() ); wp_dequeue_style( 'divi-style' ); wp_enqueue_style( 'child-theme', get_stylesheet_uri(), array(), filemtime( get_stylesheet_directory() .…

VIEW QUESTION

Divi theme – How to Make the BuddyBoss BuddyPress Activity Stream Compatible With DIVI Builder?

Together with https://www.codementor.io/@robertverdes we fixed the activity stream compatibility issue between DIVI and BuddyBoss -- it was showing shortcodes. The change is to be made in the buddyboss-theme/buddypress/activity/entry.php file. ''' <div class="activity-inner"><?php $res=preg_replace('#[[^]]+]#','',bp_get_activity_content_body()); $pos=strpos($res,"["); if($pos>0){ $posEnd = strpos($res,"&hellip;",$pos); if($posEnd>$pos){ $replaceStr=substr($res,$pos,$posEnd-$pos);…

VIEW QUESTION
Back To Top
Search