* {
padding: 0;
margin: 0;
}
#take {padding: 0;}
@font-face {
font-family: 'pf';
src: url('pfbaguesanspro-bold_0.eot');
src: url('pfbaguesanspro-bold_0.eot?#iefix') format('embedded-opentype'),
url('pfbaguesanspro-bold_0.woff2') format('woff2'),
url('pfbaguesanspro-bold_0.woff') format('woff'),
url('pfbaguesanspro-bold_0.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'pf';
src: url('pfbaguesanspro-light.eot');
src: url('pfbaguesanspro-light.eot?#iefix') format('embedded-opentype'),
url('pfbaguesanspro-light.woff2') format('woff2'),
url('pfbaguesanspro-light.woff') format('woff'),
url('pfbaguesanspro-light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'pf';
src: url('pfbaguesanspro-medium.eot');
src: url('pfbaguesanspro-medium.eot?#iefix') format('embedded-opentype'),
url('pfbaguesanspro-medium.woff2') format('woff2'),
url('pfbaguesanspro-medium.woff') format('woff'),
url('pfbaguesanspro-medium.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'pf';
src: url('pfbaguesanspro-regular.eot');
src: url('pfbaguesanspro-regular.eot?#iefix') format('embedded-opentype'),
url('pfbaguesanspro-regular.woff2') format('woff2'),
url('pfbaguesanspro-regular.woff') format('woff'),
url('pfbaguesanspro-regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
$getcat = get_the_category();
$cat = $getcat[0]->cat_ID;
if ($cat == 1) {
$favicon='/path_to_favicon1/favicon.ico';
} else if ($cat == 2){
$favicon='/path_to_favicon2/favicon.ico';
}
else {
$favicon='/path_to_defaultFavicon/favicon.ico';
}
<link rel="icon" href="<?=$favicon;?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?=$favicon;?>" type="image/x-icon" />