Site logo

Archived topic

Sidebars and CPT

3 replies · Started by Ema on February 3, 2022

Viewing posts 1–4 of 4

Hello,

I'm adding a TOC via the plug-in 'Easy Table of Contents' which will be added to the right-sidebar for some longer read articles.
I've created a CPT 'Consultations',
Added the TOC into the 'right-sidebar' widgets area. (plus let ETOC know I want to target the #right-sidebar in settings.)
Added an Element for the Layout of 'Consultations' to show right-side-bar
(I've added another container into the right-sidebar widget which just reads 'test test test'

The problem I'm having is that the TOC sidebar is appearing underneath the content, but I'd like it to be on the right and sticky?

Thanks in advance
E

Hi there,

is there any custom HTML in the content of that CPT ? As it looks like theres some broken HTML eg. a missing closing element eg. </div>, </p> etc. which leads to the #primary container closing earlier then it should and booting the Sidebar out

Yes, David, you are right! Has been driving me crazy.

Have just found the culprit. An ACF .php hook included for a button had a bad div

Thank you!

Glad to hear that!

This archived topic is closed to new replies.