Why are my styles being applied to the admin area?

All my enqueued styles are applied to the back-end as well. I have never encountered this behavior before. Here’s my code: wp_register_style( ‘main-styles’, get_stylesheet_directory_uri() . ‘/css/styles.css’, false, ‘1.0.0’, ‘all’); wp_enqueue_style(‘main-styles’); 2 Answers 2 Why are my styles being applied to the admin area? Assuming that is all of the code, it is because you are … Read more

Different background-image by category

I am trying to put different body background-image for each category. body { background-color: #000; background-image: url(img/bg.png); background-repeat: no-repeat; background-position: center top; font-size: 14px; color: #555; font-family: Arial, Helvetica, Verdana, sans-serif; } I only want different background-image: url(img/bg.png); for each catecory. I found one possible method. It’s like that: <link rel=”stylesheet” href=”” type=”text/css” media=”screen,projection” /> … Read more

How to rotate the background image in the container?

I want to rotate the image which is placed in the button of scrollbar in Chrome. Now I have a CSS with this content: ::-webkit-scrollbar-button:vertical:decrement { background-image: url(images/arrowup.png); -webkit-transform: rotate(120deg); -moz-transform: rotate(120deg); background-repeat: no-repeat; background-position: center; background-color: #ECEEEF; border-color: #999; } I wish to rotate the image without rotating its content. 8 Answers 8

IE9 border-radius and background gradient bleeding

IE9 is apparently able to handle rounded corners by using the CSS3 standard definition of border-radius. What about support for border radius and background gradient? Yes IE9 is to support them both separately, but if you mix the two the gradient bleeds out of the rounded corner. I am also seeing strangeness with shadows showing … Read more

Why are my frontend theme styles bleeding into the backend?

I’m developing a custom theme. For some reason, some of the styles I define globally in the front-end (like certain styles for headings and such) are affecting the back-end. I am using the WP-LESS plugin and enqueueing the main stylesheet in the theme’s functions.PHP: wp_enqueue_style( ‘mainLESS’, get_template_directory_uri() . ‘/less/index.less’); Is this normal behaviour? How should … Read more

Disabling browser print options (headers, footers, margins) from page?

I have seen this question asked in a couple of different ways on SO and several other websites, but most of them are either too specific or out-of-date. I’m hoping someone can provide a definitive answer here without pandering to speculation. Is there a way, either with CSS or javascript, to change the default printer … Read more