Main menu
Second Menu
Faik ÖztrakWidget rules

Widget rules

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:

  • displaying on subpages chosen,

  • displaying on devices chosen,

  • displaying for a group of users chosen,

  • displaying with a widget style use chosen.
  • After switching on widget rules in theme’s advanced settings, under each widget, the following options should be displayed:

    widget-rules-1

    The most extensive options are those connected with a widget visibility on subpages chosen – 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:

    widget-rules-2

    Then, you have to choose a page’s type to add, e.g. Category, and then give category ID:

    widget-rules-3

    After clicking “Add page” button, a page will appear on a list of pages chosen on which in our case a widget will be displayed:

    widget-rules-4

    Of course, it is possible to add more pages:

    widget-rules-5

    To make it clearer, , each page’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.

    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.

    Generally, widgets are shown on all pages.

    An option of displaying a widget on devices chosen has five options to choose:

    • All devices – a widget will be displayed everytwhere – on every device
    • Desktop – a widget will be displayed only when neither a tablet.css file nor a mobile.css is loaded
    • Tablets – a widget displays only when a tablet.css file will be loaded and, at the same time, a mobile.css file will not be loaded
    • Smartphones – a widget will be displayed only when a mobile.css file will be loaded
    • Tablets/Smartphones – a widget will be displayed when at least one file will be loaded: tablet.css or mobile.css.

    Thanks to these settings, it is possible to limit significantly the amount of content displayed on devices with small screens.

    An option of displaying widget for a chosen groups of users has four options to choose:

    • All users – a widget will be displayed to all users
    • Only guests – a widget will be displayed to not logged in users
    • Only registered users – a widget will be displayed to logged in users only
    • Only administrator – a widget will be displayed to administrators only

    Thanks to this option, it is possible e.g. to display messages specified by using widgets for a group of users chosen.

    The last optio from widget rules is an option for choosing a widget style – it causes appending to a widget main container an additional class giving styling specified by a user.

    Widget styles are defined in widget.styles.json file and in CSS code – in this case in css/wp.extensions.css.

    Faiz Harcamalarının Bütçe Üzerindeki Baskısı Artıyor

    CHP’li Öztrak, Hükümetin hukuk tanımazlığı nedeniyle artan faizlerin bütçe üzerine her ay daha fazla baskı yaptığına dikkat çekerek, “İlk 4...
    Devamını oku

    Milli İradeye Darbe Süreci Ekonomik Görünümü Bozdu

    CHP’li Öztrak, Dünya Ekonomik Görünüm Raporu’ndaki Türkiye ekonomisiyle ilgili tahminlerin, Sarayın millet iradesine darbe süreci sonrasında kötüleştiğine dikkat çekerek, “Uluslararası...
    Devamını oku

    Satılan Milyarlarca Dolar Rezervi Kimler Topladı

    CHP’li Öztrak, İstanbul Büyükşehir Belediye Başkanı Ekrem İmamoğlu’nun tutuklanmasının ardından mali piyasalarda yaşanan tsunami sırasında ülkenin 40 milyar dolardan fazla...
    Devamını oku

    NATO-PA’NIN KASASI ÖZTRAK’A EMANET

    CHP’li Öztrak, NATO-PA Saymanlığına seçildi. Bu görevi bir yıl boyunca sürdürecek Öztrak, NATO’nun siyasi kanadı olan Asamble’nin bütçesini yönetecek, mali...
    Devamını oku

    İmamoğlu Operasyonu Ülkeye Trilyonluk Fatura Çıkardı

    CHP’li Öztrak, İmamoğlu’nun gözaltına alınmasının ardından dolar kurundaki yükseliş nedeniyle, şirketlerin 185 milyar lira zarar yazdığını, Türkiye’nin dış borcunun TL...
    Devamını oku

    Bankpozitif’in Erkan Kork’a Devrine Nasıl İzin Verildi?

    CHP’li Öztrak, BankPozitif’in hakkında kara para aklama ve yasadışı bahis soruşturması süren Erkan Kork’a devredilmesini TBMM gündemine taşıdı. Bankacılık Kanunu’na...
    Devamını oku

    Emekçinin, Emeklinin Zammı İlk Ayda Eridi

    CHP’li Öztrak, Ocak’ta yüzde 5’in üzerinde gelen enflasyonla memur ve emeklisine 2025’in ilk 6 ayı için yapılan maaş-aylık artışının yarısının;...
    Devamını oku

    “Faiz Harcamaları Coştu, Bütçe ‘Tasarruf’ Dinlemedi”

    CHP’li Öztrak, 2024 yılında faiz harcamalarının yüzde 88 artışla 1,3 trilyon liraya ulaştığını, bütçe açığının ise yüzde 53 artışla 2...
    Devamını oku

     İletişim

    Bize her türlü görüş ve önerilerinizi bildirmek için sağ tarafta yer alan bilgilerden bize ulaşabilirsiniz.
    CHP Genel Merkezi: Anadolu Bulvarı No: 12 06520
    Söğütözü / ANKARA
    Telefon: +90 (312) 207 40 00
    Telefon 2: +90 (312) 420 59 48-49
    Faks: +90 (312) 207 40 14
    E-Posta: info@faikoztrak.com