Icon Box Link

bluenadas's picture
bluenadas
Wed, 10/12/2016 - 12:11
#1
Icon Box Link

I have a few links on my page using an Icon Box. They work great, but there is no option to force the links into new windows?

Am I missing where this is enabled? Or it is not possible on the Icon Box links?

phuonght's picture
phuonght
Fri, 10/14/2016 - 03:36

Hi,

Please send us your site url and section using icon box link, we will help you find a solution.

Thank you.

phuonght's picture
phuonght
Mon, 10/24/2016 - 23:01

Please 

- set as below image

https://i.imgur.com/Sp0PPBj.png

- add class target-blank for icon box links to new page.

- add js code to file js of theme:

jQuery('.target-blank a').attr('target', '_blank');
bluenadas's picture
bluenadas
Wed, 10/26/2016 - 11:00

Where do I need to add that into the md_avendor.js file?

I tried adding it at the bottom of the file but it is still not working with the "target-blank" placed in the Icon Box CSS tag area

Image title

phuonght's picture
phuonght
Wed, 10/26/2016 - 22:25

You can please add code into 

$(document).ready() 

or
Drupal.behaviors.custom_content = {
attach: function(context, settings) {

bluenadas's picture
bluenadas
Thu, 10/27/2016 - 11:20

That did it. Much thanks.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.