To add listings to the Agentpress pro themes front page, you need to install and setup the AgentPress Listings plugin.
This plugin generates a widget which is generally added to the themes front page widget areas.
If you want to change the View Listings text for each listing, you will need to add custom code to the themes functions file. If you edit the plugins file to change the text, it will be overwritten when you update the plugin so its not best practice to do that.
Here’s the text in red which this solution enables you to modify:
If you need to modify the View listings text on the archive page, you can simply do that in the child themes archive-listings.php file however this only effects the archive and not the front page which uses the widget to add the listings.
Note: The code doesn’t only enable you to change the view listing link text. It also enables you to change all the PHP functionality and classes generated by the widget for the entire custom loop included in the plugin.
The entire output generated by the widget can be modified to your own requirements.
Here’s the code you simply copy & paste to the end of your child themes functions file:
You need to subscribe to fully access this tutorial.