Title: Shortcode Custom CSS Still Not Saving
Last modified: March 31, 2022

---

# Shortcode Custom CSS Still Not Saving

 *  Resolved [dcbuffalo](https://wordpress.org/support/users/dcbuffalo/)
 * (@dcbuffalo)
 * [4 years ago](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/)
 * The previous thread for this issue ([https://wordpress.org/support/topic/shortcodes-in-accordion-not-displaying-any-data-2/](https://wordpress.org/support/topic/shortcodes-in-accordion-not-displaying-any-data-2/))
   is marked as RESOLVED, but it is not resolved.
 * This is STILL an issue with v2.3.3. I have to sit on v2.2.8 still because otherwise,
   it wipes everything out upon save – settings and custom CSS, and the front-end
   does not incorporate either the settings OR the custom CSS. Once I rollback the
   plugin, the data magically reappears and everything works, front-end and back-
   end, without having to restore the database.
 * I have tested and tested. It’s just the plugin.
 * Can we please have a fix to this problem?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-custom-css-still-not-saving%2Fpage%2F2%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/?output_format=md)
[1](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/?output_format=md)
2

 *  Thread Starter [dcbuffalo](https://wordpress.org/support/users/dcbuffalo/)
 * (@dcbuffalo)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/page/2/#post-15700433)
 * So FYI – I re-did your steps from above, and it works again:
 * STEP 1:
    Go to Plugins > Plugin editor and select Responsive Accordion and Collapse
   plugin and go to front > style.php on line number 151 replace the below code 
   with another code.
 * <?php echo esc_attr($custom_css); ?>
    to <?php echo $custom_css; ?>
 * STEP 2
    Go to plugins > plugin editor and select Responsive Accordion and go 
   to lib folder > admin > data-post > ac-settings-save-data.php file on line number
   23 and replace the below code with the new code.
 * $custom_css = sanitize_textarea_field($_POST[‘custom_css’]);
    to $custom_css 
   = stripslashes($_POST[‘custom_css’]);
 * Still trying to understand why you don’t just include this in the update.
 *  Thread Starter [dcbuffalo](https://wordpress.org/support/users/dcbuffalo/)
 * (@dcbuffalo)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/page/2/#post-15884218)
 * This is STILL happening. Had to do a restore of the site because your plugin 
   update broke the site.
 * PLEASE FIX THIS ISSUE. I can’t believe I’m still asking.

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/?output_format=md)
[1](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/?output_format=md)
2

The topic ‘Shortcode Custom CSS Still Not Saving’ is closed to new replies.

 * ![](https://ps.w.org/responsive-accordion-and-collapse/assets/icon-128x128.png?
   rev=2339019)
 * [Accordion FAQ - Compatible With All Page Builder (Elementor, Gutenberg)](https://wordpress.org/plugins/responsive-accordion-and-collapse/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-accordion-and-collapse/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/reviews/)

 * 17 replies
 * 4 participants
 * Last reply from: [dcbuffalo](https://wordpress.org/support/users/dcbuffalo/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/shortcode-custom-css-still-not-saving/page/2/#post-15884218)
 * Status: resolved