Jump to content

How to customize PERMANENT LINKS block ?


Recommended Posts

Hello Everyone.
I need to customize the permanent links block ( I need 5 icons linked to standard information pages, and remove sitemap and bookmarks ).
I know that I have to edit the 2 permanentblocks .tpl modules and the translation file, but this not seem to be very simple.
Could anyone help step by step ?

Thank you in advance
Sam

Link to comment
Share on other sites

I'm not sure what's difficult about it. Edit modules/blockpermanentlinks-header.tpl, remove the sitemap and bookmark , then add a new for each item you want. For example, add the following to create an about link:

<a href="{$base_dir}content/4-about-us" title="{l s='about' mod='blockpermanentlinks'}">{l s='about' mod='blockpermanentlinks'}



This changes the link in the href and the two 'contact' texts to 'about'. It also changes the ID of the

to make it unique so that you can apply an icon to it. To do that, add the following in the /* top links */ section of css/global.css in your theme's directory (and delete the sitemap and bookmark CSS):

#header_links #header_link_about a { background-image: url('../img/icon/about.gif') }



Then put the about.gif icon in the img/icon directory inside your theme's directory.

  • Like 1
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...