Post by wiredleaf » Mon Oct 21, 2013 6:43 am

Hey guys, I am trying to make an FAQ.

I would like links on top for the bottom content because it will be a large page.

This is what I have (the traditional method):

Code: Select all

<ul>
<li><a href="#faqaboutus">What is WiredLeaf all about</a></li>
</ul>
Thats for the links on top. For the bottom:

Code: Select all

<h1 id="faqaboutus">All about us</h1>
Just the normal way. But for some reason THIS DOES NOT WORK. When I click on the link, it goes to my home index page.

Any solutions guys? Cheers.

Image

http://www.wiredleaf.co.uk


Newbie

Posts

Joined
Mon Oct 21, 2013 6:39 am

Post by pedro1993 » Mon Oct 21, 2013 10:25 pm

Could you provide a link? Does the URL in the address bar add "#faqaboutus" at the end?


Strange why it isn't working.

Peter

For OpenCart & PHP/MySQL support feel free to PM me :)
Click here for my extentions
Did I help you? Donate here to show support


Active Member

Posts

Joined
Tue Oct 18, 2011 4:31 am
Location - Glasgow, Scotland

Post by wiredleaf » Mon Oct 21, 2013 11:44 pm

pedro1993 wrote:Could you provide a link? Does the URL in the address bar add "#faqaboutus" at the end?


Strange why it isn't working.

Peter
Yes it does, it goes to www.wiredleaf.co.uk/#faqaboutus

It is strange, its not an issue I have had before. The link is wiredleaf.co.uk/faq but i am in maintenance mode, as I don't launch til the 10th November. It is a custom page I have created using the traditional method. I have a feeling it is something to do with the way the dynamic pages work. I only have basic PHP skills but my front end is advanced, I've done same page links many times but I am baffled at this issue.

Image

http://www.wiredleaf.co.uk


Newbie

Posts

Joined
Mon Oct 21, 2013 6:39 am

Post by pedro1993 » Mon Oct 21, 2013 11:54 pm

I don't think it will have anything to do with the CMS in OPenCart. If you can PM me details I don't mind having a quick look!

Peter

For OpenCart & PHP/MySQL support feel free to PM me :)
Click here for my extentions
Did I help you? Donate here to show support


Active Member

Posts

Joined
Tue Oct 18, 2011 4:31 am
Location - Glasgow, Scotland

Post by granddaddy » Mon Oct 21, 2013 11:55 pm

This problem was discussed at length in an earlier thread:
http://forum.opencart.com/viewtopic.php?p=66539#p66539
At the end a working solution was found by preceding the id in the href with the actual seo name of the same page, e.g...
if the page has an seo name of "what-is-wiredleaf", then try this:
<a href="what-is-wiredleaf#faqaboutus">
This apparently worked for others.

Active Member

Posts

Joined
Sat Feb 18, 2012 5:48 pm

Post by wiredleaf » Tue Oct 22, 2013 12:33 am

Cheers guys I'll try the seo method and if not ill pm you Peter.

Image

http://www.wiredleaf.co.uk


Newbie

Posts

Joined
Mon Oct 21, 2013 6:39 am

Post by pedro1993 » Tue Oct 22, 2013 1:44 am

No problem :)

For OpenCart & PHP/MySQL support feel free to PM me :)
Click here for my extentions
Did I help you? Donate here to show support


Active Member

Posts

Joined
Tue Oct 18, 2011 4:31 am
Location - Glasgow, Scotland

Post by wiredleaf » Tue Oct 22, 2013 3:58 am

granddaddy wrote:This problem was discussed at length in an earlier thread:
http://forum.opencart.com/viewtopic.php?p=66539#p66539
At the end a working solution was found by preceding the id in the href with the actual seo name of the same page, e.g...
if the page has an seo name of "what-is-wiredleaf", then try this:
<a href="what-is-wiredleaf#faqaboutus">
This apparently worked for others.
I can confirm this works 100% perfectly.

My FAQ page is called FAQ.

Code: Select all

<ul class="faqlist">
      <li><a href="faq#faqallabout">What is WiredLeaf all about?</a></li>
</ul
Links perfectly on the same page to:

Code: Select all

<h1 id="faqallabout">What is WiredLeaf all about?</h1>
First time I have had to link with the same page like this onto it, but you cant argue with success. Thanks alot for the help guys. This problem is officially SOLVED.

Image

http://www.wiredleaf.co.uk


Newbie

Posts

Joined
Mon Oct 21, 2013 6:39 am

Post by pedro1993 » Tue Oct 22, 2013 4:22 am

I'm glad you got it! I have updated the title to solved :)

For OpenCart & PHP/MySQL support feel free to PM me :)
Click here for my extentions
Did I help you? Donate here to show support


Active Member

Posts

Joined
Tue Oct 18, 2011 4:31 am
Location - Glasgow, Scotland

Post by wiredleaf » Tue Oct 22, 2013 4:49 am

Cheers thank you very much Pedro!

Image

http://www.wiredleaf.co.uk


Newbie

Posts

Joined
Mon Oct 21, 2013 6:39 am
Who is online

Users browsing this forum: No registered users and 54 guests