Title: Thermometer
Last modified: August 21, 2016

---

# Thermometer

 *  Resolved [ndaword2003](https://wordpress.org/support/users/ndaword2003/)
 * (@ndaword2003)
 * [13 years ago](https://wordpress.org/support/topic/thermometer-1/)
 * Thermometer will not respond to the changing of height and width. Do you have
   any idea what is happening?
 * [http://wordpress.org/extend/plugins/donation-thermometer/](http://wordpress.org/extend/plugins/donation-thermometer/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [13 years ago](https://wordpress.org/support/topic/thermometer-1/#post-3825748)
 * 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.
 *  [ottomek](https://wordpress.org/support/users/ottomek/)
 * (@ottomek)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825960)
 * 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/](http://www.skagitraisesgreatkids.org/news-overview/annual-breakfast-online-registration/)
 * Thanks.
 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825961)
 * 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
 *  [ottomek](https://wordpress.org/support/users/ottomek/)
 * (@ottomek)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825962)
 * 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.jpg](http://www.highwaters.net/files/code.jpg)
 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825963)
 * Ah, woops, meant line 449. That height if-loop should be:
 *     ```
       if ($atts['height'] != ''){
           $height=$atts['height'];
           $width='';
       }
       ```
   
 *  [ottomek](https://wordpress.org/support/users/ottomek/)
 * (@ottomek)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825964)
 * 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='';
       	}
       ```
   
 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825965)
 * I suggest you make the width parameter 15% in the shortcode (ignoring height)
   and I will release an update to the plugin soon.
 * cheers
 *  [ottomek](https://wordpress.org/support/users/ottomek/)
 * (@ottomek)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825967)
 * Yes thanks. The width % worked.
 *  [Michael Spano](https://wordpress.org/support/users/michael-spano/)
 * (@michael-spano)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825968)
 * 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](https://www.unicomemphischapter.org)
   and shows up on UNICO Memphis and News and Information categories. Looks like
   this: Edit Post
 * off
 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825969)
 * 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.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Thermometer’ is closed to new replies.

 * ![](https://ps.w.org/donation-thermometer/assets/icon-256x256.png?rev=3197594)
 * [Donation Thermometer](https://wordpress.org/plugins/donation-thermometer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/donation-thermometer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/donation-thermometer/)
 * [Active Topics](https://wordpress.org/support/plugin/donation-thermometer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/donation-thermometer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/donation-thermometer/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [rhewlif](https://wordpress.org/support/users/henryp/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/thermometer-1/#post-3825969)
 * Status: resolved