Hi,
I’ve searched everywhere and have tried just about everything to change the content within the H1 tag for the search pages with no luck.
I started out trying to update the text on the ‘Titles & Metas’ admin section of GeoDirectory but no luck. I tried checking and unchecking the box to override Yoast.
I always used child themes and followed the instructions here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/
I searched the entire geodirectory-en_US.po file and was unsuccessful.
I found the geodir_action_search_page_title function on the geodirectory_template_actions.php page around line 3002. However, I was unable to figure out what exactly needed to be done and was hoping there was a simpler and smarter way to go about updating the text so that it’s not hardcoded and programmatically shows the category/search option the user selected from the dropdown and NOT the ‘Search Programs’ text. The word ‘Programs’ was edited via the custom posts add-on.
Any help would be greatly appreciated