• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Where to Install Facebook Video Code for Aspire Theme

Home › Community Forums › Aspire Theme Support › Where to Install Facebook Video Code for Aspire Theme

  • This topic has 1 reply, 2 voices, and was last updated 5 years ago by Wes.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 2, 2018 at 11:57 am #22375
    ScottVann
    Customer

    I need to add Facebook JavaScript SDK to a .php file. Just need direction on which one it should be installed in.

    This blog post says “If you are comfortable editing theme files, then you can add it in your theme or a child theme by simply editing the header.php file and paste it right after the <body> tag.”

    I’m not seeing a header.php file so I’m assuming it’s just named something else in this instance.

    I’m using the Aspire Theme.

    February 3, 2018 at 9:12 am #22386
    Wes
    Moderator

    There are 2 ways to add code in the Header or Footer using Genesis. (The ways to do this will be the same for Aspire or any Child theme you use since it’s all based on the Genesis Framework. )

    1st: Go to the Genesis Theme Settings page and scroll until you see a section called “Header and Footer scripts”. You can add your code in the Header box. Before you do, check the code to make sure it’s already set up for this.

    The 2nd way it can be done is by adding the code to your functions.php file and manually hooking it into the header. FTP is recommended for this and anytime you make modifications to a PHP file.

    Make sure everything is backed up. Also make sure there is no error in the code when you add it in.

    If you already have the code ready and want me to take a look, just let me know. If all you need to do is copy/paste, I can test it right quick to make sure it won’t cause any errors.

    Let me know if this helps.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework