WordPress.org

Ready to get started?Download WordPress

Forums

wpTextResize
[resolved] init.php is broken (4 posts)

  1. floatingpointmatt
    Member
    Posted 2 years ago #

    In init.php (confirmed against your GitHub copy at 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/

  2. floatingpointmatt
    Member
    Posted 2 years ago #

    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...

  3. bradparbs
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  4. bradparbs
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic