{"id":5540,"date":"2014-02-05T19:48:47","date_gmt":"2014-02-05T19:48:47","guid":{"rendered":"http:\/\/localhost\/jacfico\/jacfico102\/?page_id=5540"},"modified":"2014-02-05T19:48:47","modified_gmt":"2014-02-05T19:48:47","slug":"widget-rules","status":"publish","type":"page","link":"https:\/\/www.izmirkesicitakim.com\/index.php\/built-in-extras\/widget-rules\/","title":{"rendered":"Widget rules"},"content":{"rendered":"<p>Widget rules is a mechanism which introduces a completely new way to manage widgets on a website. Thanks to it, it is possible to specify widget features such as:<br \/>\n<li style=\"list-style:none;line-height:2em\"><i class=\"icon-check icon-large\" ><\/i> displaying on subpages chosen,<\/li><br \/>\n<li style=\"list-style:none;line-height:2em\"><i class=\"icon-check icon-large\" ><\/i> displaying on devices chosen,<\/li><br \/>\n<li style=\"list-style:none;line-height:2em\"><i class=\"icon-check icon-large\" ><\/i> displaying for a group of users chosen,<\/li><br \/>\n<li style=\"list-style:none;line-height:2em\"><i class=\"icon-check icon-large\" ><\/i> displaying with a widget style use chosen.<\/li><\/p>\n<p>After switching on widget rules in theme&#8217;s advanced settings, under each widget, the following options should be displayed:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" alt=\"widget-rules-1\" src=\"http:\/\/www.dynamicpress.eu\/democontent\/jacfico\/features\/widget-rules-1.jpg\" \/><\/p>\n<p>The most extensive options are those connected with a widget visibility on subpages chosen &#8211; after choosing an option to show a widget on pages chosen (or an option not showing a widget on pages chosen), such a panel will appear:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" alt=\"\" src=\"http:\/\/www.dynamicpress.eu\/democontent\/jacfico\/features\/widget-rules-2.jpg\" width=\"273\" height=\"424\" \/><\/p>\n<p>Then, you have to choose a page&#8217;s type to add, e.g. Category, and then give category ID:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" alt=\"widget-rules-3\" src=\"http:\/\/www.dynamicpress.eu\/democontent\/jacfico\/features\/widget-rules-3.jpg\" \/><\/p>\n<p>After clicking &#8220;Add page&#8221; button, a page will appear on a list of pages chosen on which in our case a widget will be displayed:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" alt=\"widget-rules-4\" src=\"http:\/\/www.dynamicpress.eu\/democontent\/jacfico\/features\/widget-rules-4.jpg\" \/><\/p>\n<p>Of course, it is possible to add more pages:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" alt=\"widget-rules-5\" src=\"http:\/\/www.dynamicpress.eu\/democontent\/jacfico\/features\/widget-rules-5.jpg\" \/><\/p>\n<p>To make it clearer, , each page&#8217;s type is displayed with a different color. A page added can be removed by clicking a removing icon placed on the right side of each page.<\/p>\n<p>In this way, you may set a widget so as to be shown on pages chosen or to be shown on all pages except the chosen ones.<\/p>\n<p>Generally, widgets are shown on all pages.<\/p>\n<p>An option of displaying a widget on devices chosen has five options to choose:<\/p>\n<ul>\n<li><strong>All devices<\/strong> &#8211; a widget will be displayed everytwhere &#8211; on every device<\/li>\n<li><strong>Desktop<\/strong> &#8211; a widget will be displayed only when neither a <strong>tablet.css<\/strong> file nor a <strong>mobile.css<\/strong> is loaded <strong><\/strong><\/li>\n<li><strong>Tablets<\/strong> &#8211; a widget displays only when a <strong>tablet.css<\/strong> file will be loaded and, at the same time, a <strong>mobile.css<\/strong> file will not be loaded <strong><\/strong><\/li>\n<li><strong>Smartphones<\/strong> &#8211; a widget will be displayed only when a <strong>mobile.css<\/strong> file will be loaded<\/li>\n<li><strong>Tablets\/Smartphones<\/strong> &#8211; a widget will be displayed when at least one file will be loaded: <strong>tablet.css<\/strong> or <strong>mobile.css<\/strong>.<\/li>\n<\/ul>\n<p>Thanks to these settings, it is possible to limit significantly the amount of content displayed on devices with small screens.<\/p>\n<p>An option of displaying widget for a chosen groups of users has four options to choose:<\/p>\n<ul>\n<li><strong>All users<\/strong> &#8211; a widget will be displayed to all users<\/li>\n<li><strong>Only guests<\/strong> &#8211; a widget will be displayed to not logged in users<\/li>\n<li><strong>Only registered users<\/strong> &#8211; a widget will be displayed to logged in users only<\/li>\n<li><strong>Only administrator<\/strong> &#8211; a widget will be displayed to administrators only<\/li>\n<\/ul>\n<p>Thanks to this option, it is possible e.g. to display messages specified by using widgets for a group of users chosen.<\/p>\n<p>The last optio from widget rules is an option for choosing a widget style &#8211; it causes appending to a widget main container an additional class giving styling specified by a user.<\/p>\n<p>Widget styles are defined in widget.styles.json file and in CSS code &#8211; in this case in <strong>css\/wp.extensions.css<\/strong>.<strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Widget rules is a mechanism which introduces a completely new way to manage widgets on a website. Thanks to it, <p><a class=\"dp-readon\" href=\"https:\/\/www.izmirkesicitakim.com\/index.php\/built-in-extras\/widget-rules\/\"><span>Detayl\u0131 Bilgi<\/span><\/a><\/p><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5520,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/pages\/5540"}],"collection":[{"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/comments?post=5540"}],"version-history":[{"count":0,"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/pages\/5540\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/pages\/5520"}],"wp:attachment":[{"href":"https:\/\/www.izmirkesicitakim.com\/index.php\/wp-json\/wp\/v2\/media?parent=5540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}