-
AuthorPosts
-
July 5, 2021 at 2:58 pm #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
BrJuly 5, 2021 at 4:52 pm #1308811Hey AnniNilsson,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan ShannonJuly 7, 2021 at 8:22 am #1309049Hi!
See private content.
And when you try to search (and in the search result), the text is placed to the top from the number.July 8, 2021 at 3:57 am #1309178Hi,
Thanks for that. Please try the following in Quick CSS under Enfold->General Styling:
.search-result-counter { top: -10px; }
Best regards,
RikardJuly 8, 2021 at 8:16 am #1309202Yey 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
July 9, 2021 at 6:24 am #1309343Hi,
Please try this CSS as well:
span.av_ajax_search_title { margin-top: 7px; }
Best regards,
RikardJuly 9, 2021 at 8:20 am #1309348PERFECT, 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!
BrJuly 12, 2021 at 11:12 am #1309724Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.