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

    (@davilera)

    Hi!

    Thanks for getting in touch. Send the theme to customers at nelio software dot com and I’ll take a quick look at it. Please note that these days we’re quite busy here at Nelio, and I’m not sure I’ll be able to solve the issue quickly…

    Best,
    David

    Thread Starter KSM899

    (@ksm899)

    Hello,

    Just sent you the theme .. take your time and thank you.

    Thread Starter KSM899

    (@ksm899)

    Any update david?

    Thread Starter KSM899

    (@ksm899)

    David, This theme comes with built-in plugin called Themify builder which is (I think) what causing the featured images not showing.

    The plugin files are included on the theme files: /magazine/themify/themify-builder

    Regards

    Plugin Author David Aguilera

    (@davilera)

    I’m on it, KSM ?? Thanks for your patience.

    Plugin Author David Aguilera

    (@davilera)

    Hi KSM!

    I’ve finally managed to make the plugin work with your theme. Edit the function themify_get_image in themify/themify-utils.php. In particular, go to line 3093:

    // ...
        $out = get_the_post_thumbnail( $post_id, array( $width, $height ) );
      }
    
      return $out;
    }
    
    /**
     * Sets the WP Featured Image size selected for Query Category pages
     * @since 1.1.5
     */
    function themify_feature_size_page() {
      // ...

    and add the following piece of code right after return:

    // ...
        $out = get_the_post_thumbnail( $post_id, array( $width, $height ) );
      }
    
      // If there's an external featured image, use it.
      if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( $post_id ) ) {
    
        // Compute the dimensions of the featured image.
        if ( empty( $width ) && empty( $height ) ) {
          $width = 800;
          $height = 480;
        } else if ( empty( $width ) && ! empty( $height ) ) {
          $width = $height * 5 / 3;
        } else if ( ! empty( $width ) && empty( $height ) ) {
          $height = $width * 3 / 5;
        }
    
        // Use the external featured image.
        $out = get_the_post_thumbnail( $post_id, array( $width, $height ) );
    
      }
    
      return $out;
    }
    
    /**
     * Sets the WP Featured Image size selected for Query Category pages
     * @since 1.1.5
     */
    function themify_feature_size_page() {
      // ...

    And that’s it! I hope this helps you!

    Thread Starter KSM899

    (@ksm899)

    Hello

    That worked .. Thank you very much ^__^

    Plugin Author David Aguilera

    (@davilera)

    I’m glad to know!

    BTW, don’t forget to rate our plugin ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Doesn't work with theme Magazine from themify’ is closed to new replies.