Categories
Bugs Dreamweaver Errors HTML PHP Website Design Wordpress Wordpress Plugins Wordpress Themes

WordPress: The plugin generated x characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin. *Fix*

I keep getting a problem when using Dreamweaver Find and Replace – whilst modifying certain PHP files, but mainly with wordpress.

It has become apparent, that the crappy software decides to some how add spaces all over the shop like some random crack head, So if  you go to your PHP / WordPress Plugin / WordPress Theme and get this error:

The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

The not to worry! Chances are you’ve got some white space / spaces after the closing php tag!

For those who have been tinkering and are not certain what a closing PHP tag is then this is it:

?php>

Anyway, I hope that fixed your problem 🙂

Categories
Wordpress Wordpress Plugins Wordpress Themes Wordpress Web Design

Remove WordPress Bundled / Included jQuery

Recently, from version 3 and onwards WordPress has included or bundled a load of javascript with it, this is found in:  wp-includes/js/

This list includes scripts such as

  • jQuery
  • scriptaculous
  • hoverIntent
  • prototype
  • colorpicker
  • json
  • swfobject

and more.

Unfortunately WordPress is forcing everyone to use jQuery version 1.4.2 with abit of a ignorant attitude, quote one forum moderator:

WordPress 3.0 will include 1.4.2, de-registering and adding your own is just totally pointless(seeing as that’s current).

Not quite, since some people need to use a pre 1.4.2 version.

Anyway to cut a long story short, here’s the Fix to Removing the Bundled jQuery that comes with WordPress:

Edit you’re themes functions.php

goto the end of the document and find ?>

before that paste:

if( !is_admin()){
wp_deregister_script('jquery');
}

Save, and upload.

And that’s it, you’re done.

Seems to have not hurt anything in the admin backend, but if you encounter any bugs or issues please let me know!

Also you can try this:
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', (""), false, '');
wp_enqueue_script('jquery');
}

Wootheme Users

Open your functions.php file, find:

/*-----------------------------------------------------------------------------------*/
/* You can add custom functions below */
/*-----------------------------------------------------------------------------------*/

And paste:

if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', (""), false, '');
wp_enqueue_script('jquery');
}

Below it 🙂

Categories
Website Design Wordpress Wordpress Themes Wordpress Web Design

Framework 2.0 – 2.0.0.2

Framework 2.0 – 2.0.0.2 (Beta 2) is complete.

Changelog:

  • Improved Look of Tables.
  • Rounded Corners + Ability to Enable or Disable (Work on all browsers and IE6+).
  • Removed IE6 Support (Flogging a dead horse and time sink).
  • Tweaked General CSS.
  • Validated HTML for WordPress’s Sidebar Search Widget (functions.php re-writes the code).
  • Replaced the standard WordPress “W” Logo on the top-right of the wordpress admin area with a changeable logo, found in functions/images/logo.png.

Roadmap:

  • Homepage Sidebar Toggle.
  • Fix Footer “Company Name” so that you can have a Blog Title of “A really long cool story” and in the Copyright have “Your Company”.
  • Logo Position Toggle (Left or Right).
  • Custom Logo URL (Removed but will add again).
  • Improve the “Customised” WordPress Admin backend changes.
  • Improve functions and reduce code bloat.
  • Add an option to choose jQuery version from Google Code (ie if you need to downgrade or upgrade the version of jQuery then you can do).
  • Package Framework 2.0 for Sale.
  • Have atleast 2 different types of post layout on the Blog Page (index page).
  • Have category exclusions on the Blog Page (index page).
  • Include 2 – 3 different colour versions as default.
  • Tweak the Twitter Footer widget.

Got any Feedback or Recommendations for Framework?  – Simple Post a comment 🙂