Forums Forums Search & Filter Pro Adding the Post Title to Search Results and Thumbnail Question

Viewing 6 posts - 11 through 16 (of 16 total)
  • Anonymous
    #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
    #271891

    Ah, 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
    #271974

    Is this also resolved now Andrew?

    Anonymous
    #271979

    Yes, thank you Trevor! But, I do have one more question. Is it possible to change the thumbnail image to the full size “featured image”. I did a mock up in photoshop to illustrate the difference:

    null

    Trevor
    #271983

    It 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.

    Anonymous
    #271986

    Thank you, Trevor. You can close this thread 🙂

Viewing 6 posts - 11 through 16 (of 16 total)