Support » Plugin: Custom Body Class » Add Classes to all pages?

  • Resolved cecoding

    (@cecoding)


    Hi! I Was wondering if there is any chance I can tweak this plugin so that an added bodyclass can also be simultenously added to all pages and also just as easily removed.

    I’m looking for a solution for a customer, where the customer can add and remove the class ‘christmas’ or ‘easter’ via backend. This plugins is so far the closest I’ve come across that would help me out ^^

Viewing 8 replies - 1 through 8 (of 8 total)
  • Just wondering if there is still active support to this forum πŸ™‚

    Plugin Author Andrei Lupu

    (@euthelup)

    Hey, sorry for this late response, I was on holiday.

    Well, first I’m not sure what do you mean by “page”? On the post type page? or on every possible post, page, category or custom taxonomy?

    Custom body class doesn’t support this for now, but it sounds like an interesting feature to add.

    Thanks,
    Andrei

    Thank you for your reply. Hope you enjoyes your holiday!

    Well I have a project where I want to enable a certain css class for holidays. For example, my class is named christmas, so I want to integrate on every post and page the class christmas but I’d like to add that globally. After christmas I’d like to remove that class via click from all pages and when easter comes around, do the same thing all over but with the class easter. What I would have to do now with just about every plugin I’ve found is, that I have to go to every single page and set this class. Which is kind of annoying when you have 50+ pages.

    The thing is, I can just go into my webpage and add my code manually, but not everyone can do this and I just thought that this would be a nice feature for my client when I’m not around. So far I have not found one single plugin that does just that and unfortunately my programming skills are not enough to write a plugin myself. πŸ™ I certainly need to change that so I don’t bother people during their holidays πŸ˜‰

    hey, I was wondering if we could pay you to include this addone since our client seems so really want that feature. πŸ™‚

    Plugin Author Andrei Lupu

    (@euthelup)

    Hello,

    I didn’t forget about this, and it is surely a thing that I plan to do in my spare time,
    I’m just between jobs, and I have lots of new things to learn and adapt to.

    Let’s do it this way, give me a few nights to spend over this feature, and I promise you that it will be in the plugin. If you like the result, you can donate me as much as you feel like it helped you and I will get myself a beer.

    Cheers,
    Andrei

    well yeah thank you so much πŸ™‚ that is great! will defintaley donat for this! πŸ˜€ you’re awesome πŸ™‚

    Plugin Author Andrei Lupu

    (@euthelup)

    Hey, a new version is up with this feature, give it a spin and let me know how it works.

    If you like the plugin I would love your review on this page https://wordpress.org/plugins/wp-custom-body-class/#reviews

    Cheers,
    Andrei

    Wow! This is extremely awesome! Thank you so, so, so much! πŸ˜€

    • This reply was modified 2 years, 10 months ago by cecoding.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add Classes to all pages?’ is closed to new replies.