Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Caching causing errors in CSS

$
0
0

Replies: 0

When WP Super Cache is active, the compression on CSS is causing some of the styling to be broken, primarily on the home page, and I can't seem to find a way to make the CSS work.

It seems like my custom changes to the theme CSS are being ignored in these cases, but some of the custom CSS is working on the page.

Can anyone recommend a way to make sure the CSS is not being missed? I've marked the CSS as important and it works fine when WP Super Cache is not on.

HTML:
<code><input class=&quot;wysija-submit wysija-submit-field&quot; value=&quot;Subscribe&quot; type=&quot;submit&quot;></code>

CSS:
.home-row-subscribe .wysija-submit {
	float: right !important;
	display: inline-block !important;
	width: 70px !important;
	height: 22px !important;
	background-color: #558ed5 !important;
	border: none !important;
	color: #fff !important;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: bold;
	margin: 8px 0 0 5px !important;
	line-height: 20px !important;
	padding: 1px !important;
}

Viewing all articles
Browse latest Browse all 67836

Trending Articles