• Resolved zdsims7948

    (@zdsims7948)


    I have a View Virtual Tour link on the listing detail pages, but I would like to change that text to read differently. I have searched through all of the plugin files, but cannot seem to find where this link is generated. Does anyone have any suggestions where this label text could be changed?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter zdsims7948

    (@zdsims7948)

    Any word on if these labels can be changed? I am trying to change the label on the “View Virtual Tour” button.

    Hi zdsims,

    While it is possible to make changes like this, it’s first important to know that these types of changes are custom changes that are not supported by Diverse Solutions. You’d either need to have some development skills / knowledge -OR- hire a developer to make these types of changes for you.

    That said, the link / label is generated from our servers and then sent to your site. To edit what any part of our layout reads, you would need to employ javascript.

    Here is an example of a script that could change what the link reads:

    <script type="text/javascript">
        document.addEventListener('DOMContentLoaded', function () {
            if (document.querySelector("#dsidx-virtual-tour-container")) {
                var tourLink = document.querySelector("#dsidx-virtual-tour-container").innerHTML;
                //console.log(tourLink);
                var newText = "Check out this homes virtual tour video!";
                var replacedLink = tourLink.replace("View Virtual Tour", newText);
                //console.log(replacedLink);
                document.querySelector("#dsidx-virtual-tour-container").innerHTML = replacedLink;
            };
        }, false);
    </script>

    Simply replace “newText” with what you’d like it to read instead.

    I hope this helps!

    Thread Starter zdsims7948

    (@zdsims7948)

    Thank you.
    I am a developer, so I know the knowledge required to do that change via JavaScript. I just needed to confirm it was not loaded in the code somewhere before attempting this route. Thanks for that confirmation.

    You are most welcome! Happy to help. You should be able to employ JavaScript for most changes like this that you’d like to accomplish.

    Have a great day! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing Label on button’ is closed to new replies.