Yes Steven,
I’m using WPBakery which is the block editor coming with the Uncode theme. You’ve been working on it when I first installed easyTOC, because I couldn’t properly make it work… ??
But I’m sure you can’t remember about that, as it was almost 2 years ago! ??
@primaledgehealth
That note you’re referring to in the WP post editor means that those settings will take over the main plugin settings in “WPDashboard > Settings > Table of contents“.
This dasboard page is also where you can set the minimum number of headers (just below “Position“) that eTOC have to consider for adding your ToC within the post.
For example, if you set 3, but you only add 2 headers in your WP post, the Table of Content will not appear.
You can also set which headers tags you want to be considered (in the “Advanced” box down below), among h1
, h2
, h3
, h4
, h5
, h6
.
So if you check h2
and h3
while setting a minimum of 3 headers while your post content is as follows:
<p>some text</p>
<h1>title</h1>
<p>some text</p>
<h2><strong>header</strong></h2>
<p>some text</p>
<h3><strong>header</strong></h3>
<h4>sub-header</h4>
<p>some text</p>
You actually have 4 headers, but only 2 are involved (h2 and h3), so your post doesn’t meet the minimum headers “requirement”, so it won’t show any ToC.
You can try forcing it by using the shortcode which is [toc]
if I recall well, but I assume your issue is coming from the nested tags…
-
This reply was modified 2 years, 9 months ago by Marco.
-
This reply was modified 2 years, 9 months ago by Marco.