{"id":18995809,"date":"2026-08-17T19:13:03","date_gmt":"2026-08-17T19:13:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/parent-child-toggle-error\/"},"modified":"2026-08-17T19:14:40","modified_gmt":"2026-08-17T19:14:40","slug":"parent-child-toggle-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/parent-child-toggle-error\/","title":{"rendered":"Parent-Child toggle error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have an archive photo album page where my photos are grouped by year. When I open a year, I can also close it again afterward. However, if I open a year, then click on an album, and afterwards go back to the year, the toggle button no longer appears. My toggle class <code>\"dsv-toggle\"<\/code> is missing. Where is this toggle-class code (i guess javascript) located? is it possible to ensure that toggeling works after opening an album and navigating back to a year (parent element)?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">developer tools show this style:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    &lt;style id=\"dsv-accordion-style\"&gt;\n        .dsv-toggle {\n            cursor: pointer;\n            position: relative;\n            user-select: none;\n        }\n\n        .dsv-toggle::after {\n            content: \"\u25b6\";\n            position: absolute;\n            right: 14px;\n            top: 50%;\n            margin-top: -9px;\n            font-size: 14px;\n            color: #ffffff;\n            line-height: 1;\n            transition: opacity .2s ease;\n        }\n\n        .dsv-toggle.dsv-open::after {\n            content: \"\u25bc\";\n        }\n\n        .dsv-cards-wrap {\n            overflow: hidden;\n        }\n\n        .dsv-hidden {\n            display: none !important;\n        }\n    &lt;\/style&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">BR<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Renhard Wallner<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wordpress.org\/adff87f2-a995-421e-b8d7-1f2e90bf9889\" alt=\"\" \/><\/figure>\n","protected":false},"template":"","class_list":["post-18995809","topic","type-topic","status-publish","hentry","topic-tag-parent","topic-tag-toggle"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18995809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18995809\/revisions"}],"predecessor-version":[{"id":18995815,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18995809\/revisions\/18995815"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18995809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}