Jump to content

How Do You Remove the Bottom Links?


Recommended Posts

I am brand new to Prestashop and have been messing around with the modules, but I cannot seem to find out how to remove some of the non CMS bottom links from the footer of our page. When I searched the problem I found this:

 

Edit modules/blockvariouslinks/blockvariouslinks.tpl and change the following lines:

  • <a href="{$base_dir}prices-drop.php" title="">{l s='Specials' mod='blockvariouslinks'}
  • <a href="{$base_dir}new-products.php" title="">{l s='New products' mod='blockvariouslinks'}
    to:

  • <a href="{$base_dir}new-products.php" title="">{l s='New products' mod='blockvariouslinks'}

The problem is I cannot find a "blockvariouslinks" folder under modules. This answer was back from 2010 so it is possible it is outdated. I would appreciate any help you could provide.

Link to comment
Share on other sites

Hello James, are you using the default theme or are you using a third party theme?

 

I have a third party theme, and it controls the footer with a module called TMFOOTER. With this module my choices are to uninstall it completely, or edit the footer.tpl directly.

 

In the default theme you have several blocks that control links, a few are

 

CMS Block

 

Link Block

 

Permanent Link Block

 

User info block

 

....and more

 

You'll find them all listed in the front office section of your modules. Some of these modules provide an interface that allow you to add and edit links. Some will only allow you to uninstall, but you can go to the module directory and modify the code.

Link to comment
Share on other sites

You might find this thread helpful:

 

http://www.prestasho...4-footer-links/

 

Thanks hxd, the thread was exactly what I needed. Now one more question. Is there some way I can center these instead of having them all aligned to the left side?

 

Edit: Also I just noticed that now there is an "|" in front of the first link at the bottom. Links look like:

 

| Contact Us | Terms & Conditions | Privacy Policy

 

Did I mess up when I commented the others out?

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

...Now one more question. Is there some way I can center these instead of having them all aligned to the left side?

 

 

Look under your them in the css folder for global.css for the section on footer links. Change the text align to center per below.

 

/* Footer links * Rhapsody Centered Footer */
.footer_links {
list-style-type: none;
text-align: center;
clear: both;
height: 2em;
margin-top: 2em
}

Link to comment
Share on other sites

Look under your them in the css folder for global.css for the section on footer links. Change the text align to center per below.

 

/* Footer links * Rhapsody Centered Footer */
.footer_links {
list-style-type: none;
text-align: center;
clear: both;
height: 2em;
margin-top: 2em
}

 

I found the global.css and when I went to edit it there was no text-align, so I added it in. I applied the changes and it did not change anything on the front page even after I force compiled. I really do not know anything about code, I am just following instructions. Here is exactly what it looks like in case I did something wrong.

 

/* Footer links */
.footer_links {
list-style-type: none;
text-align: center;
clear: both;
height: 2em;
margin-top: 2em
}

Link to comment
Share on other sites

Try this - assuming you have the blockcms module installed, under your theme create a directory /yourtheme/modules/blockcms

 

once you have this created, copy the file from the /prestashop/modules/blockcms/blockcms.tpl to this directory

 

locate the following in the file you copied:

 

 <!-- MODULE Block footer -->
.... a bunch of code here
<!-- /MODULE Block footer -->

 

and add the center code

 

 <!-- MODULE Block footer -->
<center>
.... a bunch of code here
</center>
<!-- /MODULE Block footer -->

 

Note that this approach means if the module is updated in the core, it won't overwrite your changes for that theme.

Edited by Rhapsody (see edit history)
  • Like 1
Link to comment
Share on other sites

Thanks Rhapsody, I got it! Any idea on what I can do to fix this other issue?

 

Edit: Also I just noticed that now there is an "|" in front of the first link at the bottom. Links look like:

 

| Contact Us | Terms & Conditions | Privacy Policy

 

Did I mess up when I commented the others out?

Link to comment
Share on other sites

In the same file which you used to remove the links (blockcms.tpl) change the value for the class attribute in the <li> tag for the link that you want to be the first one from item to first_item. For example, if the Contact us link is the first one, change the code from this:

 

<li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>

 

into this:

<li class="first_item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>

 

Don't forget to enable the force compile option from the back office, so that you can see the change when you refresh the frontend.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...