• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Chad Ritchie

Graphic Designer, Front-End Web Developer

  • Blog
    • WordPress
  • Projects
    • Graphic Design
    • Web Projects
  • Photos
  • Services
  • Contact

WordPress

WordPress Stuck In Maintenance Mode

January 14, 2013 By Chad Ritchie

If your WordPress site gets stuck in maintenance mode while updating your version of WordPress, a theme or plugin, here is a simple solution for getting your site back online.

WordPress maintenance mode screen

Screen Shot 2013-01-14 at 9.07.03 AM

Screenshot from browser

You will need to enable hidden files in your editor.

Screen_Shot_2013-01-14_at_9.54.48_AM.png

Screenshot from Coda 2

In the remote folder, look for a file titled ".maintenance" and delete

Screen_Shot_2013-01-14_at_10.05.34_AM.png

Remote folder view

Filed Under: Blog, WordPress

Get rid of unused WordPress shortcodes

November 20, 2012 By Chad Ritchie

WordPress shortcodes—love em’ or hate ’em? Personally, I hate ’em and here’s why: Once you stop using a shortcode (for example when you switch to another theme) you’ll find shortcodes in full text on your posts.

Here’s a SQL query to remove them. Just update the code with the shortcode you want to remove. I’ve used [blue-button] in this example.

UPDATE wp_post SET post_content = replace(post_content, '[blue-button]', '' ) ;

An alternative to using shortcodes, consider using a plugin such as AddQuickTag.

This article was inspired by Steven Slack’s The shortfalls of [shortcodes]

Filed Under: Blog, WordPress

How to add a tag cloud to your site

October 30, 2012 By Chad Ritchie

If you chose to tag the content on your site, a “tag-cloud” may be an ideal way to display tag navigation for users.Tag cloud from the ChadRitchie.net web site

To display a tag cloud start with the following parameters:

 1, //size of least used tag
'largest' => 2, //size of most used tag
'unit' = => 'em', //unit for sizing
'number' => 45, //displays at most 45 tags
'format' => 'flat', //displays the tags in flat
'orderby' => 'name', //order the tags by name
'order' => 'ASC' //sort the tags in ASCENDING order
)); ?>

Dig deeper into ‘tag clouds’ at WordPress

Filed Under: Blog, WordPress Tagged With: tag cloud

Remove permalink from post title in WordPress Twenty Eleven

July 31, 2012 By Chad Ritchie

TwentyEleven displays the title in lots of different places. However, there may be certain cases where you do not want your post title to include a hyperlink. To remove the permalink from post titles, you will need to search the files beginning with code like this:

and change that to this:


Check all of the php files with names starting ‘content’. For example: content-aside.php, content-single.php, etc.

View Example

Filed Under: Blog, WordPress Tagged With: code, Twenty Eleven

First Release of WordPress

June 1, 2012 By Chad Ritchie

Going way back: The First Release Of WordPress Now Available
http://wordpress.org/news/2003/05/wordpress-now-available/

Filed Under: Blog, WordPress

How to disable WordPress plugin updates

May 4, 2012 By Chad Ritchie

This snippet of code prevents WordPress from checking for plugin updates. For security reasons, it is important to keep third-party WordPress plugins up-to-date. However, there are times when you might create a site for a client and don’t want them to update their plugins. Perhaps you have changed a plugins code or concerned a plugin update could cause problems or break the site.

Simply paste the following code into your sites functions.php file. The functions.php file is located in your sites theme folder.

remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
?>

Filed Under: Blog, WordPress Tagged With: code

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Go to Next Page »

Footer

Chad Ritchie Web & Graphic Design