Another Expose Theme Help Needed

Community Forums Forums Design Tips and Tricks Another Expose Theme Help Needed

This topic is: not resolved

This topic contains 9 replies, has 3 voices, and was last updated by  charriott4 1 year, 1 month ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #20719

    dareadel
    Participant
    Post count: 76

    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.

    #20733

    charriott4
    Participant
    Post count: 57

    Try 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

    Follow Me On Facebook

    #20756

    dareadel
    Participant
    Post count: 76

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

    #20760

    charriott4
    Participant
    Post count: 57

    In 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

    Follow Me On Facebook

    #20766

    dareadel
    Participant
    Post count: 76

    There 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 &rarr;</a></p>’, $text, get_permalink() );
    }

    require_once(PARENT_DIR . ‘/index.php’);

    #20778

    charriott4
    Participant
    Post count: 57

    Try 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

    Follow Me On Facebook

    #20790

    dareadel
    Participant
    Post count: 76

    Worked. 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.com/forums/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; ?>

    #20893

    charriott4
    Participant
    Post count: 57

    “Footer #1 – make sure you add the ending ” in the code on the first line for all 3


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

    #21500

    practicalsites
    Participant
    Post count: 1

    I need to amend the post excerpt but I can not find where to do that – please help.

    cornercanyon4thward.com

     

    #21541

    charriott4
    Participant
    Post count: 57

    Its in the home.php code


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.