Title: Info box not processing additional css classes
Last modified: June 9, 2026

---

# Info box not processing additional css classes

 *  Resolved [lencw](https://wordpress.org/support/users/lencw/)
 * (@lencw)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/info-box-not-processing-additional-css-classes/)
 * The info box has css classes specified to enable specific formatting of the info
   boxes:
 * my-box-shadow-border same-height-infobox infobox-hover
 * In a recent update, the css classes are no longer attached to the info boxes 
   when checking in the browser inspector. Also, the info boxes are now really slow
   to load, previously quick.
 * php8.3, reduced to 8.2 no difference. WordPress 7.0, generatepress 3.6.1, Spectra
   2.19.28, Litespeed Cache 7.8.1, plus other plugins – all up to date. No errors
   in the error log. CSS cache turned off in Litespeed, then on, no difference.
 * This is looking more like a Spectra software issue, can you please look into 
   this. Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finfo-box-not-processing-additional-css-classes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * (@ravigojiya)
 * [6 days, 22 hours ago](https://wordpress.org/support/topic/info-box-not-processing-additional-css-classes/#post-18937284)
 * Hello [@lencw](https://wordpress.org/support/users/lencw/),
 * Thank you for reaching out. I’m Ravi from the Spectra support team, and I’m happy
   to assist you with your query.
 * Thank you for the detailed report, and we are sorry for the trouble this has 
   caused.
 * We can confirm this is a known issue specific to the Spectra Info Box block, 
   and you have diagnosed it correctly. With WordPress 7.0, the way custom CSS classes
   get added to blocks changed, and the class is now injected onto the outermost
   HTML element of each block at render time. After our recent move to the newer
   Gutenberg Block API, the Info Box block is not exposing that outer element the
   way WordPress expects, so the custom classes get dropped from the frontend output.
   This is why they still show in the editor but never appear when you inspect the
   page.
 * This has already been logged as a confirmed bug, and a fix has now been prepared.
   It is currently going through verification and QA on our end before it ships,
   as we want to be sure it is fully tested. We do not have an exact release date
   just yet, but resolving this is a priority, and we will keep you informed once
   the fix goes out in an upcoming version.
 * In the meantime, here is a workaround that should bring your styling back. Since
   your CSS targets those classes, placing them on a wrapper around the Info Box
   gives the same result.
    1. Select the Info Box block and remove the custom classes from its Advanced settings,
       under Additional CSS class(es).
    2. Wrap the Info Box inside a Container block.
    3. Select the Container block, open its Advanced settings, and add the same CSS
       classes in the Additional CSS class(es) field.
    4. Save the page and check the frontend.
 * Custom classes on the Container block render correctly, so your styling should
   apply just as it did before.
 * Please give that a try and let me know how it goes. We are here to help if you
   run into any issues.
 * Have a nice day ahead!
 *  Thread Starter [lencw](https://wordpress.org/support/users/lencw/)
 * (@lencw)
 * [6 days, 15 hours ago](https://wordpress.org/support/topic/info-box-not-processing-additional-css-classes/#post-18937474)
 * Hi Ravi, thanks for confirming. I found another workround before reading your
   reply. As these are the only info blocks on that page, I targeted using the page
   class and general infoblock class instead. Thats worked, and ensures just on 
   that page. I note your solution for future reference, thanks. Will be back to
   being easier when the fix comes out – thanks for the update on that.
 * Please consider this closed.
 *  Plugin Support [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * (@ravigojiya)
 * [3 days, 21 hours ago](https://wordpress.org/support/topic/info-box-not-processing-additional-css-classes/#post-18940004)
 * Hi lencw,
 * Thank you for the update, and we are glad to hear you found a solution that works
   well for your setup.
 * Targeting the styling through the page class and the general info block class
   is a smart approach, and as you noted, it keeps everything scoped neatly to just
   that page. That works perfectly until the fix is out.
 * We will keep working on the proper fix for the custom CSS classes on the Info
   Box block, and we will share an update once it ships in an upcoming version. 
   You are always welcome to switch back to using the per block classes once that
   is resolved.
 * Thank you again for your patience and for taking the time to share your findings.
   It really helps.
 * We hope you have a wonderful day ahead!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finfo-box-not-processing-additional-css-classes%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif?rev
   =3240412)
 * [Spectra Gutenberg Blocks – Website Builder for the Block Editor](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * Last activity: [3 days, 21 hours ago](https://wordpress.org/support/topic/info-box-not-processing-additional-css-classes/#post-18940004)
 * Status: resolved