WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Embedding Code and Widget Logic (4 posts)

  1. newzealandnz
    Member
    Posted 1 year ago #

    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://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. newzealandnz
    Member
    Posted 1 year ago #

    Is the widget_content a plugin? if so were do I get that one I can't find it

  4. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.