I am using following (simplified) code for my PHP stylesheet
<?php header("Content-type: text/css; charset: UTF-8"); ?>
/* Our dynamic styles go here */
/* We will check BOTH sidebars are there so we can adjust width of our content */
<?php if ( is_active_sidebar('secondary') && is_active_sidebar('main') ) {
?>
#blogs{
float: right;
width: 530px;
}
<?php } ?>
Now when I view source of my webpage I am getting this (exactly as should be):
<link rel="stylesheet" type="text/css" media="all" href="http://www.mypage.com/wordpressdevelopment/wp-content/themes/Endless_Theme/functions/dynamic_css.php">
So when I click my link above (Endless_Theme/functions/dynamic_css.php
)
I am getting this output (so now I know that my PHP/CSS script is working) :
/* Our dynamic styles go here */
/* We will check BOTH sidebars are there so we can adjust width of our content */
#blogs{
float: right;
width: 530px;
}
But the problem is that my CSS/PHP is not being applied to my webpage!
Can someone tell me please what I am doing wrong here?
You can see my PAGE HERE
It should display one sidebar on right side and another on left side but it is not working (but strange thing is that same code IS WORKING on my LOCALL machine).