MyListing Directory Structure
If you’ve never modified the sharer.php file before or you started out your MyListing journey with version 2.0 (or higher), you can just skip down to the MyListing Version 2.x Structure section.
MyListing Version Pre-2.0 Structure
The versions of MyListing prior to 2.0, used a sharing options path of /my-listing/includes/integrations/27collective/share/.
Assuming you’re using the MyListing Child Theme, the structure you would create in order to modify the sharing options and prevent them from being overwritten with theme updates would be /my-listing-child/includes/integrations/27collective/share/.
You would have then placed a copy of the sharer.php file into the share directory and modified it to fit your requirements, which will need to change, as we discuss in the next section.
MyListing Version 2.x Structure
With the release of the 2.0 version of MyListing, the sharing options path changed to /my-listing/includes/extensions/sharer/.
So, if you’ve modified the sharer.php in the past, all you need to do is adjust the new sharing options path to the new 2.x structure, and you’re done.
That path would be /my-listing-child/includes/extensions/sharer/.
If this is your first time modifying the sharing options, simply create the /my-listing-child/includes/extensions/sharer/ path using FTP (recommended), your website hosting’s cPanel/dashboard or the File Manager plugin.
Note: We recommend testing this out in a staging environment first, before touching your live website.