Post by samaneh_bahrami » Thu Jun 17, 2021 9:59 pm

Hello
I use the emarket OpenCard 3.0.2.0 template.

I used the following code to create the list

Code: Select all

<div id="toc_container">
<p class="toc_title">Contents</p>
<ul class="toc_list">
  <li><a href="#First_Point_Header">1 First Point Header</a>
</li>
</ul>
</div>
<h2 id="First_Point_Header">First Point Header</h2>

But in the pages of my site, after clicking, instead of jumping on the desired title, a new link opens in the form of mywebsite.com/#Second_Point_Header.
How can I solve the problem?


Posts

Joined
Fri May 28, 2021 1:54 pm

Post by JNeuhoff » Thu Jun 17, 2021 11:26 pm

There is no 'table of contents' in a standard OpenCart. It looks like you are using an extension for this, in which case you should get in touch with extension author. Or you could 3rd party scripts such as:

https://www.jqueryscript.net/menu/Sideb ... p-Toc.html

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by straightlight » Thu Jun 17, 2021 11:32 pm

Contact the extension developer to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by DigitCart » Sat Jun 19, 2021 1:23 am

Hi
Your code is correct and it works in a single HTML file.
There is probably conflict with other codes in your template or extensions.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: moreduff and 266 guests