Where to Install Facebook Video Code for Aspire Theme

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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.

      #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.

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