Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Linking to an outside site from main page?

Linking to an outside site from main page?

Locked

Views: 1,363

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
26 Jul 2006, 6:58 AM
#1
incredibody avatar

incredibody

New Zenner

Join Date:
Jun 2006
Posts:
78
Plugin Contributions:
0

Linking to an outside site from main page?

I'm trying to create links to external sites from my main page. I want the links to appear just above the featured products at http://www.musclewithoutsupplements.com/zencart/

What file would I need to modify in order to do this?

26 Jul 2006, 7:03 AM
#2
incredibody avatar

incredibody

New Zenner

Join Date:
Jun 2006
Posts:
78
Plugin Contributions:
0

Re: Linking to an outside site from main page?

Just to give some more information, I am looking to add the links that can be found at http://www.incredibody.com just above the red "wholesale products" title. I want it to behave much like that site currently does. Hopefully I just didn't confuse things more.

26 Jul 2006, 7:21 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Linking to an outside site from main page?

You could place them in your mainpage file that you can edit from within the admin > tools > define page editor.

Select the html editor or the text editor and place code just as you would for an html page. This will then display on the main/home page only. You can most likely paste the current html code into this page.

26 Jul 2006, 10:07 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Linking to an outside site from main page?

... and consider using

target="_blank"

after the URL to open the page in a new window, so people won't surf away from your site! :)

<a href="www.externalsite.com" target="_blank">External Site 1</a>

Good luck,
Scott

26 Jul 2006, 4:10 PM
#5
incredibody avatar

incredibody

New Zenner

Join Date:
Jun 2006
Posts:
78
Plugin Contributions:
0

Re: Linking to an outside site from main page?

Thanks. I'll try that later today.

26 Jul 2006, 5:46 PM
#6
incredibody avatar

incredibody

New Zenner

Join Date:
Jun 2006
Posts:
78
Plugin Contributions:
0

Re: Linking to an outside site from main page?

It seemed to work, except the images aren't showing up. I uploaded the images to includes/templates/my_template/images and linked to them with the following code: <?php echo zen_image(DIR_WS_IMAGES . 'mn.jpg', 'CLICK HERE TO GAIN MUSCLE MASS - Muscle Building Program', '96', '124'); ?>

Does anyone know why the images aren't showing up? You can see it at http://www.musclewithoutsupplements.com/zencart/

The alt is showing up instead of the images.

26 Jul 2006, 9:32 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Linking to an outside site from main page?

Your images aren't where you think they are. :)

http://www.musclewithoutsupplements.com/zencart/images/mn.jpg

gives a 404. Figure out where the images are and adjust your
code accordingly. I tried the other directories and couldn't find them either.
Perhaps the name you gave it was different?

Good luck,
Scott

26 Jul 2006, 9:35 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Linking to an outside site from main page?

Why not use a simple <img src="images/my_image.jpg" /> ??

26 Jul 2006, 9:45 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Linking to an outside site from main page?

IncrediBody, I noticed you had an images directory above your zencart directory - any chance you accidentally put it in there mistakenly? (You didn't use the mn.jpg name - perhaps under a different name?)