Change Submit Listing Button URL

Hi
I found a few postings on the Listing button, but none seem to want to change the URL to a subdomain.
I want to change the button to go from sanate.co to business.sanate.co, so a subdomaine rather than a slug.

Which part do I need to change to do so, snippet or childtheme?
If it’s the childtheme, is it where I am looking below or somewhere else?

I tried with the snippet, but it adds it as a slug:

Hi,

There are two ways to get this result:

  1. Disable the feature of adding a listing, and by overwriting header.php through a child theme, add a custom button.

  2. Overwrite the submission button through the template part using a child theme and change the data-url attribute of the button there. Note that the previous link to add a listing will also be available if the user somehow gets access to it, but if they add such a listing, you can simply not confirm it, for example.
    ​I hope this is helpful to you.

Great, thanks. 2. worked!

@andrii is there a way to open the URL in a new tab? The below doesn’t work:
image

Also, is there a way to make the button not show up as a + on mobile?

I tried with CSS but the text is a weird font:

/*Change Icon of Listing Button*/
.hp-menu__item--listing-submit i::before{
	content: 'Servicios Corporativos';
}

Hi,

There are no other simple options, it should work correctly: How to Open a Link in a New Tab – HTML target blank Attribute Explained

If I understand you correctly, please check the solution in this topic: Show the Add Listing button text on mobile - #2 by lordcyberrr

Perfect, that was it thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.