• Skip to main content
  • Skip to footer

Sara Lorien Design

Helping Small Businesses Grow and Thrive Online

  • Home
  • About
    • Reviews
  • Portfolio
  • Work With Me
    • Non-Profits and Social Entrepreneurs
    • Small Businesses
    • Virtual Assistant Services
  • Tech Helps
  • Contact

mediainbloom / March 7, 2013

WooThemes Features Plugin Customization

Problem:
WooThemes Features Plugin creates small boxes on the homepage with teasers (for product or service features) and links to a full page for that feature. The full page displays with duplicated title and the meta information, just like a blog post. I wanted this to go away.

I spent time hunting around for settings in the plugin directory, but had no luck. I found out that WooThemes treats Features as a custom post type, but still uses the same template for output (single.php). At least this is true for those WooThemes that have the Features Plugin already enabled in the theme. I am using Appply, one of the newer ones, so this was the case.

Solution:

  • Open single.php in your theme directory.
  • Find this code:

<header>
<h1><a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h1>
<?php woo_post_meta(); ?>
</header>

  • Replace it with this code:

<?php
if ( ‘post’ == get_post_type() ) { ?>
<header>
<h1><a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h1>
<?php woo_post_meta(); ?>
</header>
<?php     }   ?>

This will result in only posts of the default post type displaying the blog title and meta information. Custom Post Types will not.

Filed Under: WooThemes Hacks, Wordpress Hacks

Footer

Follow Sara Lorien Design

Visit Us On FacebookVisit Us On TwitterVisit Us On PinterestVisit Us On Linkedin

Sara’s Side Hustles and Projects

An entrepreneur at heart, I'm always cooking up something on the side. Here's what I've got going on.


Dream Maker Creative - A DIY crafts studio in Bremerton, WA offering classes, parties, events, and a small boutique selling craft kits. It's also where I make my web design "office" and teach tech classes. A multi-purpose space!


Terra Create - Maker of artisan quality craft kits. For ages 10+. Subscriptions available.

Where to Find Me

Sara Lorien Design
PO Box 2161
Kingston, WA 98346
Phone: (360)728-3102
Email: Contact Us
Hours by Appointment

Copyright © 2023 · Digital Pro on Genesis Framework · WordPress · Log in