Support » Theme: Twenty Twenty-One » How to add featured image on the search result at Twenty Twenty-One WordPress th

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think we can help with this. We’ll add it to the Options for Twenty Twenty-One plugin.

    This CSS should get you started …

        .search .search-result-count {
    	max-width: none;
        }
        .search .site-main {
            display: flex;
            flex-wrap: wrap;
            padding-left: 0;
            padding-right: 0;
            width: 100%;
        }
        @media (min-width: 482px) {
            .search .site-main {
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }
        .search .site-main > * {
            padding: 1rem;
            width: 100%;
        }
        .search .site-main > article {
            margin: 0;
        }
        @media (min-width: 482px) {
            .search .site-main > article {
                width: 50%;
            }
        }
        @media (min-width: 822px) {
            .search .site-main > article {
                width: 33.33333%;
            }
        }
        .search .site-main > article .more-link {
            margin-top: 30px;
            display: table;
        }
        .search .site-main > article > .entry-header > .post-thumbnail figcaption, .blog .site-main > article > .entry-footer {
            display: none;
        }

    Oliver

    Thread Starter MD Sourov

    (@sourov17)

    I want the featured image on search results.

    Featured images are shown on search results. You must have turned them off somehow.

    If you send a link to your site I’ll find out what’s going on.

    Oliver

    Thread Starter MD Sourov

    (@sourov17)

    It’s working Now

    You’re welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.