Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #275495

    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.

    #275543

    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

    #275593

    Thanks! Worked great!

    Thomas

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How do I edit search page?’ is closed to new replies.