StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-15-2009, 02:02 PM
ericmann ericmann is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 4
Default Featured Content Gallery and WP E-Commerce

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'); ?>
Step two:
Find the following code at the end of the Featured Content Gallery file (content-gallery.php)
Code:
add_action('wp_head', 'gallery_styles');
Change it to:
Code:
add_action('jdm_head', 'gallery_styles');
It's a quick, two-step fix to a problem that's been stumping most of us for months. You can see it in action on my website, powered by the Corporate theme: http://www.jumping-duck.com

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');
It might make life a lot easier for everyone. In any case, good luck and have fun!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 12:30 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.