Tagged: x
-
AuthorPosts
-
December 12, 2016 at 12:46 pm #1290295
Hi Theme support,
I tried to insert the facbook code pixel and put the code in the function.php page but I delete some line of code and Itried to fixe it but did’nt work out. Now I have this message of error
Parse error: syntax error, unexpected ‘<‘ in /home/content/38/11590838/html/arevelation/wp-content/themes/x-child/functions.php on line 27
Can you help please to fix it ?
Thank you!
PatDecember 12, 2016 at 1:04 pm #1290327Here’s the code. I don’t know what’s missing.
Thank you!
Pat<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions // ============================================================================= // ============================================================================= // =============================================================================
December 12, 2016 at 1:20 pm #1290349Hi there,
Thanks for writing in! You haven’t provided the code that you have tried to add into your functions.php file. Please provide us with the code, so that we can assist you.
Thanks!
December 12, 2016 at 1:25 pm #1290353Hi Darshana.
I tried to insert the Facebook Pixer code<!– Facebook Pixel Code –>
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘1879702745598364’);
fbq(‘track’, ‘PageView’);
</script>
<noscript>
<img height=”1″ width=”1″
src=”https://www.facebook.com/tr?id=1879702745598364&ev=PageView
&noscript=1″/>
</noscript>
<!– End Facebook Pixel Code –>
And I place, in the other post above, the code what I have right now because I delete the Facebook pixel code.
December 12, 2016 at 3:12 pm #1290462Hi there,
In that case, please follow this example code here and place your code (https://community.theme.co/forums/topic/facebook-tracking-pixel-2/#post-307619).
Here’s another example (https://community.theme.co/forums/topic/facebook-pixel-code/#post-817969).
Hope that helps.
December 12, 2016 at 4:18 pm #1290520Hi, it doesn’t work. I still have the same error
Parse error: syntax error, unexpected ‘<‘ in /home/content/38/11590838/html/arevelation/wp-content/themes/x-child/functions.php on line 27
And now,it’s worst I don’t have access to my website. I really need help on that. My website is now down.
Can I have an example of code for child theme Integrity that I can copy and paste in my function.php ?
December 12, 2016 at 11:01 pm #1290824Hi There,
So you’re editing your theme’s functions.php file from the dashboard editor? We do not advice that. Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
December 13, 2016 at 8:45 am #1291353Hi Friech,
I resolved my problem
Thank you,
PatDecember 13, 2016 at 9:35 am #1291421If you need anything else please let us know.
-
AuthorPosts