Jump to content

Add Google+ to custom information block?


Recommended Posts

have a question if it is even possible to add a Google+ badge in CMS block information?, next to facebook plugin. Since the Facebook social plugin is standard on the left side, there should surely be nice with the google+ badge on the right side too. 

 

Used the vekia's guide <link> to make a google+ badge via content box which works fine. When I try the same code in CMS block it dosent work. Anybody else besides me pushing more for Google than Facebook, how am I able to put the google code into custom CMS info block?

  • Like 1
Link to comment
Share on other sites

Lovely! Just like how I want it to look like! Thanks for the confirmation. 

 

Vekia. Your knowledge in this is highly appreciated. 

 

waldiPL you are the owner of the page you link to? I see more things that seems very useful, the footer is it a module or custom work?

Link to comment
Share on other sites

no, im not an owner of this website.
i just helped a little there when owner bought several modules from vekia (vekia hired me for this work)
as far as i remember this what you see it's a part of other module named "bfooter"
but you can achieve this particular effect with html box too

personally i created almost everything with this module :D great and useful tool

  • Like 1
Link to comment
Share on other sites

Module seems to be good. but for a beginner like me, I hope it will not create too many headaches. A quick look at the module and I understand that I need to be more comfortable with prestashop coding to use the module at it max. 

 

I do see custom hooks, and what I understand I need to add the line in the *.tpl file but how do I secure which tpl file is it the CMS info block? I certainly do not want to destroy anything in the store's structure (if thats even possible) and how do I know where to put the " {Hook::exec(' " in the *.tpl file. For me its confusing just to see the coding of some *.tpl files.

Link to comment
Share on other sites

hello

you don't have to use custom hooks.

you can achieve it without custom hooks. you can use default hooks in prestashop, in this case you can use displayFooter hooks to achieve particular effect.

 

let me know what exactly you want to add and where, i will prepare code for you :-)

  • Like 1
Link to comment
Share on other sites

hello

you don't have to use custom hooks.

you can achieve it without custom hooks. you can use default hooks in prestashop, in this case you can use displayFooter hooks to achieve particular effect.

 

let me know what exactly you want to add and where, i will prepare code for you :-)

 

 

I like it to look something like this. 

 

b4tac7.jpg

 

Do you need the google code? Regards, thank you for helping me out.

Edited by Karabisht (see edit history)
Link to comment
Share on other sites

ok, so the easiest thing is:

disable these original contents (CUSTOM CMS INFORMATION BLOCK - just disable this module!), and in html block pro module, in dispalyHome hook create two boxes.

first one with code:

<div id="cmsinfo_block">
<div class="col-xs-6"><ul>
<li><em class="icon-truck" id="icon-truck"></em>
<div class="type-text">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet conse ctetur voluptate velit esse cillum dolore eu</p>
</div>
</li>
<li><em class="icon-phone" id="icon-phone"></em>
<div class="type-text">
<h3>Dolor Sit Amet</h3>
<p>Lorem ipsum dolor sit amet conse ctetur voluptate velit esse cillum dolore eu</p>
</div>
</li>
<li><em class="icon-credit-card" id="icon-credit-card"></em>
<div class="type-text">
<h3>Ctetur Voluptate</h3>
<p>Lorem ipsum dolor sit amet conse ctetur voluptate velit esse cillum dolore eu</p>
</div>
</li>
</ul></div>

and second with code:

<div class="col-xs-6">
YOUR GOOGLE BADGE CODE HERE
</div>
</div>

and that's all :-)

  • Like 1
Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...