Title: [Plugin: wpTextResize] init.php is broken
Last modified: August 20, 2016

---

# [Plugin: wpTextResize] init.php is broken

 *  Resolved [floatingpointmatt](https://wordpress.org/support/users/floatingpointmatt/)
 * (@floatingpointmatt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wptextresize-initphp-is-broken/)
 * In init.php (confirmed against your GitHub copy at [https://github.com/bradp/wpTextResize/blob/master/init.php](https://github.com/bradp/wpTextResize/blob/master/init.php))
   there is no closing ‘?>’
 * Another issue, albeit less serious, is the use of the PHP shorthand ‘<?’ to open
   PHP blocks (as opposed to ‘<?php’).
 * Once those tweaks are made, I can confirm the plugin works (in my circumstances
   anyway).
 * I’d have slung you something via GitHub, but haven’t opted in to an account yet…
 * [http://wordpress.org/extend/plugins/wptextresizecontrols/](http://wordpress.org/extend/plugins/wptextresizecontrols/)

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

 *  Thread Starter [floatingpointmatt](https://wordpress.org/support/users/floatingpointmatt/)
 * (@floatingpointmatt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wptextresize-initphp-is-broken/#post-2892428)
 * Let me rephrase that…
 * Once the PHP is tweaked, I could install the plugin.
 * After that, I didn’t get any functionality over and above the control displaying
   itself.
 * I reviewed the source and saw that there was an expectation to have your primary
   content in an element with an id of ‘main_content’, which is a fair assumption—
   though stating it explicitly would prevent confusion.
 * For instance, I’m not using #main_content, though I did try wrapping my own content
   block to see if things worked, but couldn’t get it to.
 * (I’d also suggest using a class like ‘.resizable-content’ to allow multiple blocks
   across a page to be resized.)
 * Here’s hoping that this helps, though I’m not likely to use wpTextResize in my
   current project…
 *  Plugin Author [Brad Parbs](https://wordpress.org/support/users/bradparbs/)
 * (@bradparbs)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wptextresize-initphp-is-broken/#post-2892711)
 * Thank you all for the comments, I have a new version I’m rewriting, should be
   updated soon. 🙂 It will fix all of these problems, and be easier to use!
 *  Plugin Author [Brad Parbs](https://wordpress.org/support/users/bradparbs/)
 * (@bradparbs)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wptextresize-initphp-is-broken/#post-2892736)
 * I updated it and fixed all of these issues, except for the missing PHP tag, which
   should be left out if there is no HTML be outputted afterwards to steer clear
   of whitespace issues.

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

The topic ‘[Plugin: wpTextResize] init.php is broken’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wptextresizecontrols.svg)
 * [wpTextResize](https://wordpress.org/plugins/wptextresizecontrols/)
 * [Support Threads](https://wordpress.org/support/plugin/wptextresizecontrols/)
 * [Active Topics](https://wordpress.org/support/plugin/wptextresizecontrols/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptextresizecontrols/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptextresizecontrols/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Brad Parbs](https://wordpress.org/support/users/bradparbs/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wptextresize-initphp-is-broken/#post-2892736)
 * Status: resolved