{"id":19006034,"date":"2026-08-29T05:40:54","date_gmt":"2026-08-29T05:40:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=19006034"},"modified":"2026-08-29T07:42:38","modified_gmt":"2026-08-29T07:42:38","slug":"primary-menu-click-to-open-modal","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/primary-menu-click-to-open-modal\/","title":{"rendered":"Primary menu click to open modal"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi. I&#8217;d like to open the modal window when there is a click on a primary navigation menu item.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Is that possible?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From what I see the only way to trigger the modal is from a button in the same block as the modal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Help appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-19006034","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19006034","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\/19006034\/revisions"}],"predecessor-version":[{"id":19006090,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19006034\/revisions\/19006090"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19006034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}