Title: Layout problem when using this plugin&#8230;
Last modified: December 17, 2018

---

# Layout problem when using this plugin…

 *  Resolved [mairag](https://wordpress.org/support/users/mairag/)
 * (@mairag)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/layout-problem-when-using-this-plugin/)
 * 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 > [http://puu.sh/Cj3es/9dae7d931d.png](http://puu.sh/Cj3es/9dae7d931d.png)
   
   With plugin > [http://puu.sh/Cj3fE/de333e4116.png](http://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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flayout-problem-when-using-this-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/layout-problem-when-using-this-plugin/#post-11000711)
 * Hi [@mairag](https://wordpress.org/support/users/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.wordpress.org/Plugin_API/Filter_Reference/body_class](https://codex.wordpress.org/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.

 * ![](https://ps.w.org/gallery-custom-links/assets/icon-256x256.png?rev=2588900)
 * [Gallery Custom Links](https://wordpress.org/plugins/gallery-custom-links/)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-custom-links/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-custom-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-custom-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-custom-links/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/layout-problem-when-using-this-plugin/#post-11000711)
 * Status: resolved