• Resolved jamecs

    (@jamecs)


    Hi guys

    Sorry for the newbie question. I’m trying to input some code just after the <head> tag in header.php, but I can’t seem to identify it, i’ve got a </head> at the end but the <head> tag must be in a different guise

    Is this code the equivalent of the <head> tag?

    <!– calling wp_head –>
    <?php wp_head(); ?>
    <!– done calling wp_head –>

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • <head> is usually one of the very first lines in header.php;

    if it says:

    input some code just after the <head> tag

    imho, any position before the </head> should be ok.

    details may depend on the exact code you are adding…

    Thread Starter jamecs

    (@jamecs)

    Its a link to the google fonts stylesheet.

    This is the first few lines of my header.php if that helps!

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;
    <head profile=”http://gmpg.org/xfn/11″&gt;

    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <!– calling wp_head –>
    <?php wp_head(); ?>
    <!– done calling wp_head –>

    Thanks for your help

    you can add the style link anywhere between:
    <head profile="http://gmpg.org/xfn/11">
    and
    </head>

    probably best anywhere before:

    <!-- calling wp_head -->
    <?php wp_head(); ?>
    <!-- done calling wp_head -->

    as that code is often used to hook plugins and plugin styles, which should be able to overwrite other styles.

    Thread Starter jamecs

    (@jamecs)

    Thanks so much, really appreciate it 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Where is my ?’ is closed to new replies.