Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Not able to link style.css file to front-page.php file

I am not able to link my style.css file to php file
I am giving the exact same path so there is no problem in path

<link rel="stylesheet" href="/wp-content/themes/themeOne/style.css">**

this is the line

after viewing page source i get this error

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head>
<title>404 Not Found</title> </head><body> <h1>Not Found</h1> 
<p>The requested URL was not found on this server.</p> </body></html>

can anyone help me in this?

>Solution :

write this <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style.css" />

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading