![]() |
Don't want Featured Content Gallery
Hey everyone.
I tried searching but failed and couldn't find an answer. My question is, If I don't want to use Featured Content Gallery but want a intro/welcome paragraph to be in its place how could I do this. I know how to get rid of FCG that's not a problem, I'm just unsure as how to add a text section. I have the church theme by the way. Any help would be greatly appreciated. |
Re: Don't want Featured Content Gallery
bascially follow the instructions here viewtopic.php?f=8&t=5111
|
Re: Don't want Featured Content Gallery
I can't read that Thread , I don't have the authority... Any other suggestions?
|
Re: Don't want Featured Content Gallery
Sorry about that
this will allow you to use a post box and thumb if you don't want that style you can just add text and change the styling in css for featured top to reflect the padding and text size etc that you want. <div id="homepagetop"> <div class="featuredtop"> <--- insert code here--> </div> </div> and insert a loop such as this, you will have to hardcode this for category it won't show up as an option on the Options page. Code:
<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> |
Re: Don't want Featured Content Gallery
Okay, I added text to the home.php....
<div id="homepagetop"> <div class="featuredtop"> Hi! Can you help me?!?! </div> </div> <?php endif; ?> And added .featuredtop to the style sheet to mimic .hpbottom, but I cannot get this to work for me! .featuredtop { float: left; width: 590px; margin: 0px; padding: 10px; display: inline; } .featuredtop { border: none; margin: 0px; } I've tried a few other things but whatever I am doing is not right! Finally frustrated... I hope you can help! http://www.vintagehallow.com |
Re: Don't want Featured Content Gallery
Please post your entire home.php. Thanks.
|
Re: Don't want Featured Content Gallery
I would like to just add a text field for an introduction section.
<?php get_header(); ?> <div id="content"> <div id="homepage"> <?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?> <?php if (function_exists('gallery_styles')) : ?> <div id="homepagetop"> <div class="featuredtop"> Hi! Can you help me?!?! This is where I would like to add a text field. Thank you. </div> </div> <?php endif; ?> <div id="homepageleft"> <div class="hpfeatured"> <?php $feature_cat_1 = get_option('lifestyle_feature_cat_1'); $feature_cat_1_num = get_option('lifestyle_feature_cat_1_num'); if(!$feature_cat_1) $feature_cat_1 = 1; //setting a default ?> <h3><?php echo cat_id_to_name($feature_cat_1); ?></h3> <?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feat ure_cat_1_num); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(80, ""); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> Read More Posts From This Category </div> </div> <div id="homepageright"> <div class="hpfeatured"> <?php $feature_cat_2 = get_option('lifestyle_feature_cat_2'); $feature_cat_2_num = get_option('lifestyle_feature_cat_2_num'); if(!$feature_cat_2) $feature_cat_2 = 1; //setting a default ?> <h3><?php echo cat_id_to_name($feature_cat_2); ?></h3> <?php $recent = new WP_Query("cat=".$feature_cat_2."&showposts=".$feat ure_cat_2_num); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(80, ""); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> Read More Posts From This Category </div> </div> <div id="homepagebottom"> <div class="hpbottom"> <?php $feature_cat_3 = get_option('lifestyle_feature_cat_3'); $feature_cat_3_num = get_option('lifestyle_feature_cat_3_num'); if(!$feature_cat_3) $feature_cat_3 = 1; //setting a default ?> <h3><?php echo cat_id_to_name($feature_cat_3); ?></h3> <?php $recent = new WP_Query("cat=".$feature_cat_3."&showposts=".$feat ure_cat_3_num); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "hpbottom", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(350, "[Read more of this review]"); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> Read More Posts From This Category </div> </div> </div> <?php include(TEMPLATEPATH."/sidebar.php");?> </div> <?php get_footer(); ?> |
Re: Don't want Featured Content Gallery
the part in bold hides this div if the requirements [ie fcg isn't called for and activated ] aren't met. Remove it and you should be fine.
<?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?> <?php if (function_exists('gallery_styles')) : ?> <div id="homepagetop"> <div class="featuredtop"> Hi! Can you help me?!?! This is where I would like to add a text field. Thank you. </div> </div> <?php endif; ?> |
| All times are GMT -5. The time now is 08:06 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.