{"id":14105216,"date":"2021-02-26T09:30:47","date_gmt":"2021-02-26T09:30:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/good-and-useful-plugin-17\/"},"modified":"2021-02-26T09:30:47","modified_gmt":"2021-02-26T09:30:47","slug":"good-and-useful-plugin-17","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/good-and-useful-plugin-17\/","title":{"rendered":"Good and useful plugin"},"content":{"rendered":"<p>Does exactly what I wanted it and what it says to do.<\/p>\n<p>Two things that maybe are useful for others:<\/p>\n<p>1.<br \/>\nI wanted to call a JS function on close.<br \/>\nSo I added my stopVideos call (if it is there) to the frontend.js file of the plugin:<\/p>\n<p>{key:&#8221;closeModal&#8221;,value:function(){<br \/>\nif(typeof stopVideos==&#8217;function&#8217;){stopVideos();}<\/p>\n<p>If there is any better way, let me now (same for 2).<\/p>\n<p>2.<br \/>\nThe pink logo svg in the editor was way too huge for me.<br \/>\nI don&#8217;t know the reason, but to dodge it I wrote the following rule into the corresponding editor CSS file of my theme:<\/p>\n<p>.popup-preview svg {display: none;}<\/p>\n","protected":false},"template":"","class_list":["post-14105216","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14105216","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14105216\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14105216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}