Forums

Social
W3 Total Cache and Thematic Theme (5 posts)

  1. Nicolas Messer
    Member
    Posted 5 months ago #

    Not 100% sure on which side the problem is but I noticed that the Total Cache Plugin "breaks" the body class in the Thematic WP Theme. Once the Plugin is activated all browsers return the last browser name as CSS class in the body tag. Any help on this would be appreciated. Thanks!

  2. sfrangos
    Member
    Posted 5 months ago #

    Hi Nicolas -

    We develop using Thematic quite a lot, so I am interested in seeing if I can help you get to the bottom of this. It may be the specific "flavor" of the caching plugin you are using. We use W3 Total Cache, and I don't think the same problem results. Learn about this plugin here: http://www.w3-edge.com/wordpress-plugins/w3-total-cache/

    But if that is the same plugin you use (there are others with similar names), then take a look at one of our client's sites where we have it in use: http://bfgl.com

    If I look at page source for that site, I see:
    <body class="wordpress blogid-1 y2011 m12 d31 h22 home singular slug-home page pageid-159 page-author-webfadds page-comments-closed page-pings-closed page-template page-template-NoTitlepage-php mac firefox ff1">

    Is this what you did not like? It is actually a very powerful way to take control of what displays on different pages, templates, and even in different browsers. Since each browser gets a class assignment, you could show a different background to people using different browsers, for example, using CSS.

    This is not due to W3 Total Cache... these classes are available even without it.

    Cheers -
    Scott
    http://WebFadds.com

  3. Frederick Townes
    Member
    Posted 3 months ago #

    Any updates?

  4. Nicolas Messer
    Member
    Posted 3 months ago #

    @sfrangos - thanks for your input! We do use W3 Total Cache for that particular project. I understand the body class isn't a Plugin issue itself. But what we had as output compared to yours is that instead of just having "mac firefox ff11" show up the body class would have the name of the last used browser in the tag.

    I also noticed that this was somewhat "random" and I couldn't really get to the bottom of the problem myself...also because this is a pro bono project and I donate time to them whenever they need it the most. So I have been off and on for the past few weeks.

    I will have to dig back in there sometime soon to look at this again. Because it was mainly for some IE fixes where I wanted to take the easy route, I was able to do some other things to work around it.

    Once I get time to look at this, I will post back. Thanks!

  5. Frederick Townes
    Member
    Posted 3 months ago #

    Standing by.

Reply

You must log in to post.

About this Plugin

About this Topic