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

I use the emarket OpenCard 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>
<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
How can I solve the problem?


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: ... p-Toc.html

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus

User avatar
Expert Member


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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Programmer / Opencart Tester

Legendary Member


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

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

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 / DigitCart

User avatar
Active Member


Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: No registered users and 26 guests