Listing Sharing Options for MyListing

Get the knowledge your business needs to succeed.


The Listing Sharing Options for MyListing guide will show you to customize the theme’s sharing options for listings, by removing social network options that no longer exist or those you might want to remove as a preference.

We also show you how to adjust the design of the email that’s generated with the Mail sharing option.

MyListing Sharing Options Directory Structure
MyListing Sharer File
Premium Content: Listing Sharing Design

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.

MyListing Sharer File

In this section, we show you how the new Mail share option will look, provide the new sharer.php file, and show you how to edit the file to further meet your requirements

How the Mail Share Option Will Look

If you use the sharer file as-is, the Mail share option will automatically compose an email to contain the content as shown in the screenshot.

We’re pulling in a custom Subject Line, email body text, the title of the listing, and the URL of the listing.

Listing Sharing Options Mylisting Mail

New Sharer File

As the file currently sits (shown below), you’ll be left with the Facebook, Twitter, LinkedIn, Mail, and Copy Link options.

Also, the Mail option has also been adjusted to create a better-formatted e-mail, as previously mentioned.

Simply copy the contents of the new file below into your file, from the previous steps above.

Edit the Sharer File

If you would like to add back some sharing options, edit the Mail option content, or just make some other customizations, you can compare the default sharer file (/my-listing/includes/extensions/sharer/) to the one we’ve provided for download, using your preferred text editor application, such as Visual Studio Code, Notepad++,, etc.)

When you have both files pulled up side by side in the text edit application, you can easily copy settings from the original sharer.php to your new file. 

If you’re having trouble identifying the differences or just want to look at things differently, we show you how to use a “file difference checker”, in the next section.

Note: We recommend testing this out in a staging environment first, before touching your live website.

Compare the Sharer Files with a Difference Checker

You can use a “file difference checker”, such as Diffchecker, to quickly see the differences in two files, and we’ve created a video to show you how this works.

In the video, we are using our preferred FTP application (FileZilla) to connect to our server and compare our two sharer.php files.

video instructions:
Compare Sharer Files

Play Video

Premium Content: Listing Sharing Design

MyListing Club members gain access to our Listing Sharing Design guide that helps to easily change elements such as the modal background (solid color, gradient color, image, etc.), changing link colors, and more.

Let's empower others. Share the knowledge.

Share on twitter
Share on facebook
Share on linkedin
Scroll to Top

Find a bug or typo? Please let us know.