-
AuthorPosts
-
June 18, 2014 at 7:36 pm #58096
Hello,
I want to add this:
<link href="countdown/mb-comingsoon.min.css" rel="stylesheet" />
in <head>, but I can’t find how to do it.
I am using a child theme and I have tried adding to header.php, also on framework/view/ethos/wp-header.php
COuld you please help me?
Thanks
June 18, 2014 at 9:04 pm #58128I am not using a child theme, but I am also trying to get the header to link to a URL. What am I doing wrong?
June 19, 2014 at 10:48 am #58399I found it out.
Go to your themes folder
C:\WampDeveloper\Websites\*********\webroot\wp-content\themes\x\framework\views\global\_header.php
Mine looks like this:
<?php // ============================================================================= // VIEWS/GLOBAL/_HEADER.PHP // ----------------------------------------------------------------------------- // Declares the DOCTYPE for the site and include the <head>. // ============================================================================= ?> <!DOCTYPE html> <!--[if IE 9]><html class="no-js ie9" <?php language_attributes(); ?>><![endif]--> <!--[if gt IE 9]><!--><html class="no-js" <?php language_attributes(); ?>><!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php wp_title(''); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11"> <link href="countdown/mb-comingsoon-iceberg.css" rel="stylesheet" /> +++++++++++++++++++++++++++ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>>
The one with the ++++++ is the one I added and it works like charm. In my case i needed to load a css file..
June 20, 2014 at 8:18 am #58812Hi Rusi, Amanda,
Thanks for sharing this Rusi, this will definitely help others.
Amanda, you should set up a child theme if you want to change files or add anything to it so it won’t be overwritten when you will be updating your theme.
Cheers.
-
AuthorPosts