• Resolved odamfm

    (@odamfm)


    Hi, i have followed all the instructions but without success.
    The plugin is not adding the classes, the attribute nor the inline style to the image.
    I am using the WP last version and the Jupiter theme.
    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor gschoppe

    (@gschoppe)

    Unfortunately, Jupiter theme outputs most images using custom markup, rather than using wp_get_attachment_image(), or any of the other pre-built WordPress functions for outputting image tags. As such, there is no way for wp-smartcrop to be able to identify or modify these images.

    I would recommend submitting a support ticket with Artbees (the studio behind Jupiter), although I wouldn’t hold out much hope for them fixing this, as the flaw is baked pretty deeply into their theme.

    Thread Starter odamfm

    (@odamfm)

    You are totally right!

    I made a test with a custom query and it works perfect.

    $image = wp_get_attachment_image(get_post_thumbnail_id($post->ID), 'large');

    Tested with get_the_post_thumbnail() but it’s not working for me.

    I will submit a ticket to Artbees for sure, i would like to use the theme and the plugin together in future projects.

    Thanks for your support and for this must-have plugin.

    Thread Starter odamfm

    (@odamfm)

    Artbees is not changing this, do you know if Divi theme uses wp_get_attachment_image() ??

    Plugin Contributor gschoppe

    (@gschoppe)

    Unfortunately, it doesn’t look like Divi uses the standard WordPress image rendering functions either. You can test by inspecting images on their demo pages. If they were rendered by WordPress functions, they should have a class like wp-image-## on them, as well as having a src-set attribute on the tag. Neither of those seem to be present in the images created by the Divi Page builder.

    This is, unfortunately, very common with page builders like Divi or Visual Composer. They ignore the WordPress way of doing things, and instead implement their own proprietary solutions, that offer far less flexibility for developers.

    Thread Starter odamfm

    (@odamfm)

    Yeah, is a shame, but they are not using the WordPress way even in the blog posts, not just in static pages made with page builders.

    I guess that if i want to use the plugin i have to make my own theme.

    By the way, do you have an standalone version of the plugin?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not working with Jupiter theme’ is closed to new replies.