Jump to content

Moving Block Tags to footer


Recommended Posts

Hi

 

I have been trying to move the Tags Block from head location to footer.

 

First, I tried to change the module hooks, but this wasn't possible.

post-316405-0-95809400-1376593075_thumb.png

 

Than I have been looking in the support forum and didn't find something similar, so I Uninstall the module and than edited the 'blocktags.php`:

 

 function install()
{
 if (parent::install() == false
|| $this->registerHook('footer') == false
|| Configuration::updateValue('BLOCKTAGS_NBR', 20) == false)
  return false;
 return true;
}

 

After this step, I installed the module and the hook worked.

 

The problem was that the module didn't appear in the footer :huh: :huh: :huh:

 

Did I missed something?

 

Help :lol:

Share this post


Link to post
Share on other sites

Hi Vekia, thanks for your respond!

 

I did this in `blocktags.php`:

 

 function install()
{
 if (parent::install() == false
|| $this->registerHook('footer') == false
|| Configuration::updateValue('BLOCKTAGS_NBR', 20) == false)
  return false;
 return true;
}
function hookFooter($params)
{
return $this->hookLeftColumn($params);
}

 

It did 90% of the work: Picture .

 

How can I remove the black background and move the Tags Block to the Left Side of the Footer?

 

Appreciate in advanced.. :)

Share this post


Link to post
Share on other sites

now everything depends on css styles for this block.

You have to edit styles for it.

+ change position in the modules > positions tab

  1. search for "displayFooter" modules list
  2. move tags block module to the top of the list

Share this post


Link to post
Share on other sites

now everything depends on css styles for this block.

You have to edit styles for it.

+ change position in the modules > positions tab

  1. search for "displayFooter" modules list
  2. move tags block module to the top of the list

 

Thanks again Vekia,

 

I'll will edit the CSS - can you direct me please where is it located? - its the original default theme of prestashop, couldn't find in global.css or in the module blocktags.css - its only the text inside the module, not the title and background title of the module.

 

I moved the tags module before,it won't change the location of the block in the footer - Picture perhaps there is another code to edit?

 

The picture I added in the last post (Picture) Is based on the module location in "displayFooter". It was already in the right location.

 

How can I move the module the left side of the footer?

Edited by Neapix (see edit history)

Share this post


Link to post
Share on other sites

okay

 

thanks

 

open the module .tpl file and add to main <div> block of this module this inline style="" tag:

display: inline-block;
float: left;
width: 185px;
position: relative;
top: 10px;
padding: 5px;

Share this post


Link to post
Share on other sites

I believe I did something incorrect.

 

For now I decided to uninstall the module.

 

Can you guide me how to center the 4 columns in the footer?

 

Vekia, very appreciate your help and patience.

Share this post


Link to post
Share on other sites

  • 3 weeks later...
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More