Blog level settings – WordPress Development Stack Exchange

Question

I have been trying to set block settings (color and typography) to header but I it doesn’t work and I have global settings instead. Any idea what I’m doing wróng?

{
“$schema”: “https://schemas.wp.org/trunk/theme.json”,
“version”: 2,
“settings”: {
“color”:{
“defaultPalette”: false,
“palette”: [
{ “slug”:”u-white”,
“color”: “rgb(255,255,255)”, “name”: “Udemy White” },
{ “slug”: “u-gray-100”, “color”: “rgb(243 244 246)”, “name”: “Udemy Gray 100” },
{ “slug”: “u-gray-200”, “color”: “rgb(229 231 235)”, “name”: “Udemy Gray 200” },
{ “slug”: “u-gray-300”, “color”: “rgb(209 213 219)”, “name”: “Udemy Gray 300” },
{ “slug”: “u-gray-400”, “color”: “rgb(156 163 175)”, “name”: “Udemy Gray 400” },
{ “slug”: “u-gray-500”, “color”: “rgb(107 114 128)”, “name”: “Udemy Gray 500” },
{ “slug”: “u-gray-600”, “color”: “rgb(75 85 99)”, “name”: “Udemy Gray 600” },
{ “slug”: “u-gray-700”, “color”: “rgb(55 65 81)”, “name”: “Udemy Gray 700” },
{ “slug”: “u-gray-800”, “color”: “rgb(31 41 55)”, “name”: “Udemy Gray 800” },
{ “slug”: “u-gray-900”, “color”: “rgb(17 24 39)”, “name”: “Udemy Gray 900” },
{ “slug”: “u-primary”, “color”: “rgb(239 68 68)”, “name”: “Udemy Primary” },
{ “slug”: “u-accent”, “color”: “rgb(67 56 202)”, “name”: “Udemy Accent” },
{ “slug”: “u-success”, “color”: “rgb(52 211 153)”, “name”: “Udemy Success” },
{ “slug”: “u-info”, “color”: “rgb(96 165 250)”, “name”: “Udemy Info” },
{ “slug”: “u-warning”, “color”: “rgb(251 146 60)”, “name”: “Udemy Warning” },
{ “slug”: “u-danger”, “color”: “rgb(236 72 153)”, “name”: “Udemy Danger” }
],
“background”: true,
“text”: true,
“link”: true,
“custom”: true

    },
    "blocks": {
        "core/site-title": {
            "color":{
                "defaultPalette": true,
                "palette": [
                    { "slug": "u-primary", "color": "#ef4444", "name": "Udemy Primary" }
                ]
        },
        "typography": {
            "fontFamilies": [
                {
                    "fontFamily":"Pacifico, sans-serif",
                    "slug": "u-pacifico",
                    "name": "Udemy Pacifico"
                }
            ]
    
        }   
    }
},

"typography": {
    "fontFamilies": [
        {
            "fontFamily":"Rubik, sans-serif",
            "slug": "u-rubik",
            "name": "Udemy Rubik"
        }
    ]

}

},
“styles”: {
“color”: {
“text”: “var(–wp–preset–color–u-gray-700)”,
“background”: “var(–wp–preset-color–u-white)”
}
}
}

0
Peltsi Doe 7 days 2022-11-21T14:51:18-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse