Title: Embedding Code  and Widget Logic
Last modified: August 20, 2016

---

# Embedding Code and Widget Logic

 *  [newzealandnz](https://wordpress.org/support/users/newzealandnz/)
 * (@newzealandnz)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/embedding-code-and-widget-logic/)
 * Hello Team
 * I was hoping that the “Widget Logic” plugin would help me pull the below code
   into a page or post however can not seem to get it working! anyone good at offering
   me a tip on if this could/should work?
 * I have half a brain with this kind of stuff however would be nice to if someone
   with a full brain could help me 😉 a little.
 *     ```
       <div id="fitnessbuilder-private-label-embed">
       	<script>
       		<!-- embed with your api key -->
       		fitnessBuilderPrivateLabel.embed('e53ee4efa1a4c6fb6bde125644462988');
       	</script>
       </div>
       ```
   
 * ______________________________
 * Embedding on Your Website
 * We’ve made embedding the FitnessBuilder website as easy as possible to your website.
   To embed it follow these 2 easy steps:
 * 1. Include the javascript in the head area of your html page.
 * The head area is traditionally on the top of a HTML page, between the <html> 
   tags:
 * ————
 *     ```
       <html>
         <head>
           <link rel="stylesheet" type="text/css" href="https://www.fitnessbuilder.com/pl_embed/history/history.css" />
           <script src="https://www.fitnessbuilder.com/pl_embed/history/history.js" type="text/javascript" ></script>
           <script src="https://www.fitnessbuilder.com/pl_embed/private_label_helper.js" type="text/javascript"></script>
         </head>
         <body>
           <!-- your body here -->
         </body>
       </html>
       ```
   
 * ———————
 * 2. Place a div on your webpage and call the embed javascript.
 * Find where you want to place FitnessBuilder on your page and then call the embed
   code:
 * ———————
 *     ```
       <div id="fitnessbuilder-private-label-embed">
       	<script>
       		<!-- embed with your api key -->
       		fitnessBuilderPrivateLabel.embed('e53ee4efa1a4c6fb6bde125644462988');
       	</script>
       </div>
       ```
   
 * ————————
 * This is how far I have got so far [http://www.ifitsolutions.co.nz/?page_id=8](http://www.ifitsolutions.co.nz/?page_id=8)
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/embedding-code-and-widget-logic/#post-3245793)
 * I think you need to put this into your theme (1 in the head, and 2 wherever is
   appropriate)
 * widget logic is not the obvious way to do 2 – but you could using the widget_content
   filter get it into a specific widget
 *  Thread Starter [newzealandnz](https://wordpress.org/support/users/newzealandnz/)
 * (@newzealandnz)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/embedding-code-and-widget-logic/#post-3245803)
 * Is the widget_content a plugin? if so were do I get that one I can’t find it
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/embedding-code-and-widget-logic/#post-3245810)
 * it’s a small part of Widget Logic – there is some basic info on the other_notes
   page…
 * [http://wordpress.org/extend/plugins/widget-logic/other_notes/](http://wordpress.org/extend/plugins/widget-logic/other_notes/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Embedding Code and Widget Logic’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic_c8dde5.svg)
 * [Widget Logic](https://wordpress.org/plugins/widget-logic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-logic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/embedding-code-and-widget-logic/#post-3245810)
 * Status: not resolved