-
AuthorPosts
-
January 11, 2016 at 5:01 pm #741476
My website is http://098.3f9.myftpupload.com
Below is the email i received, could you please help me understand where to place this information?
Thank you in advance.“Please have your webmaster install these codes on the site.
Here is the call forward code to be placed on every page the phone number is on. Paste the code below on every page immediately before the closing </body> tag.
<!– start number replacer –>
<script type=”text/javascript”><!–
vs_account_id = “CA6prVY40swXZgBo”;
//–></script>
<script type=”text/javascript” src=”//adtrack.voicestar.com/euinc/number-changer.js”>
</script>
<!– end ad widget –>January 11, 2016 at 5:27 pm #741498Hi there,
Thanks for writing in! Since this is a 3rd Party Script, our support will be limited to pointing out where the script should go. We cannot guarantee it will work and troubleshooting it would fall beyond our scope of support. Please back up your site before proceeding.
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Once your Child theme is setup and activated.
Find the _footer.phpfile in your main X theme.
/wp-content/themes/x/framework/views/global/_footer.php
Copy this file and paste in the same path within your x-child theme.
/wp-content/themes/x-child/framework/views/global/_footer.php
Once pasted, open and edit the file. Place the code you were provided before the closing
</body>
tag.It should look something like this:
<?php // ============================================================================= // VIEWS/GLOBAL/_FOOTER.PHP // ----------------------------------------------------------------------------- // Includes the wp_footer() hook and closes out the <body> and <html> tags. // ============================================================================= ?> <?php do_action( 'x_before_site_end' ); ?> </div> <!-- END #top.site --> <?php do_action( 'x_after_site_end' ); ?> <?php wp_footer(); ?> <!– start number replacer –> <script type="text/javascript"><!– vs_account_id = “CA6prVY40swXZgBo"; //–></script> <script type="text/javascript" src="//adtrack.voicestar.com/euinc/number-changer.js"> </script> <!– end ad widget –> </body> </html>
Note: When you copy pasted your code into the forum it looks like it got reformatted. The quotation marks changed, this will cause errors when you edit your file. When pasting code please use the code button above before and after your code.
I have gone in and fixed the quotation marks for you so you can copy paste the code above to replace what’s in your _footer.php file or if you have other customizations in that file, then you can just copy your fixed code below and enter it manually.
<!– start number replacer –> <script type="text/javascript"><!– vs_account_id = “CA6prVY40swXZgBo"; //–></script> <script type="text/javascript" src="//adtrack.voicestar.com/euinc/number-changer.js"> </script> <!– end ad widget –>
Hope this helps – thanks!
January 13, 2016 at 12:51 pm #744649Something happened. I desperately need your help!
It is now saying
Parse error: syntax error, unexpected ‘<‘ in /home/content/p3pnexwpnas03_data02/74/2935174/html/wp-content/themes/x-child/functions.php on line 26My Website is not showing up.
Please help!
January 13, 2016 at 1:18 pm #744682This reply has been marked as private.January 13, 2016 at 4:22 pm #744953Hi there,
Please add or replace the code within /wp-content/themes/x-child/framework/views/global/_footer.php with the code provided above.
The code throws an error because it’s added within /wp-content/themes/x-child/functions.php
And please replace this line of code,
vs_account_id = “CA6prVY40swXZgBo";
with this
vs_account_id = "CA6prVY40swXZgBo";
Thanks!
January 15, 2016 at 12:32 pm #747938Is there anyway you could do this for me?
I am fearful since I lost the site and had to rebuild off an old back up.
If so that would be greatly appreciated and I will send out praise to everyone about how X Theme is the best WordPress theme on the Market!
January 15, 2016 at 8:38 pm #748402Hi there,
Sure, I could help you place the code/file to the correct location. But we can’t support further changes and enhancement. Please provide your FTP login credentials in private reply.
Thanks!
January 19, 2016 at 10:14 pm #754199This reply has been marked as private.January 20, 2016 at 12:17 am #754338Hi,
Thank you for providing your wordpress admin login.
We’ll also need your ftp/cpanel login credentials to be able to help you.
You can get those information from your hosting provider.
Please don’t forget to set your reply as private.
Thanks
January 20, 2016 at 10:55 pm #756312This reply has been marked as private.January 20, 2016 at 11:29 pm #756363Hi there,
I added the changes, please activate your child theme.
add_function('wp_footer', 'ad_track_embed', 999); function ad_track_embed() { ?> <!– start number replacer –> <script type="text/javascript"><!– vs_account_id = "CA6prVY40swXZgBo"; //–></script> <script type="text/javascript" src="//adtrack.voicestar.com/euinc/number-changer.js"> </script> <!– end ad widget –> <?php }
Thanks.
January 21, 2016 at 10:22 am #757074thank you so much.
January 21, 2016 at 10:33 am #757097So i activated my child theme and it took my whole site down again.
I think i need to delete the current child theme because it has a sentax error.Is it possible for you to upload that code one more time so i can activate a fresh childs theme.
January 21, 2016 at 5:25 pm #757813Hi there,
My apologies as the previous code added got something wrong in it that’s why you got a white screen when you activated the child theme.
Please use this code in the child theme’s functions.php instead:
add_filter('wp_footer', 'ad_track_embed', 999); function ad_track_embed() { ?> <!– start number replacer –> <script type="text/javascript"><!– vs_account_id = "CA6prVY40swXZgBo"; //–></script> <script type="text/javascript" src="//adtrack.voicestar.com/euinc/number-changer.js"> </script> <!– end ad widget –> <?php }
Hope this helps.
-
AuthorPosts