#theme-json — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #theme-json, aggregated by home.social.
-
The Anatomy of theme.json: A Developer’s Cheat Sheet
----------
For a long time, the logic of a WordPress® theme lived primarily in functions.php. If[…]
#WordPress #Dev #themejsonhttps://www.wpnews.io/the-anatomy-of-theme-json-a-developers-cheat-sheet/
-
Block Themes: Abstand zwischen Header und Content
Wenn der Abstand vom Inhalt (Content) zum Header bei einer WordPress-Website mit einem Block Theme verändert werden soll, gibt es verschiedene Optionen. In dem folgenden Beitrag erläutere ich entsprechende Änderungsmöglichkeiten. Änderungen sind entweder direkt beim Template (z. B. Seiten-Template) oder evtl. über die theme.json möglich.
https://haurand.com/block-themes-abstand-zwischen-header-und-content/ #BlockThemes #Template #themeJson #WordPress -
theme.json: Globale Blöcke wie Buttons bei Block Themes gestalten
Globale Einstellungen von Blöcken bei Block Themes können über die theme.json vorgenommen werden. Man kann z. B. die Schriftgröße, Farben, Innen- und Außenabstände, aber auch die Pseudoklasse hover bei bestimmten Blöcken wie z. B. dem Button-Block einstellen. Diese Einstellungen gelten dann für die komplette Website. Spezielle Anpassungen sind allerdings nur über CSS realisierbar.
https://haurand.com/theme-json-globale-bloecke-wie-buttons-bei-block-themes-gestalten/
-
How to programmatically get info from theme.json
WordPress block themes have come a long way in just a short amount of time. It's made for much easier in-site editing without need for programming. However, in some instances information might be needed for more advanced coding. Here's a quick way to get info from your theme.json file.A new fun
https://sharononthe.net/2024/11/04/how-to-programmatically-get-info-from-theme-json/
#WordPress #BlockTheme #CustomCode #php #themejson #Themes -
Why does WordPress blocks use margin-block-start for vertical spacing instead of using margin-block-end?
Why, WHY?
Who wants a gap between a heading and the following paragraph?
I prefer to use theme.json as much as possible ...