{"id":380,"date":"2012-07-11T13:44:19","date_gmt":"2012-07-11T13:44:19","guid":{"rendered":"https:\/\/www.frozenlogistic.com\/?p=380"},"modified":"2013-05-20T07:52:46","modified_gmt":"2013-05-20T07:52:46","slug":"theme-live-editor-2","status":"publish","type":"post","link":"https:\/\/www.frozenlogistic.com\/?p=380","title":{"rendered":"Theme live editor"},"content":{"rendered":"<p>GavernWP has basic support for a new option available in WordPress 3.4 &#8211; an options editor with themes preview. Now, the most important options connected with theme&#8217;s style and its layout has been implemented to a live editor.<\/p>\n<p>In order to reach it easier, we placed a direct link to this editor in the top part of themes&#8217; options:<\/p>\n<p><a href=\"https:\/\/www.frozenlogistic.com\/wp-content\/uploads\/2012\/07\/meetgavernwp-liveeditor-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-996\" alt=\"meetgavernwp-liveeditor 2\" src=\"https:\/\/www.frozenlogistic.com\/wp-content\/uploads\/2012\/07\/meetgavernwp-liveeditor-2.png\" width=\"281\" height=\"165\" \/><\/a><\/p>\n<p>All options included in this editor are also available via traditional theme&#8217;s options panel.<\/p>\n<p>In order to simplify adding your own options to a live editor, the whole code generating options is placed in a separate file: <strong>gavern\/helpers\/helpers.customizer.php<\/strong>.<\/p>\n<p>You have to remember that all options and settings from a live editor are stored in the same place as their equivalents from an administration panel so settings change with a live editor causes changes in an options panel. That&#8217;s why, it is recommended not to use a traditional administration panel and a live editor at the same time because saving options with various values in two different places at the same time may not give the expected result.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GavernWP has basic support for a new option available in WordPress 3.4 &#8211; an options editor with themes preview. Now, the most important options connected with theme&#8217;s style and its &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[56,58,50],"class_list":["post-380","post","type-post","status-publish","format-standard","hentry","category-theme-back-end","tag-back-end","tag-live-editor","tag-theme"],"_links":{"self":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380"}],"version-history":[{"count":3,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}