-
Author
-
July 18, 2016 at 12:34 #129435kiphughesParticipant
Hi,
I’m doing some customizations with the search page and I want in the breadcrumb section to change the text “x Search Results for: xxxx”, I’ve been looking on the files on search.php and the header files but can’t seem to find to where I can edit that.
Can you help me locate where that is?
Thanks,
John Robertson
July 20, 2016 at 02:24 #129629LauraModeratorHello, try using loco translate plugin, you can use it to edit some strings 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 20, 2016 at 03:01 #129637kiphughesParticipantHello,
Thanks for the reply. I’ve tested the plugin but we also want to modify the “x” number of search results.
July 21, 2016 at 10:00 #129741kiphughesParticipantFollowing up.
Also, we might just remove the counter. Where in the code do we need to go to modify the search results title?
July 25, 2016 at 05:21 #130013LauraModeratorHello, to hide the counter just add this to style.css of child theme
COPY CODE.search-results .page-title { display: none; }
🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 25, 2016 at 05:35 #130020kiphughesParticipantWe just want to remove the number, not the entire heading. Where in the script is this heading generated? This is not a CSS issue. We also need to reword the heading.
July 25, 2016 at 16:06 #130071kiphughesParticipantSee attachment.
Attachments:
You must be logged in to view attached files.July 26, 2016 at 07:50 #130186kiphughesParticipantHere’s the URL to see the problem: http://dev-server-4.com/?s=model
Please pay close attention to the messages I’ve sent. Several times I’ve gotten answers that have nothing to do with my problem.
July 26, 2016 at 21:04 #130308LauraModeratorHello, that is why i suggested Loco Translate plugin, because is the easier way to change strings, to change the word of the search head title
If you want send me admin credentials so i can check it out for you 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 27, 2016 at 01:09 #130338kiphughesParticipantPlease just tell us which file and line of code generates this. We’ll modify ourselves.
July 27, 2016 at 04:17 #130342kiphughesParticipantSOLUTION: in general-title-section.php
if(is_search()) {
$title_arr[‘title’] = preg_replace(‘/^([0-9]{1,} search results?)(.*)$/’, ‘Search results$2’, $title_arr[‘title’]);
}July 27, 2016 at 23:08 #130460LauraModeratorGlad you found the solution 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.