Easy as that: https://gist.github.com/justnorris/5387539
Just use sanitize_html_classes instead of sanitize_html_class.
]]>I need to insert <body class=”nolinks”> into some of my pages, so I downloaded this plugin as it seemed to be the closest to what I needed. When I enter that code into the box on my edit page and click update, it changes to bodyclassnolinks. So I’m not sure if this is a bug, or if I formatted it correctly or not. Thanks for the help!
]]>I am getting this come up in the admin:
Warning: Missing argument 2 for custom_classes_add_meta_boxes() in /wp-content/plugins/custom-classes/custom-classes.php on line 182
]]>Not sure with it being woocommerce shop page it should make any difference but the classes did not show up for /shop. Tried several times cleared caches, tried page and post – no avail.
Didn’t want to review something unfairly as someone else mentioned it worked fine with 4.3.1.
Any advice?
Thank you
]]>Its just not working.
Any alternatives?
I am very sorry to insult your intelligence, if I am . . . I am almost completely computer language illiterate.
I use My LIfe theme, which I just love, and is working so well for me. But, I would like to have a bit more flexibility with category and page, or even post, templates. I would like to use the single column template for certain category/page/post. When I use the built it customization with the theme, changing from 2 columns to 1 column, it changes ALL the posts. OlivetJournal.com
Does this plugin have anything to do with it?
I have a child theme set up, but not sure what to do next.
What’s the right way to create new templates? Do you have a plugin for that?
I would appreciate your guidance.
]]>It would be very cool if you can update line 66 to support custom post types, … like so:
$post_types = get_post_types( array( 'public' => true, '_builtin' => false ), 'names', 'or' );
Thanks! ??
]]>This plugin is just what I wanted for setting classes on pages.
But it would be even better if you could put in more than one class! (If you do that at the moment it strips the spaces between them to make a single class name from the two.)
]]>custom body classes doesn’t load on any page in this version.
]]>