I have several different pages. Every one of them has different css links. Rather than the css links all items are same in the head element of those pages.
I need to shift those head element to header.php
so that I can include head using get_header()
.
So How can I load different css file for different pages? I have around 20 different pages, so load file after condition check is bit messy to me.
Is there any better approach to do than this?
If possible suggest me to solve this problem using custom plugin?
page 1:
<html lang="en">
<head>
<link rel="stylesheet" href="css/one.css" />
.......
</head>
page 2:
<html lang="en">
<head>
<link rel="stylesheet" href="css/two.css" />
.......
</head>