Community Forums › Forums › Archived Forums › Design Tips and Tricks › Another Expose Theme Help Needed
- This topic has 9 replies, 3 voices, and was last updated 11 years, 9 months ago by charriott4.
-
AuthorPosts
-
February 16, 2013 at 3:25 pm #20719dareadelParticipant
On this homepage at http://www.abiastateinternational.com, I need to adjust the excerpt to align the images into three rows and three column. I set the 3/3 for 9 postings inside the Settings>Readings as instructed in the setup instructions. But trying to post and override the template has not come out right. I need to align them or at least control the excerpt but don't know where and how to do it.
February 16, 2013 at 6:40 pm #20733charriott4MemberTry setting your min-height to 375px as shown below. Expose theme is setup to pull the post excerpt, so if you don't have enough content for each post, it will display off.
<code>#content .portfolio-posts {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #D5D5D5;
display: inline;
float: left;
margin: 0 10px 10px;
min-height: 375px;
overflow: hidden;
padding: 9px;
width: 280px;}</code>
Web Designs By Chrissy | Twitter @designbychrissy
February 16, 2013 at 7:46 pm #20756dareadelParticipantFantastic! Thanks charriot4 and God bless you. You saved me from another hours of trying to find a needle in haystack.
It looks better except that it's showing 10 posts instead of 9 which I set in the Appearance>Readings page.
February 16, 2013 at 7:52 pm #20760charriott4MemberIn the home.php code its pulling 10 posts, change it there but BE CAREFUL. Make a copy of the home.php file FIRST in case you make a mistake, believe me 🙂
Web Designs By Chrissy | Twitter @designbychrissy
February 16, 2013 at 8:20 pm #20766dareadelParticipantThere is no 10 in home.php. Here is what I have:
<?php
// Force the excerpt
remove_action('genesis_post_content', 'genesis_do_post_content');
add_action('genesis_post_content', 'the_excerpt');// Remove the archive thumbnail from the home page
remove_action('genesis_post_content', 'genesis_do_post_image');// Add featured image above title on teasers
add_action('genesis_before_post_title', 'expose_homepage_teaser_image');
function expose_homepage_teaser_image() {
global $loop_counter;
$paged = get_query_var('paged') ? get_query_var('paged') : 1;printf( '<p><a href="%s">%s</a></p>', get_permalink(), genesis_get_image( array( 'format' => 'html', 'size'=> 'Featured' ) ) );
}
// Add .portfolio-posts class to every post, except first 2
add_filter('post_class', 'expose_homepage_post_class');
function expose_homepage_post_class( $classes ) {
global $loop_counter;
$paged = get_query_var('paged') ? get_query_var('paged') : 1;$classes[] = 'portfolio-posts';
return $classes;
}add_filter('the_excerpt', 'expose_homepage_excerpt_filter');
function expose_homepage_excerpt_filter( $text ) {
return sprintf( '%s<p><a class="alignright" href="%s">Read More →</a></p>', $text, get_permalink() );
}require_once(PARENT_DIR . '/index.php');
February 16, 2013 at 11:22 pm #20778charriott4MemberTry adding this and set the posts per page to the number you want.
//Force 20 posts per page
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'child_do_loop');
function child_do_loop() {
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
do_action( 'genesis_post_title' );
genesis_custom_loop(array(
'posts_per_page' => '20',
'paged' => $paged,
));
}
Web Designs By Chrissy | Twitter @designbychrissy
February 17, 2013 at 6:51 am #20790dareadelParticipantWorked. Thanks Chrissy I am now following you on Facebook. Have a blessed weekend.
Sorry I don't want to be shy from asking you for another favor if you don't mind. I had this post here at http://www.studiopress.community/topic/expose-footer-code-not-working/ and have not been resolved and I was thinking I should ask you for help.
This footer code doesn't work as stated:
<?php if ( is_active_sidebar(“Footer #1) || is_active_sidebar(“Footer #2) || is_active_sidebar(“Footer #3) ) : ?>
<div id=”footer-widgeted”>
<div class=”wrap”>
<div class=”footer-widgeted-1″>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer #1′) ) : ?>
<?php endif; ?>
</div><!– end .footer-widgeted-1 –>
<div class=”footer-widgeted-2″>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer #2′) ) : ?>
<?php endif; ?>
</div><!– end .footer-widgeted-2 –>
<div class=”footer-widgeted-3″>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer #3′) ) : ?>
<?php endif; ?>
</div><!– end .footer-widgeted-3 –>
</div><!– end .wrap –>
</div><!– end #footer-widgeted –>
<?php endif; ?>February 17, 2013 at 4:12 pm #20893charriott4Member“Footer #1 - make sure you add the ending " in the code on the first line for all 3
Web Designs By Chrissy | Twitter @designbychrissy
February 19, 2013 at 5:23 pm #21500practicalsitesMemberI need to amend the post excerpt but I can not find where to do that - please help.
cornercanyon4thward.com
February 19, 2013 at 7:25 pm #21541charriott4Member -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.