Zen Cart Logo
Forums / General Questions / writing internal links

writing internal links

Views: 485

Results 1 to 4 of 4
30 Sep 2013, 1:19 AM
#1
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

writing internal links

Hi as I am new to writing any sort of code.

What I need to do is go to a product and information link from a graphic on a slider I have searched through many php files and have tried everything I have found.

ie <?php zen_href_link(FILENAME_contact_us); ?> a>

<a href="http://tenthilltoys.com.au/index.php?main_page=product_info&cPath=1_2&products_id=3"></a>

they all seem to open new tabs and thisis not what I am after I would like to keep it seamless.

any help would be appreciated.

Peter

30 Sep 2013, 1:46 AM
#2
kobra avatar

kobra

Black Belt

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

Re: writing internal links

What I need to do is go to a product and information link from a graphic on a slider
Post a link to your site and give some information about the slider you have installed

30 Sep 2013, 1:54 AM
#3
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

Re: writing internal links

Not a problem

the slider is from Brandon Turpin and belongs to his Azienda template

the website is www.tenthilltoys.com.au

slide 1 and 3 need to goto products at the moment I have page 1 going in circles
slide 2 is ok I think, It opens a new facebook tab
and
slide 4 needs to goto the reward points in the info box on the left.

thanks again

Peter

30 Sep 2013, 2:04 AM
#4
kobra avatar

kobra

Black Belt

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

Re: writing internal links

For stopping a new page see this
http://www.w3schools.com/tags/att_a_target.asp

For the rest of it open the read_me_install file and select slider and you will see this

Change the Slider Images and Links

1 - Create new images in your favorite image editor (standard size is 775 pixals wide by 325 pixals tall)

2 - Upload the images to includes/templates/azienda/images/

3 - Open includes/languages/english/html_includes/azienda/define_main_page.php and you will see code at the top:

define('SLIDE_ONE', 'slide1.jpg');
define('SLIDE_TWO', 'slide2.jpg');
define('SLIDE_THREE', 'slide3.jpg');
define('SLIDE_FOUR', 'slide4.jpg');

define('SLIDE_ONE_URL', 'http://www.brandonturpin.com');
define('SLIDE_TWO_URL', 'http://www.brandonturpin.com');
define('SLIDE_THREE_URL', 'http://www.brandonturpin.com');
define('SLIDE_FOUR_URL', 'http://www.brandonturpin.com');

4 - Change the slide1.jpg to the title of your slide image

5 - Change the url to where you want them directed when it is clicked.