Home>Support>Hidden Page titles – Not showing in Search results

Hidden Page titles – Not showing in Search results

Hi guys,

I have this code in my custom CSS:

/* Vantage hide page titles */

article.page .entry-header h1.entry-title {
display: none;
}

I’d like to add a search bar to my site, but the code hides the page titles from search results. I’d like to hide the page titles only in pages. Is there a code you can give me that will only show the titles in search results?

Thanks!

URL: https://rockclass101.com/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 7 months ago hardel

    Question 2 – Is there a way to change the displayed image size for featured images in search results (pages only).

    I’d like the image to display at 300 x 169 in search results.

  2. 6 years, 7 months ago Andrew Misplon Hi, I Work Here

    Hi Hardel

    You can fix/change this with some custom CSS. If you navigate to Appearance > Custom CSS, you’ll get our custom CSS editor. Just add the following code.

    .search-results article.page .entry-header h1.entry-title {
    	display: block;
    }
    
  3. 6 years, 7 months ago Andrew Misplon Hi, I Work Here
    /* Search Results Small Thumbnail */
    
    .search-results article.post.post-with-thumbnail-icon .entry-thumbnail, article.page.post-with-thumbnail-icon .entry-thumbnail {
        margin-top: 0.2em;
        float: left;
        clear: none;
        width: 11.68%;
    }
    
    .search-results article.post.post-with-thumbnail-icon .entry-main, article.page.post-with-thumbnail-icon .entry-main {
        width: 650px;
        width: 84.41%;
        float: right;
    }
    
  4. 6 years, 7 months ago hardel

    Thanks Andrew, the first code worked great for displaying the page title in searches.

    But, the second code made no change to the size of the small thumbnail. I do not use posts, only pages. I’d like the page featured image to display at 300 x 169 in search results.

  5. 6 years, 7 months ago hardel

    I’m also having another issue. When I click ‘next’ or page 2 in the search results, it redirects to the 404 page. Any way to fix this?

  6. 6 years, 7 months ago Andrew Misplon Hi, I Work Here

    Page featured images are, unfortunately, not displayed in search results in Vantage at the moment.

    To fix the 404 issue, try going to Settings > Permalinks and just clicking Save.

  7. 6 years, 7 months ago hardel

    Thanks Andrew. I found a workaround for the images.

    I’d like to hide the search bar displayed in: no-results.php

    Can you provide a css code I can use to do so?

  8. 6 years, 7 months ago hardel

    I am also noticing a few issues with search results.

    For example: https://rockclass101.com/?s=rock

    Click on page 3 or 6 of the results. It is a a dead page. While some of the results pages (like 4 or 14) are functioning perfectly. Any idea how to fix this? I did the perma link suggestion and that fixed it previously.

  9. 6 years, 7 months ago hardel

    * update. page 3 is working now, but it is only displaying one result. I deleted all my posts (my site is all pages) and page 3 starting working after that…

    6, 7, 8 and so on are not working.

  10. 6 years, 7 months ago Andrew Misplon Hi, I Work Here

    The search widget in your sidebar could be hidden using Jetpack Widget Visibility:
    http://jetpack.me/support/widget-visibility/

    Once Jetpack is activated recommend going to Jetpack > Settings and de-activate everything, then just activate Widget Visibility and any other modules you want.

    At Appearance > Widgets open search widget, click Visibility then Don’t Show If > Page is > Search Results.

    Go to Settings > Permalinks and click Save then re-test the pagination page not found issue in Search Results.

  11. 6 years, 7 months ago hardel

    Hey Andrew,

    I was referring to hiding the search bar on the no-results.php page, not the one in my sidebar.

    Is there a code to remove that one?

    ———-

    Also, hitting save on the permalinks page is not resolving the pagination page not found issue in Search Results.

  12. 6 years, 7 months ago Andrew Misplon Hi, I Work Here
    /* Search */
    
    .search-no-results .entry-content .searchform { display: none; }
    

    For the pagination issue, I’m not sure what the problem is there. You could try a plugin conflict test. Test the problem with all non-SiteOrigin plugins de-activated at once.

  13. 6 years, 7 months ago hardel

    The search results display anywhere from 1-5 page results. Is there a way to edit this to make each result page show the same number of results?

  14. 6 years, 7 months ago Andrew Misplon Hi, I Work Here

    It’s not normal behaviour. I’m not sure why this happening. A plugin conflict test would be the place to start testing.

  15. 6 years, 7 months ago hardel

    Hey Andrew,

    I was able to conclude that the membership plugin I am using is causing the pagination issue. Thanks for the help, I’ll reach out to them for resolving the issue.

  16. 6 years, 7 months ago Andrew Misplon Hi, I Work Here

    Glad to hear you’re making progress, nice find.

    All the best.

  17. 6 years, 1 month ago Urban Alchemy

    Hi Andrew! Will any of this css give my post titles h1 tags?

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More