This topic has 11 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #129435
     kiphughes
    Participant

    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

    #129629
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #129637
     kiphughes
    Participant

    Hello,

    Thanks for the reply. I’ve tested the plugin but we also want to modify the “x” number of search results.

    #129741
     kiphughes
    Participant

    Following up.

    Also, we might just remove the counter. Where in the code do we need to go to modify the search results title?

    #130013
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #130020
     kiphughes
    Participant

    We 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.

    #130071
     kiphughes
    Participant

    See attachment.

    Attachments:
    You must be logged in to view attached files.
    #130186
     kiphughes
    Participant

    Here’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.

    #130308
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #130338
     kiphughes
    Participant

    Please just tell us which file and line of code generates this. We’ll modify ourselves.

    #130342
     kiphughes
    Participant

    SOLUTION: in general-title-section.php

    if(is_search()) {
    $title_arr[‘title’] = preg_replace(‘/^([0-9]{1,} search results?)(.*)$/’, ‘Search results$2’, $title_arr[‘title’]);
    }

    #130460
     Laura
    Moderator

    Glad 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 solution

    Laura 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 🙂

Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?