Blog Search Results Page not showing posts

Good Day,

Can someone assist me with an issue I am having on my Blog Search Results page?

Currently, the Header and Footer do not match all my other templates. Here is the link to the page: https://blog.numata.co/hs-search-results?term=cybersecurity&type=BLOG_POST&type=LISTING_PAGE

This is what the current header and footer look like: (https://blog.numata.co)

I thought of creating a new Blog Search Results page using one of my landing page templates: Blog Search Result Page and I added the “Site Search Results” module to it.

The “Site Search Input” module was then added to the blog page but if I type a search word like “cybersecurity” for example - it brings up an error message.

Thanks. :slightly_smiling_face:

Hey @JPieters, thank you for posting in our Community!

Please ensure that the header and footer settings are correctly applied to the Blog Search Results page. Sometimes, there might be specific settings for different page types that need to be adjusted.

Also, double-check the configuration of the “Site Search Results” and “Site Search Input” modules. Make sure they are configured to interact properly with your blog content and search functionality.

To our top experts @aviafriat26 and @Jnix284 do you have any recommendations for @JPieters matter?

Thank you,

Pam

Hey @JPieters,

Having trouble with your Blog Search Results page? Let’s get you sorted out.

The Problem

  1. Your Blog Search Results page has a mismatched header and footer.
  2. Your new search page is throwing errors when you type in a search term like “cybersecurity.”

The Fix

  1. Match That Header and Footer:

    • Open your Blog Search Results page template.
    • Copy the header and footer from your main blog page (https://blog.numata.co).
    • Paste them into the Blog Search Results page template. Save and publish.
  2. Sort Out the Search Module:

    • Check the “Site Search Results” module settings on your new page.
    • Make sure it’s set to search blog posts (type=BLOG_POST).
  3. Test It Out:

    • Hit the updated Blog Search Results page.
    • Search for “cybersecurity” and other terms to ensure it works like a charm.

Detailed Steps:

  1. Update Header and Footer:

    • Navigate to your Blog Search Results page template in HubSpot.
    • Copy the header and footer code from your main blog template.
    • Replace the existing header and footer in the Blog Search Results page template with the copied code.
    • Save and publish the changes.
  2. Configure “Site Search Results” Module:

    • Go to the new Blog Search Results page created using the landing page template.
    • Open the “Site Search Results” module settings.
    • Set the search to filter results by type=BLOG_POST.
    • Ensure any necessary filters or configurations are set up correctly to display blog posts.
  3. Testing:

    • Navigate to the updated Blog Search Results page.
    • Perform a search for “cybersecurity” and other keywords.
    • Check that the search results are displayed correctly and that the header and footer match the rest of your site.

Now, your Blog Search Results page should look great and work smoothly.

@aviafriat26 this sounds like you might’ve used AI to get this answer, unfortunately it’s not the correct way to solve the problem and actually creates a lot more work than would be needed to fix the issue.

Happy to help @JPieters, this is actually a really easy fix depending on what theme you’re using and whether it has system page templates included.

In your HubSpot Settings, navigate to Content > Pages > click System Pages tab

then select the template for your theme that’s used for the blog to be used for the Search Results template.

If your theme already includes the system page templates, the header/footer would match automatically.

If the search results template is already from the same theme as the blog, then you’d need to customize the template via code to have the same header/footer as the rest of the theme (unlikely).

Hi Jennifer,

Thank you so much for your help—I can’t believe it was such a simple step! :zany_face: I followed the steps you outlined, and now the blog search results page header and footer match the theme perfectly.

Thanks again for your quick and efficient assistance.
Have a wonderful rest of the week! :blush:
Best regards,
Jenine

You’re welcome @JPieters I’m really happy to hear that you were able to get the system/search templates updated and that it resolved the issue with the header/footer - it’s always nice when it’s an easy fix! Have a wonderful week too, always happy to help!