Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1189877
    kaylaadrianna
    Participant

    Hi,

    My client isn’t loving the layout of the search page for his website and I’m wondering how I can change the size of the images so that they don’t dominate the search results like the currently do. Ideally, I’d like to have the same layout as my MEDIA/Archive or Blog page.

    He’d also like to have the text of the 404 page changed when a search comes up with no results because it currently looks like the user has made an error (it’s not clear that what they’re looking for isn’t there).

    Can you help?

    #1189878
    kaylaadrianna
    Participant
    This reply has been marked as private.
    #1189916
    Rupok
    Member

    Hi there,

    Thanks for writing in!

    #1. You can add this under Custom > CSS in the Customizer.

    .search-results article.hentry {
      clear: right;
      float: left;
      margin-right: 4%;
      margin-top: 30px;
      margin-bottom: 30px;
      width: 48%;
    }
    
    .search-results article.hentry:nth-child(2n) {
      margin-right: 0;
    }

    Hopefully this will make the search result page similar to the blog/media page.

    #2. You can use our “Custom 404” extension from X Addons menu and use your own content for the 404 page. See this for more information – https://community.theme.co/kb/extension-custom-404/

    Hope this helps.

    #1190838
    kaylaadrianna
    Participant

    1. The code for the the search page didn’t work. Is it possible that another custom code I’m using is interfering?

    2. Thank you!!

    #1191002
    Rahul
    Moderator

    Hey There,

    Thanks for writing back!

    Possible! Can you please remove the previous custom code and check it again with the given code? Let us know if this works.

    Thank you.

    #1191169
    kaylaadrianna
    Participant

    Thanks for the suggestion. I placed the code before the other customizations and it worked!

    I turned on Custom 404, created a new page to redirect to, but I still get the same(old) error page when I search for something like “bunnies” that couldn’t possibly show up in my search results. Any idea what’s going on?

    #1191767
    Rupok
    Member

    Hi there,

    I am not quite certain about the issue. Are you referring the search result page when there is no result? – http://prntscr.com/cmt55t

    It’s not actually 404 page rather “No result” page. If you want to change this, you will need template change with Child Theme.

    Let us know what you are referring.

    #1192939
    kaylaadrianna
    Participant

    If a visitor uses the search function to look up an article and the search turns up no results, the visitor gets sent to that “Nothing to show right now” page. I would like them to see a custom message and possibly a list of other articles they can read instead. I don’t have a child theme installed.

    #1193406
    Rupok
    Member

    Hi there,

    Thanks for writing back. As I mentioned, it’s a “No result” page and you can only change this through Child Theme if you want. You need to edit the file /framework/views/global/_content-none.php.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1189877 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>