{"id":782,"date":"2015-04-27T11:42:41","date_gmt":"2015-04-27T11:42:41","guid":{"rendered":"http:\/\/www.majory-cubizolles.fr\/blog\/?p=782"},"modified":"2017-01-23T18:29:02","modified_gmt":"2017-01-23T18:29:02","slug":"greffer-le-module-bloc-social-dans-displaynav","status":"publish","type":"post","link":"https:\/\/www.majory-cubizolles.fr\/blog\/greffer-le-module-bloc-social-dans-displaynav\/","title":{"rendered":"Greffer le module bloc social dans displayNav |  Astuce Prestashop 1.6"},"content":{"rendered":"<p>Ce tutoriel va vous permettre de greffer le module \u00ab\u00a0bloc social\u00a0\u00bb dans displayNav<\/p>\n<p><span style=\"line-height: 1.714285714; font-size: 1rem;\"><strong><strong>Cette astuce Prestashop est valable pour la version 1.6<\/strong><\/strong><\/span><\/p>\n<p><span style=\"line-height: 1.714285714; font-size: 1rem;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p>On va dans un premier temps\u00a0modifier le fichier\u00a0blocksocial.php<\/p>\n<p>1) Pour cela allez dans modules &gt; blocksocial&gt; blocksocial.php. Tout \u00e0\u00a0la fin du code, juste avant la derni\u00e8re accolade collez le code suivant puis enregistrez.<\/p>\n<pre class=\"lang:default decode:true \">public function hookdisplayNav($params){\r\nreturn $this-&gt;hookDisplayFooter();\r\n}<\/pre>\n<p>2) Dans le back office de prestashop, allez dans\u00a0Modules &gt; Position &gt; Greffer un module (en haut \u00e0 droite). Greffer le module \u00ab\u00a0bloc social\u00a0\u00bb\u00a0sur displayNav. N&rsquo;oubliez pas d&rsquo;enregistrer<\/p>\n<p><a href=\"http:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/04\/Capture-d\u2019\u00e9cran-2015-04-24-\u00e0-21.32.43.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-784\" src=\"http:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/04\/Capture-d\u2019\u00e9cran-2015-04-24-\u00e0-21.32.43.png\" alt=\"Greffer le module bloc social dans displayNav\" width=\"1221\" height=\"208\" \/><\/a><\/p>\n<p><!--more-->&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Si vous retournez sur le front office de votre boutique vous avez cela :<\/p>\n<p><a href=\"http:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/04\/Capture-d\u2019\u00e9cran-2015-04-24-\u00e0-21.34.58.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-785\" src=\"http:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/04\/Capture-d\u2019\u00e9cran-2015-04-24-\u00e0-21.34.58.png\" alt=\"Greffer le module bloc social dans displayNav\" width=\"1365\" height=\"134\" \/><\/a><\/p>\n<p>Bon je vous l&rsquo;accorde c&rsquo;est pas top. On va donc mettre un peu de css.<\/p>\n<p>3) Pour cela, allez dans votre th\u00e8me &gt; css &gt; global.css. Dans ce fichier ins\u00e9rez le code suivant<\/p>\n<pre class=\"lang:default decode:true\">nav #social_block {\r\n\tfloat: right;\r\n\twidth: auto;\r\n\tpadding: 6px 15px 0 15px;\r\n}\r\n\r\nnav #social_block ul {\r\n\tfloat: right;\r\n}\r\n\r\nnav #social_block ul li {\r\n\tfloat: left;\r\n\twidth: 35px;\r\n\ttext-align: center;\r\n}\r\n\r\nnav #social_block ul li a {\r\n\t color: #908f8f;\r\n    display: inline-block;\r\n    font-size: 20px;\r\n\tcolor:#fff\r\n}\r\n\r\nnav #social_block ul li a span {\r\n\tdisplay: none;\r\n}\r\nnav #social_block ul li a:before {\r\n\tdisplay: inline-block;\r\n\tfont-family: \"FontAwesome\";\r\n\tvertical-align: -5px;\r\n}\r\nnav #social_block ul li a:hover {\r\n\tcolor: white;\r\n}\r\nnav #social_block ul li.facebook a:before {\r\n\tcontent: \"\\f09a\";\r\n}\r\nnav #social_block ul li.twitter a:before {\r\n\tcontent: \"\\f099\";\r\n}\r\nnav #social_block ul li.rss a:before {\r\n\tcontent: \"\\f09e\";\r\n}\r\nnav #social_block ul li.youtube a:before {\r\n\tcontent: \"\\f167\";\r\n}\r\nnav #social_block ul li.google-plus a:before {\r\n\tcontent: \"\\f0d5\";\r\n}\r\nnav #social_block ul li.pinterest a:before {\r\n\tcontent: \"\\f0d2\";\r\n}\r\nnav #social_block h4 {\r\n\tdisplay:none\r\n}\r\n<\/pre>\n<p><strong>Voila le r\u00e9sultat :<\/strong><\/p>\n<p><a href=\"http:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/04\/Capture-d\u2019\u00e9cran-2015-04-24-\u00e0-21.46.32.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-786\" src=\"http:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/04\/Capture-d\u2019\u00e9cran-2015-04-24-\u00e0-21.46.32.png\" alt=\"Capture d\u2019\u00e9cran 2015-04-24 \u00e0 21.46.32\" width=\"1338\" height=\"255\" \/><\/a><\/p>\n<!-- Begin Yuzo --><div class='yuzo_related_post style-2'  data-version='5.12.88'><!-- without result --><div class='yuzo_clearfixed yuzo__title yuzo__title'><h2>Articles similaires<\/h2><\/div>\n\t\t\t\t\t\t<div class=\"relatedthumb yuzo-list  \" style=\"\"  >  \n\t\t\t\t\t\t  <a  href=\"https:\/\/www.majory-cubizolles.fr\/blog\/supprimez-champs-objet-formulaire-de-contact-prestashop-1-6\/\" class=\"image-list\" target='_blank' >\n\t\t\t\t\t\t  <div class=\"yuzo-img-wrap \" style=\"width: 185px;height:150px;\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t <div class=\"yuzo-img\" style=\"background:url('https:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2016\/11\/Etape-2-supprimer-objet-400x249.jpg') 50% 50% no-repeat;width: 190px;height:150px;margin-bottom: 5px;background-size:  cover;  \"><\/div>\n\t\t\t\t\t\t  <\/div>\n\t\t\t\t\t\t  <\/a>\n\t\t\t\t\t\t  <a  class=\"link-list yuzo__text--title\" href=\"https:\/\/www.majory-cubizolles.fr\/blog\/supprimez-champs-objet-formulaire-de-contact-prestashop-1-6\/\" style=\"font-size:15px;font-weight:bold;;line-height:23px;\"> Supprimez le champs \u00ab\u00a0objet\u00a0\u00bb du formulaire de contact | Prestashop 1.6  <div class='yuzo_views_post yuzo_icon_views yuzo_icon_views__bottom' style='font-size:13px;'>views 2016<\/div><\/a>\n\t\t\t\t\t\t\t\t<span class=\"yuzo_text\" style=\"font-size:11px;\" >Il est tr\u00e8s important d'avoir un formulaire de contact simple, efficace et ergonomique.\r\n\r\nPour un premier contact, le formulaire que propose Prestashop est tr\u00e8s bien. Le seul champs que je supprimerais est \u00a0le champs \"Objet\". Il vous facilite peut-\u00eatre la t\u00e2che mais il complique celle de votre client.\r\n\r\nSi le client oublie de faire sa s\u00e9lection\u00a0(par d\u00e9faut Service client ou\u00a0Webmaster), Prestasho...<\/span>\n\t\t\t\t\t\t   \n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"relatedthumb yuzo-list  \" style=\"\"  >  \n\t\t\t\t\t\t  <a  href=\"https:\/\/www.majory-cubizolles.fr\/blog\/le-commerce-en-europe-et-aux-etat-unis-en-2014\/\" class=\"image-list\" target='_blank' >\n\t\t\t\t\t\t  <div class=\"yuzo-img-wrap \" style=\"width: 185px;height:150px;\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t <div class=\"yuzo-img\" style=\"background:url('https:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/02\/facebook-e-commerce-dans-le-monde-2014-300x187.jpg') 50% 50% no-repeat;width: 190px;height:150px;margin-bottom: 5px;background-size:  cover;  \"><\/div>\n\t\t\t\t\t\t  <\/div>\n\t\t\t\t\t\t  <\/a>\n\t\t\t\t\t\t  <a  class=\"link-list yuzo__text--title\" href=\"https:\/\/www.majory-cubizolles.fr\/blog\/le-commerce-en-europe-et-aux-etat-unis-en-2014\/\" style=\"font-size:15px;font-weight:bold;;line-height:23px;\"> L\u2019e-commerce en Europe et aux Etat-Unis en 2014  <div class='yuzo_views_post yuzo_icon_views yuzo_icon_views__bottom' style='font-size:13px;'>views 147<\/div><\/a>\n\t\t\t\t\t\t\t\t<span class=\"yuzo_text\" style=\"font-size:11px;\" >Comme l'ann\u00e9e derni\u00e8re,\u00a0RetailMeNot met en avant les r\u00e9sultats de l'e-commerce en Europe et au\u00a0aux Etats-Unis en 2014.\r\n1) Le E-shoppeurs en Europe\r\nComme en 2013, la France\u00a0compte 52% de e-shoppeurs et se positionne en 3\u00e8me position\u00a0derri\u00e8re la Su\u00e8de (70%) et la Grande-Bretagne (66%).\r\n\r\nLes Etats-Unis sont toujours en premi\u00e8re position avec 57% de e-shoppeurs (+2% par rapport \u00e0 2013) \u00a0contre 47%...<\/span>\n\t\t\t\t\t\t   \n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"relatedthumb yuzo-list  \" style=\"\"  >  \n\t\t\t\t\t\t  <a  href=\"https:\/\/www.majory-cubizolles.fr\/blog\/comment-ameliorer-votre-taux-de-transformation\/\" class=\"image-list\" target='_blank' >\n\t\t\t\t\t\t  <div class=\"yuzo-img-wrap \" style=\"width: 185px;height:150px;\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t <div class=\"yuzo-img\" style=\"background:url('https:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2016\/07\/wsi-imageoptim-Capture-d\u2019\u00e9cran-2015-09-06-\u00e0-20.23.35-400x249.jpg') 50% 50% no-repeat;width: 190px;height:150px;margin-bottom: 5px;background-size:  cover;  \"><\/div>\n\t\t\t\t\t\t  <\/div>\n\t\t\t\t\t\t  <\/a>\n\t\t\t\t\t\t  <a  class=\"link-list yuzo__text--title\" href=\"https:\/\/www.majory-cubizolles.fr\/blog\/comment-ameliorer-votre-taux-de-transformation\/\" style=\"font-size:15px;font-weight:bold;;line-height:23px;\"> Comment am\u00e9liorer votre taux de transformation ?  <div class='yuzo_views_post yuzo_icon_views yuzo_icon_views__bottom' style='font-size:13px;'>views 399<\/div><\/a>\n\t\t\t\t\t\t\t\t<span class=\"yuzo_text\" style=\"font-size:11px;\" >Il est \u00e0 noter que 7 clients sur 10 abonnent leur commande en cours de route pour diff\u00e9rentes raisons :\r\n- Des co\u00fbts suppl\u00e9mentaires au moment du paiement,\r\n- L\u2019obligation de cr\u00e9er un compte,\r\n- La difficult\u00e9 \u00e0 renseigner les coordonn\u00e9es sur un smartphone ou une tablette Un processus de commande trop long et\/ou trop complexe ,\r\n- Des messages bloquants non compris par l\u2019internaute ,\r\n- L\u2019inqui\u00e9tud...<\/span>\n\t\t\t\t\t\t   \n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"relatedthumb yuzo-list  \" style=\"\"  >  \n\t\t\t\t\t\t  <a  href=\"https:\/\/www.majory-cubizolles.fr\/blog\/modifier-larriere-plan-de-boutique-prestashop-1-7\/\" class=\"image-list\" target='_blank' >\n\t\t\t\t\t\t  <div class=\"yuzo-img-wrap \" style=\"width: 185px;height:150px;\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t <div class=\"yuzo-img\" style=\"background:url('https:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2017\/05\/bg_prestashop1.7-thumb-400x249.jpg') 50% 50% no-repeat;width: 190px;height:150px;margin-bottom: 5px;background-size:  cover;  \"><\/div>\n\t\t\t\t\t\t  <\/div>\n\t\t\t\t\t\t  <\/a>\n\t\t\t\t\t\t  <a  class=\"link-list yuzo__text--title\" href=\"https:\/\/www.majory-cubizolles.fr\/blog\/modifier-larriere-plan-de-boutique-prestashop-1-7\/\" style=\"font-size:15px;font-weight:bold;;line-height:23px;\"> Modifier l\u2019arri\u00e8re-plan de votre boutique Prestashop 1.7  <div class='yuzo_views_post yuzo_icon_views yuzo_icon_views__bottom' style='font-size:13px;'>views 9712<\/div><\/a>\n\t\t\t\t\t\t\t\t<span class=\"yuzo_text\" style=\"font-size:11px;\" >Dans ce tutorial, nous allons voir comment modifier les couleurs de fond de votre boutique en ligne Prestashop 1.7. Tout se passe \u00e0 l'int\u00e9rieur des codes.\r\n\r\n1) Haut de page\r\n 2) Contenu\r\n 3) Bas de page\r\n\r\n\r\n\r\n------------------------------------------------------------------\r\nA) Etape 1 : \r\nOuvrir le fichier themes.css dans \/themes\/classic\/assets\/css\/theme.css\r\n\r\n\r\nB) Etape 2 : \r\nDans certaines ...<\/span>\n\t\t\t\t\t\t   \n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"relatedthumb yuzo-list  \" style=\"\"  >  \n\t\t\t\t\t\t  <a  href=\"https:\/\/www.majory-cubizolles.fr\/blog\/e-commerce-differences-comportementales\/\" class=\"image-list\" target='_blank' >\n\t\t\t\t\t\t  <div class=\"yuzo-img-wrap \" style=\"width: 185px;height:150px;\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t <div class=\"yuzo-img\" style=\"background:url('https:\/\/www.majory-cubizolles.fr\/blog\/wp-content\/uploads\/2015\/03\/header1-300x187.jpg') 50% 50% no-repeat;width: 190px;height:150px;margin-bottom: 5px;background-size:  cover;  \"><\/div>\n\t\t\t\t\t\t  <\/div>\n\t\t\t\t\t\t  <\/a>\n\t\t\t\t\t\t  <a  class=\"link-list yuzo__text--title\" href=\"https:\/\/www.majory-cubizolles.fr\/blog\/e-commerce-differences-comportementales\/\" style=\"font-size:15px;font-weight:bold;;line-height:23px;\"> E-commerce & diff\u00e9rences comportementales  <div class='yuzo_views_post yuzo_icon_views yuzo_icon_views__bottom' style='font-size:13px;'>views 125<\/div><\/a>\n\t\t\t\t\t\t\t\t<span class=\"yuzo_text\" style=\"font-size:11px;\" >La soci\u00e9t\u00e9 Content Square met en avant les diff\u00e9rences comportementales\u00a0sur les sites e-commerce : hommes vs femmes, gauchers vs droitiers, jeunes\u00a0vs ain\u00e9s....\r\n\r\nA - Homme vs Femme\r\n\r\nPar rapport aux hommes\r\n- les femmes interagissent plus et sont plus rapides,\r\n- elles cliquent 30% plus sur les sites,\r\n- elles affichent 12% de pages en plus,\r\n- elles ont un taux d\u2019activit\u00e9 (temps actif \/ temps d...<\/span>\n\t\t\t\t\t\t   \n\t\t\t\t\t\t<\/div>\n<\/div>  <!-- End Yuzo :) -->","protected":false},"excerpt":{"rendered":"<p>Ce tutoriel va vous permettre de greffer le module \u00ab\u00a0bloc social\u00a0\u00bb dans displayNav Cette astuce Prestashop est valable pour la version 1.6 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; On va dans un premier temps\u00a0modifier le fichier\u00a0blocksocial.php 1) Pour cela allez dans modules &gt; blocksocial&gt; blocksocial.php. Tout \u00e0\u00a0la fin du code, juste avant la derni\u00e8re accolade [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":786,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,11],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/posts\/782"}],"collection":[{"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":0,"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/media\/786"}],"wp:attachment":[{"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.majory-cubizolles.fr\/blog\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}