Title: Plugin keeps erasing CSS pseudo selectors &#8211; properties &amp; values
Last modified: June 6, 2019

---

# Plugin keeps erasing CSS pseudo selectors – properties & values

 *  Resolved [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [7 years ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/)
 * I added the following custom CSS to the page,
 *     ```
       .valueNumber {
       	position: relative;
       	background: #d2d2d2;
       	border: 4px solid #d2d2d2;
       }
       .valueNumber:after {
       	content: " ";
       	position: absolute;
       	height: 0;
       	width: 0;
       	right: 100%;
       	top: 50%;
       	border: solid transparent;
       	pointer-events: none;
       	border-color: #d2d2d2;
       	border-color: rgba(210, 210, 210, 0);
       	border-right-color: #d2d2d2;
       	border-width: 20px;
       	margin-top: -20px;
       }
       .valueNumber:before {
       	content: " ";
       	position: absolute;
       	height: 0;
       	width: 0;
       	right: 100%;
       	top: 50%;
       	border: solid transparent;
       	pointer-events: none;
       	border-color: #d2d2d2;
       	border-color: rgba(210, 210, 210, 0);
       	border-right-color: #d2d2d2;
       	border-width: 26px;
       	margin-top: -26px;
       }
       ```
   
 * Each time the plugin would erase the above CSS code and it shouldn’t be doing
   that. I had to abandon using pseudo selectors in the plugin and add them via 
   the theme Custom CSS instead.
 * Is there an intentional limitation coded into this plugin to keep us from adding
   certain custom CSS that we want?

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

 *  Plugin Contributor [Ben Carlo](https://wordpress.org/support/users/hinampaksh/)
 * (@hinampaksh)
 * [7 years ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11612228)
 * Hey [@mwarbinek](https://wordpress.org/support/users/mwarbinek/),
 * I just tried adding the same snippet under **Tools**(top left corner right where
   the BB logo is) **> Layout CSS/JS > CSS** on our dev site and it works just fine,
   i.e., it was still intact after publishing and refreshing the page a few times.
 * Do you mind sharing where you added the snippet? 🙂
 * Ben
    -  This reply was modified 7 years ago by [Ben Carlo](https://wordpress.org/support/users/hinampaksh/).
 *  Thread Starter [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [7 years ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11620921)
 * In the page Custom CSS layout via the plugin, “CSS Layout & Javascript”.
 *  Plugin Contributor [Ben Carlo](https://wordpress.org/support/users/hinampaksh/)
 * (@hinampaksh)
 * [7 years ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11629333)
 * Hey [@mwarbinek](https://wordpress.org/support/users/mwarbinek/),
 * So you’re using the plugin **CSS Layout & Javascript** to add the CSS? Have you
   tried getting in touch with their support instead? We’re not really familiar 
   with how their plugin works or coded. 🙂
 * Ben
 *  Thread Starter [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11641636)
 * Confusing, when I did not correctly type the actual menu label, — Sorry.
 * Its your custom CSS module, “Layout CSS & Javascript”. This is the in-page custom
   CSS, it is not the theme custom CSS in customizer.
 *  Plugin Contributor [Ben Carlo](https://wordpress.org/support/users/hinampaksh/)
 * (@hinampaksh)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11647787)
 * Hey [@mwarbinek](https://wordpress.org/support/users/mwarbinek/),
 * No worries at all! I just tried adding the snippet you shared again on our dev
   server and it saves just fine. Do you think you can do a screen recording of 
   the issue happening, upload it somewhere like Dropbox and share the link here
   so we can check? 🙂
 * Ben
 *  Thread Starter [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11649842)
 * This is inconsistent. The issue is there, now it isn’t. That is one thing I keep
   experiencing with the plugin, something won’t work no matter what I do or change
   and days later it clears itself and all works (except the margin issue that works
   as padding instead, that remains).
 * So I suppose this issue took a holiday, no idea when it will be back (hopefully
   never).
 * Thanks
 *  Plugin Contributor [Ben Carlo](https://wordpress.org/support/users/hinampaksh/)
 * (@hinampaksh)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11655682)
 * Hey [@mwarbinek](https://wordpress.org/support/users/mwarbinek/),
 * That sounds like a caching issue. Let us know if it keeps on happening so we 
   can dig deeper. 🙂
 * Ben
 *  Thread Starter [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11657461)
 * That would be the server then, because I did clean the cache of the browser at
   the time and the issue did not go away. The WordPress site is a bare minimum 
   setup, no caching plugins. Now that it resolved itself, caching at the server
   does refresh itself after a period of time.

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

The topic ‘Plugin keeps erasing CSS pseudo selectors – properties & values’ is closed
to new replies.

 * ![](https://ps.w.org/beaver-builder-lite-version/assets/icon-256x256.png?rev=
   2361183)
 * [Beaver Builder Page Builder - Drag and Drop Website Builder](https://wordpress.org/plugins/beaver-builder-lite-version/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beaver-builder-lite-version/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beaver-builder-lite-version/)
 * [Active Topics](https://wordpress.org/support/plugin/beaver-builder-lite-version/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beaver-builder-lite-version/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beaver-builder-lite-version/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/plugin-keeps-erasing-css-pseudo-selectors-properties-values/#post-11657461)
 * Status: resolved