This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Hidden Page titles – Not showing in Search results

Resolved 17 replies premiumthemetheme-vantage
10 years ago · Last reply by Urban Alchemy 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

17
  1. hardel 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago
    /* 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. hardel 10 years, 4 months ago

    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. hardel 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

    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. hardel 10 years, 4 months ago

    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. hardel 10 years, 4 months ago

    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. hardel 10 years, 4 months ago

    * 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. Andrew Misplon Staff 10 years, 4 months ago

    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. hardel 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago
    /* 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. hardel 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

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

  15. hardel 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

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

    All the best.

  17. Urban Alchemy 9 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread