{"id":6371,"date":"2021-10-16T08:26:26","date_gmt":"2021-10-16T08:26:26","guid":{"rendered":"https:\/\/musilda.cz\/?p=6371"},"modified":"2021-10-16T08:26:26","modified_gmt":"2021-10-16T08:26:26","slug":"vypnuti-noveho-vzhledu-administrace-widgetu","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/vypnuti-noveho-vzhledu-administrace-widgetu\/","title":{"rendered":"Vypnut\u00ed nov\u00e9ho vzhledu administrace widget\u016f"},"content":{"rendered":"\n
Ten trend je zcela jasn\u00fd – Gutenberg d\u0159\u00edve nebo pozd\u011bji bude ovl\u00e1dat v\u011bt\u0161inu administrace WordPressu. A jedna z prvn\u00edch implementac\u00ed se t\u00fdk\u00e1 nov\u00e9ho vzhledu administrace widget\u016f. <\/p>\n\n\n\n
Kdo pravideln\u011b aktualizuje WordPress, musel ji\u017e zm\u011bnu zaznamenat – nastavov\u00e1n\u00ed widget\u016f vypad\u00e1 \u00fapln\u011b jinak.<\/p>\n\n\n\n Je to prost\u011b Gutenberg editor. P\u0159esto\u017ee mne dost lezl na nervy, za\u010d\u00edn\u00e1m mu postupn\u011b p\u0159ich\u00e1zet na chu\u0165, p\u0159edev\u0161\u00edm, kv\u016fli v\u00fdkonu str\u00e1nek, ale zrovna tady jsem si to musel dost osahat. <\/p>\n\n\n\n Je to prost\u011b nezvyk. <\/p>\n\n\n\n U\u017e to nen\u00ed vlo\u017een\u00ed widgetu do sidebaru a n\u011bjak\u00e9 nastaven\u00ed. Aktu\u00e1ln\u011b m\u016f\u017eete sidebar sestavovat podobn\u011b, jako str\u00e1nku a p\u0159id\u00e1vat tam odstavce, nadpisy, obr\u00e1zky, zkr\u00e1tka pou\u017e\u00edvat moduly Gutenbergu. <\/p>\n\n\n\n Pro ty, kter\u00fdm to vad\u00ed a necht\u011bj\u00ed toto vylep\u0161en\u00ed pou\u017e\u00edvat, zde m\u00e1m jednoduch\u00fd snippet, kter\u00fd vr\u00e1t\u00ed p\u016fvodn\u00ed vzhled nastaven\u00ed. <\/p>\n\n\n\n Do functions.php vlo\u017ete tento \u0159\u00e1dek k\u00f3du:<\/p>\n\n\n\n<\/a><\/figure>\n\n\n\n
add_filter( 'use_widgets_block_editor', '__return_false' );<\/code><\/pre>\n\n\n\n