• https://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;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter couchpotatotalk

    (@couchpotatotalk)

    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?

    Thread Starter couchpotatotalk

    (@couchpotatotalk)

    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?

    WP

    (@linuxpanda)

    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 );

    https://codex.www.ads-software.com/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 );

    https://codex.www.ads-software.com/Plugin_API/Filter_Reference/excerpt_more
    `

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don't want text for Secondary Feature Content, but shows up when minimized’ is closed to new replies.