GoodLiving Theme Bug

Hi again, recently i found a bug at ColorLabs theme named GoodLiving. If you already have or use this theme, you may found a bug on the search result.

This theme have 2 search function, the first one is the property search which available at the header of the theme and the second is the default search which is available on 404 Page and also Widget Item.

good2

The bug is founded on the default search, for example add the search widget at your sidebar then try to search for your post/property, what you get is localhost page

good3

I don’t get it why does ColorLabs could have a bug like this one. To fix it, you could modify a file named searchform.php and find out this code

<form role="search" method="get" id="searchform" action="http://localhost/colorlabs/wp35/goodliving/">

Modify that code become

<form role="search" method="get" id="searchform" action="<?php echo home_url(); ?>">

And done! the bug is gone

Leave a comment