• Resolved Iramr

    (@iramr)


    Hellow ,
    I m a newbie to wordpress and dunt know much about php .

    The thing is i want to add a code to header.php but my themes header show

    <?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
    
    /**
     * The template for displaying pages headers
     *
     * Please do not overload this file directly. Instead have a look at framework/templates/header.php: you should find all
     * the needed hooks there.
     */
    
    us_load_template( 'templates/header' );

    Now the thing is , I got to framework/templates/header.php , Idunt know where to paste the code .

Viewing 2 replies - 1 through 2 (of 2 total)
  • The question is too vague. When do you want the code to execute. What is the code? Is it a complex code or is it just a general echo ? Specify the question first

    Thread Starter Iramr

    (@iramr)

    I want to add a facebook pixel .
    I have to put the code anywhere in the header.php

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

The topic ‘How to post php code in header.php !’ is closed to new replies.