admin管理员组

文章数量:1122832

I am using a non-block theme for my website and am using Gutenberg for writing posts. I want to extend Gutenberg's functionality by adding the image lightbox feature. So I added a theme.json file to the non-block theme and left it empty, exept for

{
    "$schema": ".json",
    "version": 2,
    "settings": {
        "blocks": {
            "core/image": {
                "lightbox": {
                    "enabled": true
                }
            }
        }
    },
    "styles": {},
    "templateParts": [],
    "customTemplates": []
}

Still, the theme.json file f.ex. adds underlines to links that I don't want. How could I setup the theme.json file so that it doesn't do anthing at all, so that I can use it for adding functionality to Gutenberg?

Thanks!

本文标签: phpAdding features to Gutenberg without themejson