If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Really stupid but... '" target="_blank">

Really stupid but... '" target="_blank">

Started by rizla on 23 Jan 2011, 9:50 AM · Views: 1,071

Results 1 to 5 of 5
23 Jan 2011, 9:50 AM
#1
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Post #1 by rizla

I have a Facebook & Twitter icons on my main page. Currently they direct to their respective links. I want a new page to open.
So where or how do I place the '" target="_blank"> in this line:

define('FACEBOOK','http://en-gb.facebook.com/pages/The-Personalised-Touch-by-metalPIX/182065021825111');

an this:

define('TWITTER', 'http://www.twitter.com/metalpix_uk');

I have attempted but just get index not loading. My PHP is not good!

Thanks for any help. (just show me once)

23 Jan 2011, 10:09 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

You don't. "target" is an HTML attribute for the A (aka anchor, aka link) for which that definition would the href attribute. So the target needs to be added to the html for those links in your template, or php that generates them.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

23 Jan 2011, 10:25 AM
#3
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Post #3 by rizla

kuroi:

You don't. "target" is an HTML attribute for the A (aka anchor, aka link) for which that definition would the href attribute. So the target needs to be added to the html for those links in your template, or php that generates them.

Ok... So you lost me ;)

The line of code is from the andover_modern - footer_menu_defines.php file. So please show me how I would make the link open in a new window?

Thanks for the quick reply tho'

23 Jan 2011, 10:32 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #4 by kuroi

Rizla:

The line of code is from the andover_modern - footer_menu_defines.php file.
That's not part of core Zen Cart, or a file that I have even heard of before, so alas I can't advise on any changes needed to it, other than in the general terms already given.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

23 Jan 2011, 10:37 AM
#5
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Post #5 by rizla

Oh.. Ok TY all the same