Jump to content


Photo
- - - - -

Editing Nothing Found in Search results


  • Please log in to reply
11 replies to this topic

#1 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 10 July 2012 - 06:03 PM

Trying to change the text on the search result page... and cannot locate which file first of all and then how do implement that in the base theme? So changing the 'Nothing Found" to something else. Please advise. Thanks

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 10 July 2012 - 06:49 PM

The actual text comes from a WordPress core file. It's actually not PageLines. You can always check the WP.com forums on this, or simply replace that with your own message in the Drag and Drop PageLines settings. I'd recommend the search at WP.com first.

Please Login or Register to see this Hidden Content



#3 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 10 July 2012 - 09:26 PM

I found this... however its 5 years old! and not sure if it will work.. assuming placing inside the functions.php file?
I think I need help. It would be for all the categories... I believe this is for only one?

Please Login or Register to see this Hidden Content


Here is the page with the code working...

Please Login or Register to see this Hidden Content



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 17945 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 11 July 2012 - 09:52 AM

Hi, When you say "Nothing Found" are you referring to the search page or the 404 page ? When a keyword isn't found using the search feature the text displayed is: No results for "X" Try another search? Can you confirm if it is the search results page or 404?

#5 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 11 July 2012 - 01:51 PM

Not the 404... this is an "empty category page" I am referring to.. which most of the categories will take some time to populate.. and the client does not want the Nothing Found result there... Right now under that link above... I listed a post that displays on the category page... and once they populate it, they would delete the post.. however, thats really crappy (to be blunt).. I am expecting its a somewhat easy work around... however, not being a php programmer... I'm not sure what I need to mess with inside a function file.

#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 July 2012 - 07:14 PM

Since the text comes from WP, as I said, you have two options: editing the WP files or adding a customized hook.. Unfortunately, that level of customization would require a pro developer and is beyond my skill set. I had suggested using a text field for that page.

#7 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 11 July 2012 - 07:24 PM

Yes, I did go searching which is why I posted my findings.... with a hook etc... and I also expressed that I was not php saavy... In looking at the "text options" for drag n drop... I did not see a way of producing that page... It is not the 404 page... its a category which does not contain posts... I have a crude way of dealing with it right now... and would like some guidance as to how to utilize the drag n drop feature for a category page which does not contain posts at the time... Can you please explain how I would use that feature of the theme?

#8 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 July 2012 - 09:23 PM

Apologies. I kept thinking 404.

#9 WebWerx

WebWerx

    Advocate

  • Members
  • 546 posts
  • LocationCanada
  • Framework Version:2.2
  • Country: Country Flag

Posted 11 July 2012 - 09:29 PM

Just get the Relevanssi plugin and be done with it. The core WP search tool is terrible.

#10 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 July 2012 - 11:25 PM

Category pages are not going to be easily changed. The only solution would be to create custom category pages or, place something in the categories. How about creating a post titled "More content coming soon!" with a short excerpt, then applying it to all categories that are currently empty. This is kind of difficult for me to grasp as my own site has hundreds of categories in each section and they all have something in them, so I never really see an empty category page.

#11 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 11 July 2012 - 11:30 PM

Yes, thats what I did... create a post and assigned to each category... The client wanted all categories set up before they start to populate... which is why they are empty right now.. @WebWerx... I will look into that one... tried finding something on WP but didn't come up with anything.. Thank you all for your input... and I will post my result here..

#12 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 July 2012 - 11:52 PM

Please do... we're on pins and needles waiting... biting our nails too. ;)