Title: 100% Width update
Last modified: August 21, 2016

---

# 100% Width update

 *  Resolved [Will](https://wordpress.org/support/users/wlanni/)
 * (@wlanni)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/100-width-update/)
 * I just submitted a pull-request on Github to the author of the plugin to get 
   the data-width option to support 100%.
 * Assuming I did it error free (seems to be working on my dev site), here’s the
   patch to make this work. Hopefully this gets pulled into the main plugin and 
   you won’t have to do this in the future.
 * OK, here’s the code:
    In **plugin.php**, Line 482, look for function get_width().
   Replace it with: ` function get_width() { if($this->setting('width') == '100%'){
   return '100%'; } else { return (int) $this->setting('width', 600); } }
 * [https://wordpress.org/plugins/fatpanda-facebook-comments/](https://wordpress.org/plugins/fatpanda-facebook-comments/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Will](https://wordpress.org/support/users/wlanni/)
 * (@wlanni)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/100-width-update/#post-5142734)
 * An update to this: the plugin author got right back to me (YAY for plugin maintenance!!)
   with even better code. Here’s what he sent, replace the get_width() function 
   with this:
 *     ```
       function get_width() {
           $stored = str_replace('"', '', trim($this->setting('width', 600)));
           if (strpos($stored, '%') !== false) {
             return $stored;
           } else {
             return (int) $stored;
           }
         }
       ```
   
 * OR, I have a feeling this is going to get updated pretty soon, so you could wait.
   I had production code that had to go live last night, so if you’re in that kind
   of boat, feel free to apply.

Viewing 1 replies (of 1 total)

The topic ‘100% Width update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fatpanda-facebook-comments_7c8c66.
   svg)
 * [Facebook Comments by Fat Panda](https://wordpress.org/plugins/fatpanda-facebook-comments/)
 * [Support Threads](https://wordpress.org/support/plugin/fatpanda-facebook-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/fatpanda-facebook-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fatpanda-facebook-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fatpanda-facebook-comments/reviews/)

## Tags

 * [100% width](https://wordpress.org/support/topic-tag/100-width/)
 * [facebook comment](https://wordpress.org/support/topic-tag/facebook-comment/)

 * 1 reply
 * 1 participant
 * Last reply from: [Will](https://wordpress.org/support/users/wlanni/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/100-width-update/#post-5142734)
 * Status: resolved