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 07-21-2009, 01:27 PM
applicationsolutions's Avatar
applicationsolutions applicationsolutions is offline
Registered User
Pro Plus Member
 
Join Date: Dec 2008
Location: Fate, TX
Posts: 93
Default How to use Featured Content Gallery and Tabber on Home Page

First, here's a screen shot to show what it looks like when completed.



First thing to do is go into the home.php page and find the following code:

Code:
<div id="contentleft">

<?php if(get_theme_mod('tabber') == 'Yes') { ?>
                    
            <div class="hptabber">
                <?php include(TEMPLATEPATH."/tabber.php");?>
            </div>	
            
        <?php } else { ?>
        <?php } ?>  
        
		<div class="clear"></div>
Replace that with this code below:

Code:
<div id="contentleft"> 
            
            <?php if (function_exists('gallery_styles')) : ?>
            
            <div class="featuredcontentleft">            
            <div class="fcg">
                <?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
            </div>
            </div>
            <?php endif; ?> 
            
		<?php if(get_theme_mod('tabber') == 'Yes') { ?>
            <div class="tabberright">                    
            <div class="hptabber">
                <?php include(TEMPLATEPATH."/tabber.php");?>
            </div>
            </div>	
            
        <?php } else { ?>
        <?php } ?>  
        
		<div class="clear"></div>

That is all you'll need to do for the home.php page.

Then, open up style.css and find the following code (if you have not modified the stylesheet, it should be at about line 539:

Code:
.hptabber {
	background: #FFFFFF;
	margin: 0px 0px 10px 0px;
	padding: 15px 10px 0px 10px;
	border: 1px solid #C0C0C0;
	}
Replace that with the following:

Code:
.featuredcontentleft {
	background: #FFFFFF;
	border: 1px solid #C0C0C0;
	float: left;
	width: 299px;
	height: 325px;
	margin: 0px 0px 10px 0px;
	padding: 0px;
	}

.tabberright {
	background: #FFFFFF;
	border: 1px solid #C0C0C0;
	float: right;
	width: 299px;
	height: 325px;
	margin: 0px 0px 10px 0px;
	padding: 0px;
	}

.fcg {
	background: #FFFFFF;
	margin: 0px 0px 10px 0px;
	padding: 10px 10px 10px 10px;
	}
	
.hptabber {
	background: #FFFFFF;
	margin: 0px 0px 10px 0px;
	padding: 10px 10px 10px 10px;
	}

Now, you'll need to go into tabber.php and find the following:

Code:
<?php 
		$i = 1;
		while($i < 7) { 
	?>
You need to adjust the amount of tabs (atleast I did so it looked better) to only display 3 (<4)

Code:
<?php 
		$i = 1;
		while($i < 4) { 
	?>
Then, upload all 3 files back to your server.

Go to the featured content gallery options and set the width to 275 and the height to 300.

That is all it took and now you'll have both features on the home page!

Hope this helps! :D

Adam
__________________
"There's no charge for awesomeness. . . or attractiveness."
 

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
Would Like to Replace tabber with featured content gallery getfoundnow General Discussion 4 11-14-2009 11:05 AM
Home Page Using Featured Content Gallery Change rimsguy General Discussion 2 10-28-2009 12:13 AM
Featured Content Gallery ABove Tabber valeryvie General Discussion 3 09-12-2009 07:30 AM
How to: Featured Content Gallery with Static Home Page tonihamel General Discussion 2 08-10-2009 07:40 PM


All times are GMT -5. The time now is 06:59 AM.

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