Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #58096

    Rusi K
    Participant

    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

    #58128

    Amanda C
    Participant

    I 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?

    #58399

    Rusi K
    Participant

    I 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..

    #58812

    Support
    Member

    Hi 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.