• Resolved jeffm2008

    (@jeffm2008)


    Hi. Great plugins! I sent you a few bucks yesterday in appreciation. Sorry it couldnt be more.
    Anyway, I was wondering if I could use a custom image for the heart crystal rating. I only need the ratings to increment by one, like a like button.

    I want the image to be larger, around 30px, and to be a custom image. I tried to follow your instructions. I change the “gif” to “png”like you suggested here:

    function postratings_init() {
    if( ! defined( ‘RATINGS_IMG_EXT’ ) ) {
    define( ‘RATINGS_IMG_EXT’, apply_filters( ‘wp_postratings_image_extension’, ‘gif’ ) );
    }
    I also changed the 16’s to 30’s here:

    ‘ . esc_html__( ‘Loading…’, ‘wp-postratings’ ) . ‘</’ . $start_tag . ‘>’;

    any help would be greatly appreciated. Thank you!

    I’m using your most recent version of ratings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jeffm2008

    (@jeffm2008)

    I created 4 new png’s and renamed them the same as the gifs, with the png extension obviously. But, it just didn’t work right. Some of the image states were blurry and old cahced images i was testing. It was pretty messy. So, obviously I’m not doing something right. hah

    • This reply was modified 7 years ago by jeffm2008.
    Thread Starter jeffm2008

    (@jeffm2008)

    It also appears to make all the text on my page italicized? Maybe due to the italicized text in the parenthesis next to the heart? thanks!

    UPDATE: It was some sort of conflict with my themes css. Fixed it.

    • This reply was modified 7 years ago by jeffm2008.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Image for Crystal Hearts’ is closed to new replies.