Join our new community forum for support & discussion

Join Now

Home Support Extensions Messages Switch the send message field to a customized form

Switch the send message field to a customized form

  • Author
    Posts
  • regan12003

    Hey Ihor,

    We would like to customize the send message action button and process so that a customized form pops up to be filled out, instead of the current message field. We would also like this form sent first to us for verification. Do you know how we could accomplish this?

    ihor developer

    Hi,
    It’s possible to replace the message popup content, but this would require code customizations. Please consider adding a custom button or widget to the listing sidebar instead, e.g. a custom contact form implemented via a third-party plugin. You can also insert it where the Reply to Listing button appears by customizing the listing_view_page template https://www.youtube.com/watch?v=LkojYp-8uwY&ab_channel=HivePress
    Hope this helps.

    regan12003

    Thank you for the reply, Ihor. I know this sounds odd, but we want to eliminate the ability for users to send messages on the platform, as our way to generate revenue is by having customers generate leads for the listing vendors. So, we will deactivate the messaging extension. To create a custom button, could I use code snippets? If so, do you know the functional way to get the parts of the code that need to be altered in order to display this button? Or should I accomplish this using the css tool you show in the video?

    ihor developer

    Sure, if you use a third-party plugin for adding this custom form, or an external URL you can try adding a custom attribute in the Listings/Attributes section and assign it to the Page (primary) area. If you set this display format, then this attribute will be displayed as a button:
    <a class="button button--primary hp-button--wide" href="%value%" target="_blank" rel="nofollow">Button Text</a>

    regan12003

    Thank you for the reply, Ihor. What would be the field type?

    regan12003

    I cannot seem to get the button to appear.

    yevhen developer

    Please try URL attribute type and put this code snippet as attribute display format <a class="button button--primary hp-button--wide" href="%value%" target="_blank" rel="nofollow">Button Text</a>

    regan12003

    Thank you for your help!

Viewing 8 posts - 1 through 8 (of 8 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.