• Bonjour
    Page Builder de DIVI permet de creer des modeles specifiques pour certaines pages
    j’ai bien reussi a faire un modele pour la page adverts mais pas pour les pages enfants

    je pense que le plugin ne tiens pas compte des régles du themes DIVI 4

    avez vous prevu de le rendre compatible

    amicalement

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    i am afraid i am not really planning any special integration for the Divi theme, although what might work for you is adding the code below in the (child) theme functions.php file

    
    add_action( "init", function() {
      remove_filter( "the_content", "adverts_the_content", 999 );
    }, 1000 );
    add_shortcode( "advert_single", function( $args ) {
        ob_start();
        if( isset( $args["post_id"] ) ) {
            $post_id = $args["post_id"];
        } else {
            $post_id = get_the_ID();
        }
            
        $post_content = get_post( $post_id )->post_content;
        $post_content = wp_kses($post_content, wp_kses_allowed_html( 'post' ) );
        $post_content = apply_filters( "adverts_the_content", $post_content );
            
        include apply_filters( "adverts_template_load", ADVERTS_PATH . 'templates/single.php' );
        $content = ob_get_clean();
    
        return $content;
    });
    

    Then when creating a template for Ad details pages (that is a page like https://demo.wpadverts.com/lite/advert/rayman-legends/) you should be able to use a [advert_single] shortcode which will render the Ad details.

    Hi there,
    This plugin works great with Divi.
    You can see how it looks like on the recent website I made for myself:
    https://photomarket.online/
    Greg gives great support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatible avec page builder de DIVI ?’ is closed to new replies.