• Resolved April Roy

    (@awapril)


    I am using the WordPress search widget.

    I want to change a few things on the search results page but can’t even find the page anywhere unless I do a search myself. Where can I find the page?

    I want to make it so that the search bar is contained to the widget space…

    Also I would like the three little dots in between the brackets removed. They are located underneath each post result and looks like this […]

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • > Where can I find the page?

    WordPress system doesn’t provide any page for search result even there’s no option to customize through dashboard.

    > I want to make it so that the search bar is contained to the widget space…

    Try adding the below extra custom CSS code:

    
    .widget_search .search-field {
      max-width: 100%;
    }
    

    To remove the ellipsis on excerpt, try adding the below function into your child theme’s functions.php file.

    
    /**
     * Change search result elipsis
     */
    
     function sydney_child_modify_excerpt_elipsis($content) {
    
       if( is_search() ) {
         return str_replace('[…]', '', $content);
       }
    
       return $content;
    
     }
     add_filter('the_excerpt', 'sydney_child_modify_excerpt_elipsis');
    

    Or you can use the functionality plugin like Code Snippets without running any child theme.

    Regards,
    Kharis

    Thread Starter April Roy

    (@awapril)

    Thanks for all your help!

    CSS for the search bar worked great.

    the code for getting rid of the ellipsis did not, but I decided to do something different anyway, so that’s fine. I don’t need anymore help with that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Results Page’ is closed to new replies.