Skip to content

Instantly share code, notes, and snippets.

@guilhermealveslopes
Created March 15, 2017 17:22
Show Gist options
  • Save guilhermealveslopes/4cbe45e824208f610aa3a6449da4d1cf to your computer and use it in GitHub Desktop.
Save guilhermealveslopes/4cbe45e824208f610aa3a6449da4d1cf to your computer and use it in GitHub Desktop.
Fix S&F result for Avada theme.
/* Duplicate and edit*/
/avada/search.php +/ /avada/search-filter-results.php
remove line 71-74 {
$post_timestamp = strtotime($post->post_date);
$post_month = date('n', $post_timestamp);
$post_year = get_the_date('o');
$current_date = get_the_date('o-n');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment