home.social

#theme-json — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #theme-json, aggregated by home.social.

fetched live
  1. 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 #themejson

    wpnews.io/the-anatomy-of-theme

  2. 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.

    haurand.com/block-themes-absta #BlockThemes #Template #themeJson #WordPress
  3. 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.

    haurand.com/theme-json-globale

    #FSE #Theme #themeJson #WordPress

  4. 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
    sharononthe.net/2024/11/04/how
    #WordPress #BlockTheme #CustomCode #php #themejson #Themes

  5. 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 ...

    #WordPress #wpThemes #themeJson