Forums › Forums › Search & Filter Pro › Adding the Post Title to Search Results and Thumbnail Question
- This topic has 15 replies, 2 voices, and was last updated 4 years, 1 month ago by
Anonymous.
-
Anonymous(Private) January 6, 2021 at 7:26 pm #271824
What I need is a body class or something unique to be able to target the post titles on this page:
https://rockclass101.com/songcategories/?_sft_category=all-songs
The post titles are already visible on the WordPress search page:
https://rockclass101.com/?s=test
The first link is controlled by S&F and it doesn’t use the WordPress search page.
Trevor(Private) January 7, 2021 at 10:58 am #271891Ah, now I understand. You have some CSS hiding the title:
https://www.screencast.com/t/WSyi4puCa33
This is the CSS:
body:not(.search-results) article.post .entry-header { display: none; }
So, you need to counter that. Setting is_search adds the necessary class to the body tag. I have done this for one form:
https://www.screencast.com/t/tyRYMUGHWOL7
You will need to do it for the other forms.
Trevor(Private) January 7, 2021 at 6:36 pm #271983It isn’t coded in the search.php template file, the loop is called here:
<?php get_template_part( 'loops/loop', siteorigin_setting( 'layout_search' ) ); ?>
We have no control over that.
You would need to ask SiteOrigin how to make it wider. It appears to be set by the column widths of the two columns, currently set at 11.68% and 84.41%.
My guess is that the theme will pick an image to suit the column width. So, if you make the image wider, the content (title etc) will get smaller.
But, as I said, we have no control over that. Our plugin is simply telling the theme which posts to show.
-
AuthorPosts