Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi! Thanks for using our plugin. I’ve tested this with WordPress TwentyFifteen default theme and it’s working fine. What you’re experiencing is probably because of the theme you’re using. Can you please tell me which one is it? Is it available for free? I’d like to install it on my computer and check if I can find what’s amiss.

    Thread Starter utahvalleymoms

    (@utahvalleymoms)

    Yes, it’s the theme Customizr. It just shows a white picture instead of the featured url.

    Plugin Author David Aguilera

    (@davilera)

    Oh, I see. I thought you were talking about a different thing (the Customize user interface for themes in WordPress’ Dashboard).

    Is this theme available for free? Where can I get it from?

    Thread Starter utahvalleymoms

    (@utahvalleymoms)

    Yes, the theme is free through WordPress. And my apologies, I realize how that was confusing.

    Plugin Author David Aguilera

    (@davilera)

    Hi! I’ve tried to find a proper solution for your issue, but I was only able to find a workaround… In particular, you’ll have to edit your theme directly, which means that you’ll lose your changes whenever the theme is updated. Anyway, this is what you have to do:

    Open the file functions.php and add the following function in the end (if you’re using a child theme, you can add it in the child’s functions.php file):

    add_filter( 'tc_thumb_html', 'nelio_fix_feat_image', 10, 4 );
    function nelio_fix_feat_image( $tc_thumb, $size, $post_id, $custom_thumb_id ) {
     if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( $post_id ) )
      return get_the_post_thumbnail( $post_id, $size );
    return $tc_thumb;
    }

    Open the file inc/parts/class-content-post_thumbnails.php and go to line 55. You should see the following code:

    $image = wp_get_attachment_image_src( $_thumb_id, $tc_thumb_size);
    if ( false && empty( $image[0] ) )
      return array();

    Change it to the following:

    $image = wp_get_attachment_image_src( $_thumb_id, $tc_thumb_size);
    $uses_nelioefi = function_exists( 'uses_nelioefi') &&
                     uses_nelioefi( $_post_id );
    if ( !$uses_nelioefi && empty( $image[0] ) )
      return array();

    And that’s it! You should now be able to see external featured images.

    Let us know if it worked! And, please, don’t forget to rate and/or comment on our plugin.

    Hi David,

    I am using the latest Version of WordPress and this Customizr Theme, but your workaround is not working anymore.

    Can you have a look on it?

    Plugin Author David Aguilera

    (@davilera)

    Hi feisti!

    What theme do you use? The problem is clearly there… Can you share a couple of links to your blog, where I can see a post with a regular featured image and a post using an external one?

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