.post-body:first-letter { float:left; color: #333333; font-size:100px; font-family:none; line-height:80px; padding-top:1px; padding-right:5px; } font-style: italic; } span.letracapital{ float: left; font-size: 40px; line-height: 35px; /* Dobla el alto de linea menos 1 pixel */ font-family: Georgia, "Times New Roman", Times, serif; color: #2583ad; /* Azul */ padding-right: 5px; } -->

Recent Posts

Añadir widget caja de Facebook

30 oct 2019
Hoy vamos a mostraros como podemos insertar en nuestro blog o página web,
Para ello solo tenemos que revisar que tengamos instalado en nuestra página la librería de JQuery

Una vez visto esto nos vamos a Diseño > Insertar un gadget > HTML- JavaScrip

 y pegamos este código







VER CÓDIGO


<!-- facebook like box starts --> <!-- popup box stylings --> <style type="text/css"> #fb-back { display: none; background: rgba(0,0,0,0.8); width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 99999;} #fb-exit { width: 100%; height: 100%; } .fb-box-inner { width:300px; position: relative; display:block; padding: 20px 0px 0px; margin:0 auto; text-align:center; } #fb-close { cursor: pointer; position: absolute; top: 5px; right: 5px; font-size: 18px; font-weight:700; color: #000; z-index: 99999; display:inline-block; line-height: 18px; height:18px;width: 18px; } #fb-close:hover { color:#06c; } #fb-box { min-width: 340px; min-height: 360px; position: absolute; top: 50%; left: 50%; margin: -220px 0 0 -170px; -webkit-box-shadow: 0px 0px 16px #000; -moz-box-shadow: 0px 0px 16px #000; box-shadow: 0px 0px 16px #000; -webkit-border-radius: 8px;-moz-border-radius: 8px; border-radius: 8px; background: #fff; /* pop up box bg color */ border-bottom: 40px solid #f0f0f0; /* pop up bottom border color/size */ } .fb-box-inner h3 { line-height: 1; margin:0 auto; text-transform:none;letter-spacing:none; font-size: 23px!important; /* header size */ color:#06c!important; /* header color */ } .fb-box-inner p { line-height: 1; margin:0 auto 20px;text-transform:none;letter-spacing:none; font-size: 13px!important; /* header size */ color:#333!important; /* text color */ } a.fb-link { position:relative;margin: 0 auto; display: block; text-align:center; color: #333; /* link color */ bottom: -30px; } #fb-box h3,#fb-box p, a.fb-link { max-width:290px; padding:0; } </style> <!-- facebook plugin --> <div id='fb-back'> <div id="fb-exit"> </div> <div id='fb-box'> <div class="fb-box-inner"> <div id="fb-close">X</div> <!-- edit your popup header text here --> <h3>Like This Template?</h3> <!-- edit your supporting text here --> <p>Show your Support. Become a <b>FAN!</b></p> <!-- edit your fb name below --> <iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/Irsah-Indesigns&width=290&height=275&colorscheme=light&show_faces=true&border_color=%23ffffff&stream=false&header=false'style='border: 0 none; overflow: hidden; width: 290px; height: 270px;text-align:center;margin:0 auto;'></iframe> <!-- edit your supporting link here --> <a class="fb-link" href="//YOUR_BLOG_NAME.blogspot.com">Contact Us</a> </div> </div> </div> <!-- popup plug-in snippet --> <script type='text/javascript'> //<![CDATA[ //grab user's browser info and calculates/saves first visit jQuery.cookie = function (key, value, options) { if (arguments.length > 1 && String(value) !== "[object Object]") { options = jQuery.extend({}, options); if (value === null || value === undefined) { options.expires = -1; } if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setDate(t.getDate() + days); } value = String(value); return (document.cookie = [encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : ''].join('')); } options = value || {}; var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; }; // the pop up actions $(function ($) { if ($.cookie('popup_fb') != 'yes') { $('#fb-back').delay(400).fadeIn("slow"); // options slow or fast $('#fb-close, #fb-exit').click(function () { $('#fb-back').stop().fadeOut("slow"); // options slow or fast }); } //initiate popup function by setting up the cookie expiring time $.cookie('popup_fb', 'yes', { path: '/', expires: 3 }); }); //]]> </script> <!-- facebook like box ends -->





Cambiamos lo marcado en rojo por la URl de tu blog
Guardamos y listo.

No hay comentarios:

Publicar un comentario

Deja tu comentario y en breve te contestaremos