Search results archive page loses formatting after active search

Hello :slight_smile:

I am using a global block as a menu in a custom search results archive (via layouts in Cornerstone). It looks fine on the interior membership pages. However, after a search is performed the global block content formatting changes, but only for certain words.

Search for ‘dog’ and you’ll see that the global block formatting stays the same, but search for ‘cat’ and the formatting changes.

Please help!

I’ll leave login info in the secure note.

Hello @TonyBear,

Thanks for writing in! It seems that there is another global block that created a conflict with the one you have used in the sidebar. We highly recommend that you discard the global block and use the elements directly in your custom layout. You can check out the demo I have created.

  • See the secure note below.

Best Regards.

Hi @ruenel,

Thank you for reviewing my question.

I was hoping to use the global block since I can use one instance in multiple places. With that said, your solution works. I just wish it were possible to use the global block.

Thanks again.

Hey @TonyBear,

Yes, global blocks can work too. It is just that there are cases that the resulting CSS codes for global blocks will have issues later if there are several other blocks on the page.

Since you are using the custom layout, Just use the elements inside the custom layout. You can also assign your custom layout to other pages as well. You may also use conditions for the sidebar so that you can select which pages you want it to show or hide to minimize the number of custom layout. For example, if the layout of the blog index, archive pages and search results are the same, I would probably use one custom layout even if they will have a different sidebars. I can throw in 3 sidebar structure set up in that custom layout and just use conditions so that I can display different sidebars. This will make my editing easier since I will only be editing one custom layout and I can edit the sidebars as well in the builder without going back and forth to another builder unlike when using the global blocks.

Hope this makes sense.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.