• Resolved nicks-n

    (@nicks-n)


    I recently got some documentation for embedding a test.

    It states that i have a div that works as a container for embedding, but i can’t seem to get it to work.

    <!– This is the placeholder that contains the widget. –>
    <div id=”_mwcloudAW”></div>

    <!– Script that loads the widget in the container. –>
    <script src=”https://www.mywellness.com/cloud/<language&gt; /widget/aspiration?&facilityUrl=<facilityUrl>&wSize=<widgetSize>”></script>

    obviously i got the language and facility url and changed it in the url.

    Who can help me where to place the div and script.

Viewing 7 replies - 1 through 7 (of 7 total)
  • There’s no one answer as to where it goes. It could go (literally) anywhere on your site. It also makes it worse because we don’t know your site, what that code is supposed to do, where you want it to go, or where the company/person that gave you that code wants it to go.

    From just that code by itself, it looks like it’s meant to bea widget, so I’d guess that you’d want in in a sidebar? If that’s the case you can add the code to a sidebar.php file, or you can paste it directly into a text widgtet, and it should display.

    Thread Starter nicks-n

    (@nicks-n)

    Thanks for your quick reply! It’s a widget that should display a form. I tried putting it in a text widget like your suggested, but without succes (https://sport-natural.nl/events/move-it/)

    I’d like it to display as content on a page.

    I already tried putting it as a template page (template-blank.php), but also without succes.

    That code doesn’t show up anywhere on your page. If you did put it into a widget, was that widget in the right sidebar to be displayed on your page?

    In the template, how did you set a page to use that template?

    Thread Starter nicks-n

    (@nicks-n)

    Yes it should’ve been.

    I’ve set it up on https://sport-natural.nl/aspirationfinder/ right now in visual composer. It’s visible there in the code, but not on the page.

    Could it be a jquery problem? The documentation says this:

    To integrate the Aspiration wizard widget in your website you need to ensure that jQuery library is referenced in your website.
    You can link jQuery library for example from Google CDN choosing the version that is compatible with your website (https://developers.google.com/speed/libraries/devguide#jquery).

    Then you have to provide a container for the widget and run a script to load the widget into the container. By default the widget is rendered with Technogym look & feel but you can customize it (see How to customize it chapter).

    OK, that does help. ??

    I am seeing that code – but I am also seeing an error message in the developers console area (most browser scan show these tools when you hit F12).

    Basically, your site is using https:// and the content that your widget is trying to load is using https:// and the browser doesn’t like that. The actual error message is:

    Blocked loading mixed active content “https://www.mywellness.com/cloud/nl-NL/widget/aspiration?&facilityUrl=sportnatural&wSize=Large&#8221;

    This is something that you’ll have to go back to the people that supplied you with that code and ask them to change it to work with yur site.

    Thread Starter nicks-n

    (@nicks-n)

    That explains a lot! If this is the issue i can try all sorts of things and not get anywhere XD.

    I’ll get back to you when i get a response!

    Thanks so far!

    Thread Starter nicks-n

    (@nicks-n)

    I asked the company who supplied the code and they set their page to https. Thanks for your quick and great help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Where do i put this div’ is closed to new replies.