1. lazyroby
  2. Sherlock Holmes
  3. Free Templates / Extensions
  4. Monday, 13 March 2023
  5.  Subscribe via email
Hi Ciaran,

how can I add a target="_blank" attribute to the buttons of the modules CallToAction and Pricing Table?

For internal links I'm fine with opening within the same browser tab, but for external links I am not.

Hope you have a quick solution! Yours, Robert
Accepted Answer Pending Moderation
0
Votes
Undo
Note you will need to remove your override :)

Ciaran
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Robert

Thank you for the suggestion. Please find attached an update for the 'Call To Action' which includes an 'Open in new window' option with each button. Pricing Table update to follow :)

Ciaran
Attachments (1)
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
I managed it myself:

I added overrides to the templates for both module j51calltoaction and j51pricingtable

At the end of the php files I just added the attribues

target="_blank" rel="noopener"
behind the href entry.

Ciaran, it would be great, if you added the option to open within the new tab via module settings! Yours, Robert
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.