Google +1 Snippet for xWeb V4 SP2
Average Rating:
(3)
(3)
<!--
Download the Snippet and install as described below
-->
Description
Discussions
(1)
|
|
-
-
Written September 02, 2011When I include the JavaScript inside the <head> tag of my master.dwt, I get the swiggly red line under the <snippet> tag that indicates it is not a recognized keyword. I have Web 4 SP2 installed. Is there something special that needs to be do to enable snippets? Thanks.
-
Written September 02, 2011I realize now I needed to do the install first then copy the code from the snippet tab. But I still do not see the Google +1 button in the browser preview.
-
Written September 02, 2011Are you adding both the JavaScript tag inside the <head>..</head> of the page and then the button code inside the page where you need it? See this demo page and look at the source of it to see where the two parts go. http://ew-resou
rce.co.uk/googl eplus1.html -
Written September 14, 2011I have the JavaScript tag inside the <head> of my master.dwt and the button code inside a different page. The demo link you provided is not found.
-
Written September 15, 2011The demo link works for me. Make sure the link is not wrapping, it does above. http://ew-resou
rce.co.uk/googl eplus1.html I'll check it out in a DWT, and page from a DWT. Can you post a link to a test page yourself? -
Written September 15, 2011I'v tested it with the script tag on the DWT and the +1 button on a derived page and it works as expected. Make sure vyou copy all the link below. http://www.ew-r
esource.co.uk/g oogle-plus-one- dwt.html -
Written September 15, 2011I have not published yet, but the code in the DWT starts with: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E
N" "http://www.w3. org/TR/xhtml1/D TD/xhtml1-trans itional.dtd"> <html dir="ltr" xmlns="http://w ww.w3.org/1999/ xhtml"> <head> <meta content="text/h tml; charset=utf-8" http-equiv="Con tent-Type" /> <!-- #BeginEditable "doctitle" --> <title></title> <!-- #EndEditable --> <script type="text/java script" src="http://api s.google.com/js /plusone.js"></ script> Then the code in the derived page immediately follows the first editable paragraph and looks like: <!-- #BeginEditable "content" --> <div style="backgrou nd-color: #88705E;" class="auto-sty le3"> <img alt="" height="333" src="images/Ban ner_small.jpg" width="500" /></div> <h2 class="auto-sty le3">Full Featured Collection and Recovery Software for All Types of Debt<g:plusone size="medium">< /g:plusone> </h2> I do see your demo page now. Thanks. -
Written September 16, 2011OK. If I put your code into a page it works. If you are able to publish your page somewhere I can take a look at why it's not working for you.
-
Written September 16, 2011Alternatively zip the page and send it to me at ihaynesATdata-i
nsite.co.uk. (replace the AT). -
Written September 19, 2011Thanks to your suggestion, I can now see the +1 icon. For others out there, the suggestion was: Go to “Site – Site Settings – Preview” check the box ‘Previewing using website URL’ and then select the ‘For all web pages’ option. This will then use the dev server in xWeb which should let you preview pages with JavaScript normally. Thanks Ian!
-




