Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1308794

    Hi!
    I have removed the date in the search result (both in the search field and the result result page). And this removed the dates, BUT, the result text (title etc.) that’s above the date is at the same place. This means that the text isn’t centered after the number that shows the result, it’s on the top.

    For example:
    Where I want the text to be:
    1. ————–

    Where the text is:
    1. ¨¨¨¨¨¨¨¨¨¨¨¨¨

    The code I used to remove the date from the search results is:

    .search span.post-meta-infos, .search .entry-content .search-results .post-meta-infos .date-container, .search-results .date-container + .text-sep {
        display: none!important;
    }
    
    .ajax_search_excerpt {
    display: none;
    }
    
    #top div .av_ajax_search_entry_view_all {
        display: none !important;
    
    }

    How do I center the text after the result number?
    My site is in maintaince mode so unfortunately I can’t provide you with a link
    Br

    #1308811

    Hey AnniNilsson,

    Please provide a link to the site/page in question so we can look into this issue further.

    Best regards,
    Jordan Shannon

    #1309049

    Hi!
    See private content.
    And when you try to search (and in the search result), the text is placed to the top from the number.

    #1309178

    Hi,

    Thanks for that. Please try the following in Quick CSS under Enfold->General Styling:

    .search-result-counter {
        top: -10px;
    }

    Best regards,
    Rikard

    #1309202

    Yey works perfect on the result page. Thank you!
    Although it’s still the same in the search box. When I type something in the search box and suggestions shows underneath, the text is still not centered..
    Is there a code to fix this?

    Br

    #1309343

    Hi,

    Please try this CSS as well:

    span.av_ajax_search_title {
      margin-top: 7px;
    }

    Best regards,
    Rikard

    #1309348

    PERFECT, thank you! Two more questions about the result page.

    1. When I search in the search box the feauture image is shown, but at the result page only a number is shown. I would like the feauture image to be shown on the result page instead of the number. Is there a code to fix this?

    2. In mobile view, the results on the result page overlap each other. How can I fix this?

    Thanks for helping me!
    Br

    #1309724

    Hi Hejanni,

    1. This would require using a child theme, if you don’t have one yet then please download it at https://kriesi.at/documentation/enfold/child-theme/ and read the instructions on the documentation.
    Then go to wp-content > themes > enfold > includes folder then copy loop-search.php, then go to the child theme, then create a folder and name it includes inside it paste the copied file.
    Edit the file and find this code (it should be in line 105 in Enfold 4.8.3):

    echo '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>';

    below it, paste this code:

    if (get_the_post_thumbnail( $the_id )) {
        the_post_thumbnail( $the_id );
    }

    2. Can you give us temporary access? the maintenance mode keeps appearing and prevents us from seeing the search results. I tried to check this on my local server but I don’t see this happening.

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.