Results 1 to 3 of 3

Thread: Problem with child theme " functions.php"

  1. #1
    Thread Starter
    Expired Customer aabdi406's Avatar
    Join Date
    Sep 2013
    Location
    Sydney
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with child theme " functions.php"

    Hi Folks,

    I am getting a an error which looks lik this:
    Parse error: syntax error, unexpected $end in /home/taxid476/public_html/................/wp-content/themes/vantage-child/functions.php on line 20

    and all I have on my child-theme "functions.php" is as follows
    Code:
    <?php
    // add google analytics to footer
    function add_google_analytics() {
    	echo '<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>';
    	echo '<script type="text/javascript">';
    	echo 'var pageTracker = _gat._getTracker("UA-46391407-1");'; //test
    	echo 'pageTracker._trackPageview();';
    	echo '</script>';
    
    </script>
    }
    add_action('wp_footer', 'add_google_analytics');
    ?>

    I even removed the above code to test the "functions.php" to see if it still shows that error anbd it was still showing the error!
    I tried to clear my browser chache and the error was still there!

    Does anyone one came accrros this problem before and give me some direction ?

    Thanks in advance!

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,867 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: February 19th, 2013, 09:26 AM
  2. Replies: 65
    Last Post: December 12th, 2012, 06:38 AM
  3. Problem with child-theme not loading "includes" folder files
    By wumada in forum Vantage General Discussion (Legacy)
    Replies: 3
    Last Post: October 13th, 2012, 12:07 AM
  4. [SOLVED] ADD "custom-fields" FROM BACKEND SUPPORT IN CHILD THEME
    By handmdmr in forum Report Vantage Bugs (Legacy)
    Replies: 1
    Last Post: October 2nd, 2012, 02:32 AM