-
Author
-
March 25, 2017 at 05:07 #156643okikeireneParticipant
Which page can i place the below code at the theme Editor.
COPY CODE<span class="tag" style="color: #000088"> <script></span><span class="pln" style="color: #000000"> window</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">fbAsyncInit </span><span class="pun" style="color: #666600">=</span> <span class="kwd" style="color: #000088">function</span><span class="pun" style="color: #666600">()</span> <span class="pun" style="color: #666600">{</span><span class="pln" style="color: #000000"> FB</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">init</span><span class="pun" style="color: #666600">({</span><span class="pln" style="color: #000000"> appId </span><span class="pun" style="color: #666600">:</span> <span class="str" style="color: #008800">'1730839743900183'</span><span class="pun" style="color: #666600">,</span><span class="pln" style="color: #000000"> xfbml </span><span class="pun" style="color: #666600">:</span> <span class="kwd" style="color: #000088">true</span><span class="pun" style="color: #666600">,</span><span class="pln" style="color: #000000"> version </span><span class="pun" style="color: #666600">:</span> <span class="str" style="color: #008800">'v2.8'</span> <span class="pun" style="color: #666600">});</span><span class="pln" style="color: #000000"> FB</span><span class="pun" style="color: #666600">.</span><span class="typ" style="color: #660066">AppEvents</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">logPageView</span><span class="pun" style="color: #666600">();</span> <span class="pun" style="color: #666600">};</span> <span class="pun" style="color: #666600">(</span><span class="kwd" style="color: #000088">function</span><span class="pun" style="color: #666600">(</span><span class="pln" style="color: #000000">d</span><span class="pun" style="color: #666600">,</span><span class="pln" style="color: #000000"> s</span><span class="pun" style="color: #666600">,</span><span class="pln" style="color: #000000"> id</span><span class="pun" style="color: #666600">){</span> <span class="kwd" style="color: #000088">var</span><span class="pln" style="color: #000000"> js</span><span class="pun" style="color: #666600">,</span><span class="pln" style="color: #000000"> fjs </span><span class="pun" style="color: #666600">=</span><span class="pln" style="color: #000000"> d</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">getElementsByTagName</span><span class="pun" style="color: #666600">(</span><span class="pln" style="color: #000000">s</span><span class="pun" style="color: #666600">)[</span><span class="lit" style="color: #006666">0</span><span class="pun" style="color: #666600">];</span> <span class="kwd" style="color: #000088">if</span> <span class="pun" style="color: #666600">(</span><span class="pln" style="color: #000000">d</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">getElementById</span><span class="pun" style="color: #666600">(</span><span class="pln" style="color: #000000">id</span><span class="pun" style="color: #666600">))</span> <span class="pun" style="color: #666600">{</span><span class="kwd" style="color: #000088">return</span><span class="pun" style="color: #666600">;}</span><span class="pln" style="color: #000000"> js </span><span class="pun" style="color: #666600">=</span><span class="pln" style="color: #000000"> d</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">createElement</span><span class="pun" style="color: #666600">(</span><span class="pln" style="color: #000000">s</span><span class="pun" style="color: #666600">);</span><span class="pln" style="color: #000000"> js</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">id </span><span class="pun" style="color: #666600">=</span><span class="pln" style="color: #000000"> id</span><span class="pun" style="color: #666600">;</span><span class="pln" style="color: #000000"> js</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">src </span><span class="pun" style="color: #666600">=</span> <span class="str" style="color: #008800">"//connect.facebook.net/en_US/sdk.js"</span><span class="pun" style="color: #666600">;</span><span class="pln" style="color: #000000"> fjs</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">parentNode</span><span class="pun" style="color: #666600">.</span><span class="pln" style="color: #000000">insertBefore</span><span class="pun" style="color: #666600">(</span><span class="pln" style="color: #000000">js</span><span class="pun" style="color: #666600">,</span><span class="pln" style="color: #000000"> fjs</span><span class="pun" style="color: #666600">);</span> <span class="pun" style="color: #666600">}(</span><span class="pln" style="color: #000000">document</span><span class="pun" style="color: #666600">,</span> <span class="str" style="color: #008800">'script'</span><span class="pun" style="color: #666600">,</span> <span class="str" style="color: #008800">'facebook-jssdk'</span><span class="pun" style="color: #666600">));</span> <span class="tag" style="color: #000088"></script></span>
March 27, 2017 at 11:26 #156751LauraModeratorHello, it depends where do you want to place it and what is it. Can you explain a bit more the purpose of the code?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘General questions’ is closed to new topics and replies.