![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
bascially follow the instructions here viewtopic.php?f=8&t=5111
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse Make life easier use FireFox and these Customizing tools: Firebug - Web Developer New to Genesis? See our Guide for Beginners! Recommended StudioPress Designer StudioPress on Facebook |
|
#3
|
|||
|
|||
|
I can't read that Thread , I don't have the authority... Any other suggestions?
|
|
#4
|
||||
|
||||
|
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();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
[img]<?php bloginfo('template_url'); ?>/images/thumbnail.jpg[/img]" />
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(350, "[Read More]"); ?>
<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
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse Make life easier use FireFox and these Customizing tools: Firebug - Web Developer New to Genesis? See our Guide for Beginners! Recommended StudioPress Designer StudioPress on Facebook |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
Please post your entire home.php. Thanks.
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#7
|
|||
|
|||
|
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(); ?> |
|
#8
|
||||
|
||||
|
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; ?>
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse Make life easier use FireFox and these Customizing tools: Firebug - Web Developer New to Genesis? See our Guide for Beginners! Recommended StudioPress Designer StudioPress on Facebook |
| Thread Tools | |
| Display Modes | |
|
|
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 |
| Exchange Featured Video Gallery for Featured Content Gallery | detailzz | General Discussion | 4 | 09-14-2009 03:32 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us