Forums

[resolved] Can't see excerpt (10 posts)

  1. The Night Fox
    Member
    Posted 1 year ago #

    When I enter a custom excerpt I can only see a small portion of it in my blogroll as the excerpt container doesn't expand to accomidate the longer excerpt. How can I edit my theme so that the excerpt container will expand to just fit the entire excerpt?

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    that probably depends on the theme you are using and the stylesheet.

    without seeing the issue, there is not much help anyone could provide.

    link to your site?

  3. The Night Fox
    Member
    Posted 1 year ago #

    Hi, thanks for the reply.

    My website is http://www.videogamecoupons.org/.

    If you look at the 'Free Value Shipping' post you can see that it is cut off after 'tips', but there are extra lines after this in the custom excerpt. I'm assuming this is due to the fact that the excerpt container is the same size for all posts.

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    there is a fixed height in style-section-layout.css:

    div.indexpost div.entry, div.listpost div.entry {margin: 10px; border: 1px dotted #1b7d5a; padding: 10px; overflow: hidden; height: 150px;}

    you could try and change this to min-height: 150px;

  5. The Night Fox
    Member
    Posted 1 year ago #

    Thanks for the quick reply!

    That worked perfectly, but as you can see the text wraps around the image thumnail... Is it posible to create a rule that specifys that the text should stay to the right of the thumbnail like the text above the overflow?

  6. alchymyth
    The Sweeper
    Posted 1 year ago #

    every improvement is a change, but not every change is an improvement.

    try and add this style a few lines after where you did the last edit in style-section-layout.css:

    div.indexpost div.entry div.text { width: 403px; float:right; }

    (only evaluated in firefox, not intesively tested in any other browser or on any other pages)

  7. The Night Fox
    Member
    Posted 1 year ago #

    That works great in chrome and safari also, but for some reason it does not show up if I click the gamestop category from the category menu.

    Last question: How can I remove the read more link from the post excerpt? I know I have to edit the them functions, but whenever try edit it I get a fatal error :|

    Thanks again, really appreciate the help!

  8. alchymyth
    The Sweeper
    Posted 1 year ago #

    in the gamestop category, the element is:

    div.listpost div.entry div.text { width: 373px; float:right; }

    (this has a different width)

    try and add this to the stylesheet as well.

    know I have to edit the them functions, but whenever try edit it I get a fatal error :|

    you could paste the code of functions.php of your theme into a http://wordpress.pastebin.com/ and post the link to it here. someone might be able to suggest what to change without error message.

  9. 123milliseconds
    Member
    Posted 1 year ago #

    If its a large functions file; the error message ( probably pointing to a line number) will help immensely too

  10. The Night Fox
    Member
    Posted 1 year ago #

    Thanks again alchymyth!

    @123miliseconds

    This is the portion of the theme fuction that partains to the read more link:

    //EXCERPT
    function excerpt_length( $length ) {
    	return 10;
    }
    add_filter( 'excerpt_length', 'excerpt_length' );
    
    function continue_reading_link() {
    	return ' <a href="'. get_permalink() . '">' . __( 'Read more <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
    }
    
    function auto_excerpt_more( $more ) {
    	return ' &hellip;' . continue_reading_link();
    }
    add_filter( 'excerpt_more', 'auto_excerpt_more' );
    
    function custom_excerpt_more( $output ) {
    	if ( has_excerpt() && ! is_attachment() ) {
    		$output .= continue_reading_link();
    	}
    	return $output;
    }
    add_filter( 'get_the_excerpt', 'custom_excerpt_more' );
    //EXCERPT

Topic Closed

This topic has been closed to new replies.

About this Topic