Modify header.php

Posted in: Newspaper
Post count: 6

Hello there
I now have several different CSS files
Different CSS files are needed for homepage, post, and page
I modified header.php
like this
<? php if (is_home ()) {?>
<link rel = “stylesheet” href = “cssA” type = “text / css” />
<? php}
elseif (is_single ()) {?>
<link rel = “stylesheet” href = “cssB” type = “text / css” />
<? php}
elseif (is_page ()) {?>
<link rel = “stylesheet” href = “cssD” type = “text / css” />
<? php}?>
But none of my code worked
Why is the modification of header.php invalid?
Thank you

Post count: 6

anyone?

Post count: 18283

Hello !

Please note that custom coding is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/

Thank you for your understanding !

Post count: 18283

Hello !

Please note that custom coding is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/

Thank you for your understanding !

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.