Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

How to Center "Featured Content Gallery"

Old Mar 13, 2010, 02:11 AM
21 posts · Dec 2009

I found both forum post and reply below helpful for getting the Feature Content Gallery plugin up and running on my blog.

But I have a question:
How can I get the Feature Gallery to be centered in my post? It is aligned left which looks out of place. Any help would be greatly appreciated.


"majofa - Member - Jul 2009 - Posted

I am using WP 2.8.1 and Atahualpa 3.4.2. I inserted the Feature Content Gallery code in the theme's index.php:

<code><?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php'); get_header(); ?>

<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></code>

It displays perfectly in the home page, but it also shows in every post and page.
How can I avoid this ?
Flynn - Administrator - Reply

Change the code to

<?php if ( is_front_page() ) { include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); } ?>"
Old Mar 13, 2010, 04:19 AM
paulae's Avatar
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Put in a div and center it:
<div align="center">
<?php if (is_front_page() && !is_paged() ) include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>

Also, you should upgrade your WP and your theme to the latest versions. I'm using Atahualpa 3.4.6, and I've put that code in Theme Options/Center Column/Style and Edit Center Column/Above the Loop. This way, the settings remain when you upgrade the theme.
Old Mar 13, 2010, 04:48 AM
21 posts · Dec 2009
Hi Paulie

Thanks so much for your prompt reply, did the trick. Also, thanks for the tip of where to place the code to save when there are future upgrades.

Appreciate it.

Kind regards


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Version 3.4.2 and Featured Content Gallery kpowers70 Plugins & Atahualpa 10 May 26, 2010 12:19 PM
Featured Content Gallery and 3.4.2 mattalter Plugins & Atahualpa 6 Dec 10, 2009 03:47 PM
Featured Content Gallery strangelove Plugins & Atahualpa 43 Oct 24, 2009 02:05 PM
version 3.4.3, mis-ordered posts and Featured Content Gallery paulae New Versions, & Updating 3 Oct 24, 2009 07:05 AM

All times are GMT -6. The time now is 08:38 PM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.