Jump to content

Banners width


Recommended Posts

Hello, Could someone help me with this. I activated the left column in the default bootstrap theme in prestashop 1.6.0.8 and the banners and facebook block kinda shrunk off to the right. I'm trying to get that area back to full width of page below left column. (see photo below)

 

post-722755-0-85329900-1408136714_thumb.png

 

 

Link to comment
Share on other sites

hello

there where is a blank space there is your left column.

it's not possible without theme modificaitons

it will be necessary to:

 

1) create new hook and associate theme configuration module, and block cms module, and facebook like block with this new hook. after that create hook execute function in theme .tpl file

 

2) move actual modules and their contents (block cms, theme configuration, facebook block) to footer section

Link to comment
Share on other sites

how to create new hook:

Open PphMyAdmin .find your shop database and open it.

in prestashop you need to create one Row in "ps_hook" table. 


first open ps_hook table and Insert new Row and name it for example MyNewHook .


you just need to fill name and title field's.not any other values needed.

 

 

 

then in modules you want to add to this hook add function:

 

public function hookMyNewHook($params){

}

 

with contents to display .tpl files

 

 

 

then, in your theme file add code like:

{hook::exec('MyNewHook')}

 

to execute hooks in any place you want (in your case before footer)

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

how to create new hook:

 

 

then in modules you want to add to this hook add function:

 

public function hookMyNewHook($params){

}

 

with contents to display .tpl files

 

 

 

then, in your theme file add code like:

{hook::exec('MyNewHook')}

 

to execute hooks in any place you want (in your case before footer)

 

i did not understand it well.. i facing same problem too after enable left column

 

I have already insert a new raw call mynewrow and title name also was "mynewrow"

 

now where should i past " public function hookMyNewHook($params){

}??

 

and what is the next step? can you please guide me.. for which folder.. which .tpl files..

 

i need to make the footer banner full length and the facebook block etc.. which module is it ? 

 

Thanks

Link to comment
Share on other sites

if you created hook with name mynewrow you have to use this function in your module:

public function hookmynewrow($params){

}

then you have to use in this function code that you want to execute when script will execute hook.

 

to execude hooks in theme just use:

{hook::exec('mynewrow')}
  • Like 1
Link to comment
Share on other sites

 

if you created hook with name mynewrow you have to use this function in your module:

public function hookmynewrow($params){

}

then you have to use in this function code that you want to execute when script will execute hook.

 

to execude hooks in theme just use:

{hook::exec('mynewrow')}

Hi, Still i did not understand.. may it your explanation is too technical .. i;m not too familiar with code.. but i can add/change etc if you tell me which folder exacly to touch.. edit.. and the pathway to reach the files and folder.. for eg you said i have to execute in theme.. but which file in theme? thanks if you can help..

 

Have a great weekend 

uzzy

Link to comment
Share on other sites

×
×
  • Create New...