| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
HTML Anchors not working on static pages | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I'm creating an FAQ page, and would like to have all the questions at the top, each a link to the full question with answer. I put the list together, with each bullet looking like the following: There is then an <a name="invest"> tag in the question, like this: Code:
But, when I click the link in a browser, this is the link that shows up: http://www.jmscoins.com/#invest The link isn't relative to the page like it should be. I commented out the list of links on the live page, but copied the page so you can take a look here. If anyone can help, I'd really appreciate it. Thanks, Jeremy
__________________
Version 4.0.17/4.0.18 |
|||||||
#2
|
|||||||
|
|||||||
![]() I also just noticed that this problem also happens within the item descriptions. I have a link setup to scroll to the detailed images, but that also goes to http://www.jmscoins.com/#images, not the "#images" within the page.
Finally, I have a link "#top" at the bottom of each page... takes you to http://jmscoins.com/#top. I really can't figure this out ![]()
__________________
Version 4.0.17/4.0.18 |
|||||||
#3
|
|||||||
|
|||||||
![]() You need to close the <a> tag:
<a name="invest"></a>
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
![]() Balinor,
I've now closed the tags, but the result is the same. This is also ocurring with <a href="#top"> which doesn't require a name tag. Jeremy
__________________
Version 4.0.17/4.0.18 |
|||||||
#5
|
|||||||
|
|||||||
![]() Try putting the page url in the link:
<a href="pages.php?pageid=x#invest"> replace x with the actual page number.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() Thanks, Balinor... that worked
![]() Now, any guesses for the #top or #images problem? Since those are both in the template, it wouldn't make sense to hand-code it for every page. I wonder if CDSEO is getting in the way somehow--I seem to recall it working before I installed that [I hadn't worked on the static pages before the installation, though] Thanks, Jeremy
__________________
Version 4.0.17/4.0.18 |
|||||||
#7
|
|||||||
|
|||||||
![]() Not familar with CDSEO, so can't help there
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() Thanks, Balinor. I'd have to guess now that it's conflicting somehow with the writing of the links from the template to the final page, so I'll see if they can help. If anyone else has any idea, though, I'd be glad to hear them!
Thanks, Jeremy
__________________
Version 4.0.17/4.0.18 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Hi Jeremy,
Please see the support ticket you entered with us. Jon Peters |
|||||||||
#10
|
|||||||
|
|||||||
![]() Thanks, Jon... not only was an answer provided--but the fixes made to my website!
![]() For those watching, the answer can be found in this knowledge base article. Here's the text: Quote:
Again, problem solved! ![]()
__________________
Version 4.0.17/4.0.18 |
|||||||
|
|||
X-Cart forums © 2001-2020
|