admin管理员组文章数量:1323342
Seems that according to the nature of my theme, whenever I do a search query and a result from my Projects section appears, the pictures appear huge and even break the footer! Whereas if I do a search query that finds something from my Blog section, they appear fine. Example here: Projects section search result: /?s=of+earth Blog section search result: /?s=goat
What can I do to push post results that go under Projects section to appear as neat as the ones appearing as a post result for Blog section?
Kindly advise! So thankful!!!
Seems that according to the nature of my theme, whenever I do a search query and a result from my Projects section appears, the pictures appear huge and even break the footer! Whereas if I do a search query that finds something from my Blog section, they appear fine. Example here: Projects section search result: https://unsafebutsound/?s=of+earth Blog section search result: https://unsafebutsound/?s=goat
What can I do to push post results that go under Projects section to appear as neat as the ones appearing as a post result for Blog section?
Kindly advise! So thankful!!!
Share Improve this question asked Sep 7, 2020 at 11:12 ShadyShady 213 bronze badges1 Answer
Reset to default 0This is down to difference in the classes output by different types of content in your theme's search page.
The CSS of your theme restricts the width of Posts to 50% of the screen with this rule
.blog-area .type-post.size-2x1 {
width: 50%;
}
But for your project content, there is no 'type-post' or 'size-2x1' classes so the same constraint is not there. Images will be much wider.
I can't tell you why these classes are coming out differently as thats something specific to your Wordpress theme. It's possible that to solve this properly you will need to change the code of the Search page template as well as adding some more CSS, specific to the needs of your search page.
本文标签: Search results thumbnails different size
版权声明:本文标题:Search results thumbnails different size 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742133972a2422287.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论