• Thank you for this simple and nice plugin — just what we were looking for! It works perfectly on posts and pages.

    Unfortunately, it is not working quite right on category pages. It appears to be trying to insert the Badge within both the post title, and also the title of the featured image.

    Is there any way to fix that?

    thank you!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • did anyone figure this out I am having the same issue?
    thanks so much

    Thread Starter hkingman

    (@hkingman)

    Hey there AroundKW…

    Since all we really needed was silver and gold stars, we wound up putting this in at the end of the post title field:

    <span class="gold-sponsor fa fa-star"></span>

    And this css:

    /* add star badges to featured museum listings */
    
    .gold-sponsor {
    	color:gold;
    	float:left;
    	font-size:5vw;
    	display:block;
    }
    .silver-sponsor {
    	color:#C0C0C0;
    	float:left;
    	font-size:5vw;
    	display:block;
    }

    cheers, hope it helps

    I have the solution – in the plugin folder open the file templatic-badge.php and edit around line 178 you have to change the ” to ‘ and escape them \’

    $tmpl_display_badge = ‘<span class=\’badge-status\’ style=\’background:’. $newbadge_color.’\’>’. $newbadge_title.'</span>’;

    Hey guys, @aroundkw or @hkingman – any ideas on how to modify the PHP code to not show the badge HTML code when hovering featured images?

    Currently, when hovering, it shows that little Tooltip with:

    Title of the Post<span class=’badge-status’ style=’background:######’>NAME</span>

    Thank you!

    another problem has cropped up after the fix to get rid of the alt text showing on the page, now when you change the title of a post it adds the text you had in the badge every time you save it, plain text not in the box with the background color, well back to the drawing board.

    does anyone know how to move the badge to the left of the title?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Grabbing image title on category pages’ is closed to new replies.