Archived topic
second style.css for some page.
2 replies · Started by Anonymous on February 27, 2016
Hi Tom. I need your help. For my main page I want use some style1.css and use common style.css for all other pages. I pasta this code in header.php between <head></head> but it didn't help me. How can I do it?
<?php if (is_page('62')) { ?>
<link rel="stylesheet" type="text/css" media="all" href="style1.css" />
<?php ;} else { ?>
<link rel="stylesheet" type="text/css" media="all" href="style.css" />
<?php ;}?>
I do it). I just paste in style.css:
body.page-id-62 #content {
padding: 0px 40px 40px 40px;
}
Perfect :)
Instead of pasting it into style.css, I suggest using our CSS plugin: https://generatepress.com/knowledgebase/adding-css/
