WordPress.org

Ready to get started?Download WordPress

Forums

Expound
Don't want text for Secondary Feature Content, but shows up when minimized (4 posts)

  1. couchpotatotalk
    Member
    Posted 5 months ago #

    http://couchpotatotalk.com/

    I didn't want any post text to show up for the secondary feature content and I thought I had it working, however, when you start to minimize the window the text appears again and ruins the layout. How is this text coming back when it doesn't show on full screen mode?

    I think this is what does it. I created this site over a year ago. Now that I am looking at it it seems like I am just covering it, not actually removing the text

    .featured-content-secondary article {
    float: left;
    height: 160px;
    margin-left: 10px;
    margin-right: 10px;
    width: 220px;
    }

    .featured-content-secondary {
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 10px;
    }

  2. couchpotatotalk
    Member
    Posted 5 months ago #

    Playing around with it more it looks like the real issue is that the page doesnt handle minimizing well when it comes to the 4 thumbnails. What happens on other sites when you make the page smaller?

  3. couchpotatotalk
    Member
    Posted 4 months ago #

    SO I think I want to revise my question. What I am doing will work if I change the amount of featured content from 4 to 3. I was viewing this on my tablet earlier and think having 3 across would fit on that screen. Any thoughts?

  4. LinuxPanda
    Member
    Posted 4 months ago #

    I think its not possible to cannot change the excerpt length for just the secondary featured area as the codes for excerpt length are in the wordpress core files.

    You can change the excerpt length for all posts in functions.php.

    /**
     * Change excerpt length to 10. Default is 55.
     */
    function custom_excerpt_length( $length ) {
    	return 10;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    http://codex.wordpress.org/Function_Reference/the_excerpt#Control_Excerpt_Length_using_Filters

    /**
     * Change excerpt length to 0 and remove the ... that is displayed.
     */
    function custom_excerpt_length( $length ) {
    	return 0;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
    
    function custom_excerpt_more( $more ) {
    	return '';
    }
    add_filter( 'excerpt_more', 'custom_excerpt_more', 999 );

    http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more
    `

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.