Just a slight tweak/addition here.
With the CSS code above, the course page works fine, thank you! – however it would mess up my course navigation. I have tweaked the CSS by adding an ID to the course page I want the collapsed accordion to appear on.
The page ID can be found when inspecting the page code, e.g. with Chrome (Developer?). For me, it looks something like <article id=”post-1890″ class=”…..>
Of course everybody’s post ID would be different, and if you have several course overview pages, you would need to add these page IDs as well.
With the additional IDs, the course navigation works fine now again.
Hope that helps.
My example now looks like this (change your ID accordingly):
#post-1890 .sensei-collapsible__content {
opacity: 0;
max-height: 0;
}
#post-1890 .sensei-collapsible__content.collapsed {
opacity: 1;
max-height: none !important;
}
-
This reply was modified 1 year, 8 months ago by sb52146.
-
This reply was modified 1 year, 8 months ago by sb52146.
-
This reply was modified 1 year, 8 months ago by sb52146.