• Resolved mairag

    (@mairag)


    Hi, first thanks for creating this plugin to replace the old one. It does the work perfectly but I found it creates a layout issue on the website I’m working.

    When I activate this plugin it removes the custom classes from the pages:

    Without plugin > https://puu.sh/Cj3es/9dae7d931d.png
    With plugin > https://puu.sh/Cj3fE/de333e4116.png

    This creates several layout issues because obviously, some CSS styles rely on the body classes, do you have any idea why this can be happening and how can I fix it?

    Thanks,
    Maira

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @mairag,

    I have checked but I don’t understand why those attributes are removed. The plugin itself doesn’t remove anything, it only modifies those elements:

    – .wp-block-gallery img
    – .gallery img
    – .mgl-gallery img

    The classes you are missing are added through a standard process of WordPress: https://codex.www.ads-software.com/Plugin_API/Filter_Reference/body_class. I have just tried on all my installs and I didn’t find any problem with it.

    Now I am wondering if it’s not “clashing” with another plugin you are using, maybe a plugin hooked into this body_class filter.

    Could you try to debug this a bit, by disabling all your plugins, except Gallery Custom Links? Also have a look at your PHP Error Logs, as maybe there is something happening in there.

    Last but not least, just for checking, could you try another theme with your current install to see if you also experience the issue?

Viewing 1 replies (of 1 total)
  • The topic ‘Layout problem when using this plugin…’ is closed to new replies.