![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
A lot of people use Studiopress' themes for company websites. As a result, they try to add storefront and shopping cart features. One of the more popular shopping cart solutions is the WP E-Commerce plug-in. Unfortunately, it disables the Featured Content Gallery that drives much of the front page of the Corporate theme.
Until now, the best fix has been a workaround - rewrite the theme to use a different gallery plug-in. I wasn't happy with that because, frankly, I've spent a lot of time working with the current plug-in and customizing things just the way I want them. So I propose a new fix. It's two steps: Step one: Add the following code immediately after the <?php wp_head(); ?> tag in the theme's header.php file. Code:
<?php if(is_front_page()) do_action('jdm_head'); ?>
Find the following code at the end of the Featured Content Gallery file (content-gallery.php) Code:
add_action('wp_head', 'gallery_styles');
Code:
add_action('jdm_head', 'gallery_styles');
Is there any way this fix could somehow be incorporated into the actual theme in the future? Maybe include the conditional statement in header.php and add the following to functions.php: Code:
remove_action('wp_head', 'gallery_styles');
add_action('jdm_head', 'gallery_styles');
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Featured Content Gallery & Dynamic Content Gallery Alternitive! | BrianLis | General Discussion | 12 | 01-03-2011 04:27 PM |
| General consensus on Dynamic Content Gallery over the old Featured Content Gallery? | TomL | General Discussion | 5 | 05-26-2010 05:49 PM |
| Featured Content Gallery & E Commerce Plugin | webwoman | General Discussion | 1 | 03-15-2009 10:37 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us