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
Mansfield SEO SEO Mansfield Website Design Wordpress Wordpress Plugins Wordpress Web Design

SEO Mansfield / Search Engine Optimisation Mansfield

SEO Mansfield

This is just an example test just to show my highly ranking, busy traffic blog site will do for the term search engine optimisation Mansfield, or SEO Mansfield, whatever really.

My personal blog is in a lot of the top 3 results on page one of Google for a vast range of terms, including ones like OpenCart 1.5 Templates / Themes etc.

From OpenCart to Web Design Randomness, the SEO power of this blog seems to be rather immense, and I’m pretty sure I can show this off to potential clients on why writing blog posts is so important for search engine optimisation.

WordPress is awesome for SEO, it was built for blogs, helping to get peoples ramblings, ideas and points of view across to the world, with the post Categories and Post tags, along with some awesome SEO plugins available for free, it’s made WordPress the perfect framework to build a search engine friendly CMS site with.

If you’re interested in SEO / Search Engine Optimisation and you’re from the Mansfield / Nottinghamshire area then feel free to contact me!

We’re fantastic at what we do!

Web Design Mansfield

Categories
Errors Fix Website Design Wordpress Wordpress Plugins Wordpress Web Design

WordPress Fix: An Unexpected HTTP Error occurred during the API request.

“An Unexpected HTTP Error occurred during the API request.” is a common issue, when searching for a plugin or even installing a plugin, this is how you fix it!

  1. Login to your FTP server
  2. Go to wp-includes and edit class-http.php
  3. Find: ‘timeout’ => apply_filters( ‘http_request_timeout’, 5),
  4. Change the value “5” to “30”, the value is actually is the number of seconds before the server times out.
  5. It should be this: ‘timeout’ => apply_filters( ‘http_request_timeout’, 30),

And that’s it! Your An Unexpected HTTP Error occurred during the API request. error should no go away!

This error is usually caused by high load on the WordPress servers or when they’re having technical difficulties.

Categories
Gravity Forms reCaptcha Wordpress Wordpress Plugins

How to: Custom reCaptcha captcha with Gravity Forms

Recently I’ve been struggling with using reCaptcha with Gravity forms, mainly in regards to using the sidebar and the captcha, gravityforms only as default allows you to use the standard reCaptcha themes, this is a short but sweet “How to” to be able to totally customise the reCatcha appearance with Gravity Forms.

Find form_detail.php

Goto line number: 581

You Should Have:

After Paste This:

Edit your form, and select “custom” as the theme.

Then add an HTML “Field” and paste the code that’s required to display the reCaptcha, ie:

And then use your custom code as per:
http://code.google.com/apis/recaptcha/docs/customization.html

http://www.dijitul.co.uk/resources/captcha_custom.jpg

To buy this awesome plugin visit Gravity Forms now!

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 Plugins

Validate the WordPress Sidebar Widget

As standard the wordpress sidebar widget does NOT validate as HTML – this is because WordPress gives it a role for Accessibilty!

However if you have a client that demands HTML Validity – or you just prefer it then you can very simply edit the Core WordPress Files – However this will be changed on a wordpress update.

So we make our functions.php to re-write the role="search" out of the.

So what we do is we include a function to your themes functions.php

// Makes the WordPress Sidebar Search HTML Valid
function valid_search_form ($form) {
return str_replace('role="search" ', '', $form);
}
add_filter('get_search_form', 'valid_search_form');

That’s it!

Categories
Contact Forms Website Design Wordpress Wordpress Plugins

Gravity Forms – The Best WordPress Contact Form Plugin

I’ve used quite a fair few plugins for Contact forms, used on a large variety of applications. Until now I’d have said CForms II was the best, It was amazing, but sadly seems to have vanished.

After a look around I was pleased to find some really >REALLY< shiny website known as Gravity Forms, these guys have made what I would say, the best WordPress Plugin for Contact Forms, no questions asked, from Computer Illiterate clients to professionals, this plugin caters to all!

We currently have a Developer License which was $199, now that’s unlimited use so it’s a rather minimal fee per site, obviously the more websites you use it on the cheaper each installation equates to. Say you deploy this plugin over 1000 websites, that’s sub 20cents (13/14p) each, now that’s a bargain, and you’re still free to install it on more domains.

I really recommend anyone serious about including a easy to use fully featured Contact Form Plugin for clients to use Gravity Forms.

Visit Gravity Forms