Ok I have now the subscription.
So I did this :
prnt.sc/7Z-2A5iXtUqp
But from website front-end, when I look html output I always have <a> instead of <button>.
Adjust the Regular Expressions to deal with the 'missing' quotes in the html output:
<a href=([^>]*)>Contact</a>
Replace:
<a onclick="location.href='\1'">Contact</a>
If that doesn't work, can you give me (super) admin so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
ok works fine.
About rules, is it also possible to say something like : "I want to replace XXX only on main menu" ?
So maybe apply this rules only on specific css classes?
not by css class. But you can use the 'Between' strings to limit it to the area you need.
If you cannot find beginning and ending html that is unique enough, you could use a template override to - for instance - wrap your menu in something unique like:
<!-- START MAIN MENU -->
...
<!-- END MAIN MENU -->
You should have enough information to do what you want/can with ReReplacer Pro.
You can search and replace using dynamic Regular Expressions.
If you need to only replace certain links - in your case, you will need something unique in the html you can limit the search by.
You can limit the Regular Expressions search itself.
And/or use the Between fields to limit it to a certain section on the page.
And/or use conditions to limit the replacement to certain pages/situations.
If there is nothing really unique about specific elements you want to target, you will have to use template overrides to add some unique html around or inside the elements.