Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nelio Software

    (@nelio)

    Hi! Thank you for using our plugin. It’s always nice to have people around ??

    Regarding your specific problem… I just accessed your website (I understand it’s clickart, right?) and I see nothing strange. I downloaded your theme and took a look at its source code, and I think I know why the plugin is not working.

    Essentially, the problem we’re facing here is the poor support that WordPress offers when it comes to replacing a featured image. You see, WordPress does not include (in general) any good hooks for replacing that image! However, there’s a couple of functions (the_post_thumbnail or get_the_post_thumbnail) that do offer a hook. These functions directly output (or return the equivalent string of) the HTML code that will display a featured image (that is, the img tag with the proper link). Our plugin relies on a hook they use called post_thumbnail_html and creates a new img tag when required.

    Your theme (and others) do not use those two functions. Instead, they use a combination of WordPress functions in which we cannot easily hook. If you look in your theme’s code for wp_get_attachment_url(get_post_thumbnail_id($post->ID));, you should see where the URL of a featured image is loaded and, right after the call to that function, where the URL is used inside an img tag. If you replace those lines with a simple call tothe_post_thumbnail($post->ID);, you’ll get the same effect AND our plugin will work.

    Thread Starter ramesh007hero

    (@ramesh007hero)

    Hi,

    Thanks a lot for your quick turn around!

    I am a non coder, as you said, you downloaded the theme, could you please tell me where can i exactly find those hooks in my theme folder?

    I am sorry for asking this, but I don’t have choice. Kindly help me, if it is possible for you.

    I will be available at skype : [moderated], google talk : [moderated], email : [moderated]

    Or you can give me your personal email, so i can email you further details.

    Thanks a lot,
    Ramesh

    Plugin Author Nelio Software

    (@nelio)

    Hi, it looks like we cannot share private contact information here. Please, send us an e-mail to support AT neliosoftware DOT com (or send us an e-mail using the form you’ll find in our website).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image is not visible on Reviewgine theme’ is closed to new replies.