Tagged: button, Layout Builder, link
Hi,
I’ve tried without success to add a button element in the LayoutBuilder without a link..
Even when I do NOT enter a link in these settings, the button “places a link”:
How can I fix this, so that I’m able to use the button element without linking the button?
Thanks!
Hi COLORIT!
Thank you for coming back.
It is actually not possible to use this element without a link.
Even if you set href = “” in HTML code this link is set to the current page by the browser by default.
If you want to remove the “manually” from the link you have to change the core code of enfold\config-templatebuilder\avia-shortcodes\buttons.php line 277:
Find:
$link = $link == "http://" ? "" : $link;
and replace with:
$link = ($link == "http://" || $link == "manually") ? "" : $link;
I suggested this change to Kriesi – probably it will be in the core in future releases.
Cheers!
Günter
Sounds great, thank you!