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.

I messed the code up a bit, can anyone help?

Hi,
I was messing around with the code a bit to change the standard text but I think that I did something wrong. The problem: If I search something and it finds an article on my site, the articles and everything appears. But when I search something and it finds nothing, I get kind of a blank page, something like this: http://scheppersonline.be/?s=derde+graad
Shouldn’t it say something like “no search results”?
I’ll add a picture with the code.
I think I messed up here:

the ‘no result’ part is what I believe is wrong.
Can anyone help me? :)
(link to the picture: http://postimg.org/image/a0emx7a4l/ )

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Bram Vanbilsen (BvDesigns) 10 years, 5 months ago

    Woops, I didn’t get the code in the message.
    What was supposed to be after “I think I messed up here” is

    <?php else : ?>
    		<?php get_template_part( 'no results', 'search' ); ?>
  2. Andrew Misplon Staff 10 years, 5 months ago

    Hi Bram

    All WordPress.org themes completely overwrite their own theme folder during updates. It’s important to not make any edits via Appearance > Editor. If you’ve just made one or two changes via Editor then you should restore the theme to reverse them. That would involve deleting Vantage and re-installing. Here is how that’s done:

    Page: Updating a Theme Using a ZIP File

    Here is where you can download the ZIP file:

    Private Snippet

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