Bizarre WordPress CSS update problem
Found the problem, it was caused by a plugin called “Supercacher”, which must have been caching my css files. I purged the cache and it works now.
Found the problem, it was caused by a plugin called “Supercacher”, which must have been caching my css files. I purged the cache and it works now.
You can use uniqueid() from php. It’ll generate unique id for your css selector. Or if you use any WordPress core pages like : archive, tags, category pages, please refer following article: 9 Ways to Set Dynamic Body Ids via PHP and WordPress
I asked a more general (non-WordPress specific) question about polyfilling on StackOverflow (I strongly recommend reading through the ensuing comments for context) which has lead me to the following answer: add_action( ‘login_enqueue_scripts’, ‘wpse_215432_oldbrowsersupport’); function wpse_215432_oldbrowsersupport() { wp_register_script( ‘ie_html5shiv’, get_stylesheet_directory_uri().’/js/html5shiv.min.js’, __FILE__, false, ‘3.7.3’ ); wp_enqueue_script( ‘ie_html5shiv’); wp_script_add_data( ‘ie_html5shiv’, ‘conditional’, ‘lt IE 9’ ); //Note: Placeholder script … Read more
Maybe if you take a look at class=”carousel-inner skrollable skrollable-between” and use some js to do it as position:absolute and top:0px
I’m guessing you weren’t using the compiled version. That’s not normal css in the example you provided, it’s scss. SCSS is a type of file for SASS, a program that assembles CSS. SASS adds lots of additional functionality to CSS ( variables, nesting, ect ) which makes writing CSS faster. If you’re new to all … Read more
It may be possible that your theme author would be able to provide you with a previous version of the theme, not sure though. In regards to how you can avoid this issue in the future, I would recommend performing a backup of your WordPress files before updating anything (this goes for plugin updates, WordPress … Read more
Just proxy the modal-open class for Bootstrap like this: .bs-modal-open { overflow: hidden; } .bs-modal-open .modal { overflow-x: hidden; overflow-y: auto; } // or using sass … .bs-modal-open { @extend .modal-open; } Add/remove the bs-modal-open class to the body when opening/closing a BS modal: $(‘.bs-modal’) .on(‘show.bs.modal’, function (e) { $(‘body’).addClass(‘bs-modal-open’); }) .on(‘hidden.bs.modal’, function (e) { … Read more
Your theme correctly uses the body_class function, which you can see by looking at the body tag. This means CSS classes are being added such as page or post that you can work with. e.g. body.page .entry-title { display: none; } There are many other CSS classes that may be useful to you, I suggest … Read more
After further investigations of my own, I determined that the problem was that for whatever reason, both stylesheets were being called at once, rather than independently as they were meant to, and the conflicting instructions caused rendering errors. Rather than referencing the stylesheets in the HTML as above, I rewrote the CSS to incorporate the … Read more
So on your category page check the body tag in your developer tools. There should be a category class. You can then target that page in your CSS with that classname. This is standard CSS stuff. .cat-name{ color: blue; } All other pages will not have that classname and the color: rule be your default. … Read more