Posts Tagged with “WordPress”

Disable shortcodes for ElegantThemes

Go to ePanel/custom-functions.php and remove:

require_once(TEMPLATEPATH . '/epanel/shortcodes/shortcodes.php');

Updated June 4, 2014

The above code will get overwritten when you update the theme, so it’s best to contain your modifications in a child theme. In your child theme’s functions.php file, add this:

add_action( 'after_setup_theme', 'add_remove_et_features', 15 );

function add_remove_et_features() {
    remove_action('init','et_activate_features');
    add_action('init','child_activate_features');
}

function child_activate_features(){
    /* activate shortcodes */
    // comment out or delete the line below to disable shortcodes
    // require_once(TEMPLATEPATH . '/epanel/shortcodes/shortcodes.php');

    /* activate page templates */
    require_once(get_template_directory() . '/epanel/page_templates/page_templates.php');

    /* import epanel settings */
    require_once(get_template_directory() . '/epanel/import_settings.php');
}

However I recommend that you don’t use ElegantThemes. Sure they’re cheap, but they don’t offer Automatic Updates which makes their themes pretty insecure and vulnerable to hackers. Elegant Themes finally includes automatic updates as of Dec 2013.

If you want high quality themes with rock solid security and top-notch support, go with StudioPress or WooThemes.

WTOTW: Automatically post selected Instagram photos to your blog with ifttt

My Instagram yesterday got a lot of likes and apparently people are really interested to do this, so here’s a quick tutorial how.

This tutorial will show you how to post *selected* Instagram photos to your WordPress blog, automatically. All you need to do is to tag your Instagram with a hashtag for it to work.

ifttt

The key to doing this is a service called ifttt, which is short for “if this then that”. Basically you tell it to watch for a trigger (if this) and do something in response (then that). See the quick one-page guide on their site. Tip: ifttt is pronounced like ‘lift’ without the ‘l’. Read More »

WordPress Online Business Giveaway

The folks over at WP Pro Business are running an insane giveaway of WordPress-based online business products. Some of the stuff up for grabs include..

Gravity Forms licenses
WPMUDEV Memberships
BackupBuddy licences
Wishlist Member licenses
Standard Theme
Marketeer Theme

and more! The total value of the giveaway is over $9,000! Like I said – insane.

Head on over and enter the giveaway now.

ProBlogger.net published my guest post today. Guess that officially makes me a professional blogger 😀

Custom size featured image thumbnail with fallback in WordPress

Occasionally you may need to display featured images in sizes other than WordPress’ default thumbnail, medium and large sizes. That’s quite easily solved with the add_image_size() and the_post_thumbnail() functions. Unfortunately, there are still 2 problems to be solved:

  • Some posts may not have images at all, or the author forgets to attach a featured image
  • Previous posts don’t have featured images

Here’s a solution that 1) resizes the featured image to the right size, 2) uses the first image in the post if a featured image is not set and 3) falls back to a default image if none of the above are true. Read More »

How to make WordPress bulletproof for clients

This is my talk at WordCon / WordCamp Asia 2011. Here are the notes from my presentation – for my reference and yours. If you enjoyed my ideas here, please Like or tweet this post. Thanks!
Read More »

More robust footer widget areas for Headway

I recently got an email from a reader who wanted to know how I implemented my footer widget areas, and seen some similar requests in the Headway forums. With Headway, you can flip your widget areas horizontally to make a widgetized footer but it works best when you only have 3-4 widgets in them. I wanted to have more flexibility and so I injected 3 widget areas into my footer.

Screenshot for posterity, if I ever re-design this blog. Click for full-size image.

I didn’t have time for a full tutorial but hopefully you’ll find these code snippets useful:

blogjunkie.net custom_functions.php for Headway theme

blogjunkie.net custom.css for fat footer widget areas

Last week, Automattic announced Jetpack, a bundle of plugins that will bring the hosted WordPress.com features into self-hosted WordPress blogs. On the surface it sounds like a great addition to the WordPress platform, but James from WPMU.org points out some far reaching implications.

@xescx explains a useful tip on how to roll your own Twitpic service with WordPress.

Solved: Cufon text not refreshing on jQuery UI Tabs

Update: I no longer use Cufon in my projects and prefer @font-face. If you are struggling with Cufon it will actually be faster for you to replace it with @font-face than to figure out your Cufon problems. Start with this tutorial here: The Essential Guide to @font-face

Today I was working on a project that:

  1. Made use of jQuery UI Tabs through the WordPress Post Tabs plugin
  2. Uses custom fonts for the tabs via Cufon
  3. Requires tab font to change color when selected

Read More »