Announcement

Collapse
No announcement yet.

Google +1 (not a query-might help someone else)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google +1 (not a query-might help someone else)

    Hi all.

    Having just put Google +1 on our website I found it disables the ability to select parts of a layout on a page to work on them in code view.

    The answer is the same as Facebook Iframes, use a blockif statement to disable the code in preview mode-just use this:

    [<actinic:variable name="IsPreviewMode" /> == false]

    <glusone size="medium"></glusone>
    <!-- Place this tag after the last plusone tag -->
    <script type="text/javascript">
    window.___gcfg = {lang: 'en-GB'};

    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script></p>

    /block
    Steve Griggs.

    "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



    www.kitchenwareonline.com
    www.microwave-repair.co.uk

    #2
    Thanks Steve,

    Not only has this fixed the problem of selecting a layout on the Design tab, it has brought the Page Preview back up to speed!
    Stuart Robinson

    Robinson Polytunnels

    Comment


      #3
      Yes, that's fixed my problem too (not responding when on network) although it took me a while to track them all down

      Comment

      Working...
      X