How to remove class 'my_custom' from body tag? (4 posts)

  1. Trishah
    Posted 3 years ago #

    Does anyone know what generates the my_custom body class?

    I am not the original designer of the blog but I'm trying to help out the blog owner with some theme issues she's having. I have discovered that on all but two of her pages the body tag has an extra class named "my_custom". On these pages her main top menu as well as the top Admin Menu Bar disappears. Examples:

    About page body tag that works: <body class="custom about">
    Product page body tag that has the problem: <body class="custom products my_custom">

    If I make an html version of one of the effected pages and remove the my_custom class then the menus appear. So I know what the problem is... but how to fix it?

    I have downloaded all her plugins and searched them for the my_custom term but can't find it. OptinSkin has a my_custom_design class but that's as close as I've come. Also OptinSkin is the only plugin difference on the effected pages but deactivating the plugin doesn't remove the my_custom class.

    This leads me to think it's being generated by some javascript... but which one? Here is a list of her plugins.

    BTW, she is also using Thesis theme.


  2. Trishah
    Posted 3 years ago #

    Update: I've systematically gone through and deactivated/reactivated all the plugins with no change to the body tag. So is my_custom something that Thesis adds to the body tag? If so, how to remove it?

  3. Trishah
    Posted 3 years ago #

    Found it!

    Thesis > custom > custom.css

    I commented out this around line 940:

    /*.my_custom .menu { display: none; }*/

    Now the main top menu is visible but the Admin Menu Bar still does not show on those pages.

    So I commented out the following and the Admin Menu Bar is now visible:

    /*.my_custom #footer { display: none; }*/

    So, now here is my question... How do I do this in Thesis Admin instead of commenting out the custom.css file?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's vendors.

Topic Closed

This topic has been closed to new replies.

About this Topic