• Hi! I’m using the Newsmatic theme which doesn’t support the Global Styles feature as far as I can tell. So in order to enable ‘lightbox’ so all my images can expand on clics by default, I created a theme.json file in my theme’s directory with the following code:

    {
    
    ? ? "version": 2,
    
    ? ? "settings": {
    
    ? ? ? ? "blocks": {
    
    ? ? ? ? ? ? "core/image": {
    
    ? ? ? ? ? ? ? ? "lightbox": {
    
    ? ? ? ? ? ? ? ? ? ? "enabled": true
    ? ? ? ? ? ? ? ? }
    ? ? ? ? ? ? }
    ? ? ? ? }
    ? ? }
    }

    And it works! But it’s erasing the style of my post’s editor. So basically the editor is not centered and the properties don’t follow the theme’s. Is there a way to enable this without messing my editor’s style?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Alor Web

    (@jerrymayalor555)

    HI @alexcastor,

    Can you send a screenshot of the issue so that we could better looked at it.
    Thanks

    Thread Starter alexcastor

    (@alexcastor)

    Surely!
    Here is how my editor looks without the theme.json file:

    Here is how it looks after I add the theme.json file:

    Alor Web

    (@jerrymayalor555)

    Try to add this line of code on your theme.json file

    "lightbox": {
       "enabled": true
    }
    

    See images for your reference. https://share.zight.com/WnuX57ZX
    This will add an additional of for the image option on your editor page. https://share.zight.com/wbuBOXvQ

    Hope that helps.

    Thanks

    Thread Starter alexcastor

    (@alexcastor)

    Thank you for your quick response! I tried it in that way and it doesn’t make my images expand. But it still messes my editor!

    mklusak

    (@mklusak)

    Hi @alexcastor, did you manage to work it out? I have the same problem. I can create (even empty) theme.json file like below, and my editor styles disappear.

    {
    "version": 2,
    "settings" : {},
    "styles" : {}
    }

    Hi,

    Any solution here ? I am also getting the same issue and unable to fix it.

    Any help appreciated.

    Thanks

    Thread Starter alexcastor

    (@alexcastor)

    I just gave up the lightbox function. Not a lot of sites use it anyways. I heard some wordpress themes already have it active by default!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.