Hi
We would like to simplify search page. We dont want the excerpt to be visible under the heading.
Also, how do I remove the right side?
I have located search.php in the Enfold theme. But I am using a child theme.
Hi batesunited!
Just create an “includes” folder in your child theme directory and copy the modified loop-search.php into this folder – i.e. the file path should look like: wp-content/themes/enfold/includes/loop-search.php
If you want to remove the excerpt delete this code located in loop-search.php:
<?php
echo '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>';
$excerpt = trim(get_the_excerpt());
if(!empty($excerpt))
{
the_excerpt();
}
else
{
$excerpt = strip_shortcodes( get_the_content() );
$excerpt = apply_filters('the_excerpt', $excerpt);
$excerpt = str_replace(']]>', ']]>', $excerpt);
echo $excerpt;
}
echo '</div>';
?>
If you want to remove the sidebar add this code into the child theme functions.php file:
add_action('wp_head','avia_remove_search_sidebar', 10);
function avia_remove_search_sidebar()
{
global $avia_config;
$result = "fullsize";
$avia_config['layout']['current'] = $avia_config['layout'][$result];
$avia_config['layout']['current']['main'] = $result;
}
Best regards,
Peter
Thanks! Worked great!
Thomas