Thermometer
-
Thermometer will not respond to the changing of height and width. Do you have any idea what is happening?
-
In order to preserve the correct aspect ratio, the thermometer shortcode will only accept values for height OR width. Try using just one of these parameters.
I’m using just height but it does not respond, using this code:
[thermometer raised=50 target=100000 height=300 align=right]On this page:
http://www.skagitraisesgreatkids.org/news-overview/annual-breakfast-online-registration/Thanks.
Sorry about that.. you’ve found a bug in the code. If you want a fix now, change lines 445-450 in the donation_therm.php file to this
if ($atts['width'] != ''){ $height=''; $width=$atts['width']; } if ($atts['height'] != ''){The file is found in the wp-plugin folder on your server. Otherwise I will send an update out soon over the next week.
cheers
Thanks for the reply. I did the above and it doesn’t seem to be working.
Here are the new lines I put in:
http://www.highwaters.net/files/code.jpgAh, woops, meant line 449. That height if-loop should be:
if ($atts['height'] != ''){ $height=$atts['height']; $width=''; }Is this correct? Maybe I’m messing something up? This doesn’t seem to make it work.
if ($atts['width'] != ''){ $height=''; $width=$atts['width']; } if ($atts['height'] != ''){ $height=$atts['height']; $width=''; }I suggest you make the width parameter 15% in the shortcode (ignoring height) and I will release an update to the plugin soon.
cheers
Yes thanks. The width % worked.
I really like your Thermometer. I have an issue where the word off has appeared in the post above the thermometer post where I usually get the comments icon. It only happens on 2 pages, not all of them? It showed up after I tried alt=”off” one time to see what it did. Went back to the default and now no matter what I do it has the word off. Can’t see it in the html code so baffled now. Any suggestions?
Site is https://www.unicomemphischapter.org and shows up on UNICO Memphis and News and Information categories. Looks like this:
Edit Postoff
Thanks, but you should really create a new post for this as your issue is not linked at all to the original question.
Unfortunately I don’t have any practical suggestions without more info. Do you have another plugin that handles comments? A guess would be there is a conflict occurring between plugin parameters.
Btw UNICO Memphis appear to load fine now. New and Information does have the word ‘off’ as well as a missing comments section.
The word ‘off’ is appearing in a div element called comments, which is unrelated to my thermometer. Where did you put the shortcode on this page? Try the usual of deactivating all your other plugins one by one to narrow down the error. Also I advise you start a new topic thread in the forum and we can carry on from there.
The topic ‘Thermometer’ is closed to new replies.