| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
problem with links on head.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I added links for "About Us/Contact/Help" on the head.tpl...The links work on all the other pages/catagories/cart/checkout ect. but for some reason they don't work at the home page. Does anyone know why or how to fix it?
__________________
Ian Winscom BoxedGreens Organic Grocery http://boxedgreens.com http://blog.boxedgreens.com ----------------------------------- X-Cart Version 4.1.9 |
|||||||
#4
|
|||||||
|
|||||||
![]() Code:
|
|||||||
#5
|
|||||||||
|
|||||||||
![]() This can sometimes be considered bad programming, but it often solves problems if you make your navbar image and link references into absolute URLs (eg. http://www.yourdomain.com/directory/image.gif). This will keep your images and links from breaking if your using a secure server for your store. Hope that helps.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#6
|
|||||||
|
|||||||
![]() The Image I am using is absolute...any othe ideas?
Code:
|
|||||||
#7
|
|||||||||
|
|||||||||
![]() I think I might have mislead you in my last post. The images should probably remain relative references, but you might consider making the actual hrefs absolute addresses to keep the secure store from having broken links or keep it from redirecting to your server's IP address rather than your named web address.
I'm not sure why your images are breaking. You've probably just got the wrong path to your graphics. Look at the original templates that came with X-cart. Put your images in the same place. Reference them the same way. That's about the only advice I can offer. Sorry.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() If your having problems with your extra images (i did) then the answer is pretty simple.
All you need to do is create a directory inside skin1_images folder and call it say my_images. drop all your extra images in there and upload the lot to the server. When you want to use any of the new images you must refer to the as follows ... [img]../{ #ImagesDir# }/my_images/my_pic.gif[/img] Because you have prefixed the location with ../{ #ImagesDir# }/ it works on either the normal or secure server as the ="../{ #ImagesDir# }/ gets replaced with the right address. I tried it and it works fine . I had hard coded my extra images to all load through my secure server address to start with which worked but would have been much slower then doing it this way.
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|