Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #175518

    I have certain categories in my menu that I want to return a blogroll, but only as an exerpt. I currently get the full article. Can you tell me where I can fix this? The WP admin option under Reading doesn’t manage this function, apparently.

    It would also be incredibly awesome if I could have the results layout as a grid instead of the default list, is this at all possible?

    I create videotuts on a wide variety of subjects, and I basically want the menu to function as a blogroll topic filter so students can dive straight into whatever subject they want to learn about.

    Thanks in advance for any help you can provide!

    Edit: I also noticed the search results page has a standard sidebar that lists al pages and categories. Is there a way to alter what is displayed in this sidebar? It is not listed under widgets.

    • This topic was modified 11 years, 2 months ago by Easy123.
    #176270

    Hello Easy123!

    1) Please see https://kriesi.at/support/topic/make-excerpt-shorter/#post-172121

    2) You can change the blog layout on the option page (Enfold > General Settings > Blog Style). It will affect the blog page and archive pages. The search page and the author pages do not support the blog grid layout at the moment though.

    3) The search page displays the “Displayed Everywhere” widgets. You can add a widget to this widget area to remove the dummy widgets on the search page too or (if you don’t want to add a widget to the “Displayed Everywhere” area open up sidebar.php and delete

    
            if ($default_sidebar)
            {
                 avia_dummy_widget(2);
                 avia_dummy_widget(3);
                 avia_dummy_widget(4);
            }
    

    Regards,
    Peter

    #176381

    Thanks for the quick reply!

    Another question: Is it possible to limit the search to posts (of a certain category, perhaps with preview image??) only? I do not want the search to return pages, tags or portfolio items. I’ve looked at search.php in the enfold files but I’m lost.

    #176386

    -Deleted-

    #177287

    Hey!

    Yes, see: http://www.wpexplorer.com/limit-wordpress-search/

    You can even use a child theme to add the hidden input fields to your search form – just paste following code into the functions.php file (child theme or enfold functions.php):

    
    add_action('ava_frontend_search_form','add_search_form_fields');
    function add_search_form_fields()
    {
    echo '<input type="hidden" name="cat" id="cat" value="5" />';
    }
    

    and instead of 5 enter the id of the category you want to include in the search.

    Cheers!
    Peter

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Exerpt only in search results’ is closed to new replies.