Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #23988

    Hi there, is there anyway to change the look of posts when they’ve been collated after a search? i.e. if I search for a post I get the Freatured Image and excerpt. I’d like to add other elements to the way the search results appear perhaps a simple ‘contact’ or ‘read more’ link or button.

    Thanks

    #121904

    Yes sure – you can add your code to wp-contentthemesenfoldincludesloop-search.php. Eg for a read more button replace:

    the_excerpt()

    with

    the_excerpt();
    echo '<div class="read-more-link"><a href="'.get_permalink($the_id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> &rarr;</span></a></div>';

    #121905

    Thanks Dude, this partially works, or perhaps I wasn’t very clear in my initial request.

    Example if the search box (top right in header) is used to forthe search, it generates a horizontal search result with title/excerpt and the new ‘read more’ text which is great, however, if the WP catagory search widget is used then the result is image/excerpt but no ‘read more’ text, this is the search result that I’d really like, can this be done?

    Thanks

    Silvio

    #121906

    Hey!

    Which “WP catagory search widget” do you mean? Is this a third party plugin/extension?

    Regards,

    Peter

    #121907

    no just the standard one that comes with WP

    #121908

    Hey!

    Maybe I’m blind but I’m not aware of a “Category search widget” which is bundled with WordPress. Can you make a screenshot please?

    Regards,

    Peter

    #121909

    Its trhe standard catagory widget, where can I upload a screen shot – i.e catagories – a list of drop down catagories

    #121910

    Hi,

    Sorry for the delay , the fault is mine. You can upload a screen shot to your Dropbox, Google Drive, Imgur.com, clipular.com or a number of other free image upload websites.

    You can use one of the free plugins to extend the search like http://wordpress.org/plugins/relevanssi/ or others in here http://wordpress.org/plugins/tags/better-search

    Thanks,

    Nick

    #121911

    Great thanks.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘POST IN SEARCH VIEW’ is closed to new replies.