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

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

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 9 months ago Bram Vanbilsen (BvDesigns)

    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. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More