Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Plugin Contributions
    0

    Default html_header.php is missing from my custom template

    I have a customized templatemonster template, that a designer implemented to my site. I was just going to install google analytics, but then I realize that /includes/templates/[my_template]/common/html_header.php is not in my customized tamplates folder.

    Can I just create a html_header.php and add in the codes that the googleanalytic module wishes? Or shall I take that file from the default template and copy it into the coresponding folder of my customized template?


    Here is the instructions from the Google Analytics module:
    #### PART B: ####
    At the bottom of /includes/templates/[your_template]/common/html_header.php
    Copy and paste the following lines of code (found below) just before the </head> tag:

    <?php
    /* Begin Simple Google Analytics */
    if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_shipping_estimator')) ) {
    //Skip outputting the tracking code as this is a pop-up window
    } else { // Print tracking code to page
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    } // end if for page determination
    /* End Simple Google Analytics */
    ?>

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: html_header.php is missing from my custom template

    Or shall I take that file from the default template and copy it into the coresponding folder of my customized template?
    Yes that is the prescribed way to do this
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v154 application/x-httpd-php html_header.php PHP script text
    By Parafanaylya in forum General Questions
    Replies: 3
    Last Post: 29 Aug 2015, 03:06 PM
  2. Fatal Error: html_header.php missing
    By Secret Weapon in forum General Questions
    Replies: 11
    Last Post: 6 Jun 2012, 05:44 AM
  3. wordpress template html_header.php blocking modules/pages/index?
    By ZeroGravity in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 6 Jan 2012, 01:27 AM
  4. need html_header.php & tpl_main_page.php files
    By marvin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2011, 06:32 PM
  5. Custom html_header.php for product_info page - How?
    By profitshock in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Jun 2010, 09:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg