Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   How to Center "Featured Content Gallery" (http://forum.bytesforall.com/showthread.php?t=6266)

GlobalNeat Mar 13, 2010 02:11 AM

How to Center "Featured Content Gallery"
 
Hi

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.

Thanks
Neat :)

==============================================
"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'); } ?>"

paulae Mar 13, 2010 04:19 AM

Put in a div and center it:
Code:

<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.

GlobalNeat Mar 13, 2010 04:48 AM

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
Neat


All times are GMT -6. The time now is 04:02 AM.

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