Support » Themes and Templates » How to remove class 'my_custom' from body tag?

How to remove class 'my_custom' from body tag?

  • 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.


Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

    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?



    Forum Moderator

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove class 'my_custom' from body tag?’ is closed to new replies.