Help with if condition
Posted: Mon Oct 31, 2011 1:03 pm
I am a beginner in php, and I would like to ask for some help in relating to the installation of a line of code in the header of a php file.
I am working with an OS shop and trying to install a different css file for some of its sections.
CSS are in the head, and the head is in a the template_top.php file.
I would like to set css files for contact.php, product_info.php and some others.
The idea is to set an if condition to detect the page, which would set this line:
<link rel="stylesheet" type="text/css" href="stylesheet-b.css" />
in the head among the other css links.
Is it posible?
Thanks.
I am working with an OS shop and trying to install a different css file for some of its sections.
CSS are in the head, and the head is in a the template_top.php file.
I would like to set css files for contact.php, product_info.php and some others.
The idea is to set an if condition to detect the page, which would set this line:
<link rel="stylesheet" type="text/css" href="stylesheet-b.css" />
in the head among the other css links.
Is it posible?
Thanks.