Jump to content

[SOLVED] add home link in permanent block was working but no longer


Recommended Posts

Hi,

 

I had a home icon and link in the permanent block in addition to sitemap, etc. and since upgrading to 1.4.4.0 the graphic and link has disappeared.

 

In the permanent links css file I have:

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

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

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

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

 

In the module -> blockpermanentlinks -> blockpermanentlinks.tpl file I have this:

<div id="permanent_links">

<!-- Home -->

<div class="home">

<a href="{$link->getPageLink('index.php')}"><img src="{$img_dir}icon/home.gif" alt="{l s='home' mod='blockpermanentlinks'}" title="{l s='home' mod='blockpermanentlinks'}" /></a> 

<a href="{$link->getPageLink('index.php')}">{l s='home' mod='blockpermanentlinks'}</a>

</div>

 

I am using the home graphic icon in the theme folder.

 

I have emptied the smarty cache and compile folders and used force compile in the admin but it still will not show.

 

What am I missing?

 

Thanks!

Link to comment
Share on other sites

If you have got the module hooked into your header then you will need to make the changes to blockpermanentlinks-header.tpl aswell.

 

This is what I have in my two files

 

  <a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="{l s='Home' mod='blockpermanentlinks'}" title="{l s='Home' mod='blockpermanentlinks'}" /> </a> 
 <a href="{$base_dir}">{l s='Home' mod='blockpermanentlinks'}</a>

 

<ul id="header_links">
<li id="header_link_home"><a href="{$base_dir}" title="{l s='Home' mod='blockpermenentlinks'}">{l s='Home' mod='blockpermanentlinks'}</a></li>

Link to comment
Share on other sites

Thank you!

 

The code looks different but I added this code to the blockpermanentlinks_header.tpl file and now the icon shows up:

 

<li id="header_link_home"><a href="{$link->getPageLink('index.php', true)}" title="{l s='home' mod='blockpermanentlinks'}">{l s='home' mod='blockpermanentlinks'}</a></li>

 

The code in the blockpermanentlinks.tpl file looks like this:

<!-- Home -->

<div class="home">

<a href="{$link->getPageLink('index.php')}"><img src="{$img_dir}icon/home.gif" alt="{l s='home' mod='blockpermanentlinks'}" title="{l s='home' mod='blockpermanentlinks'}" /></a> 

<a href="{$link->getPageLink('index.php')}">{l s='home' mod='blockpermanentlinks'}</a>

</div>

 

I'm not understanding about all these modules being listed in the "Header of pages" position page? I thought they had to be listed there to work. On this site the listings include cms block, cross selling, home text editor, and so forth. What is the purpose of having all these modules listed here?

Link to comment
Share on other sites

  • 1 year later...
Thank you! The code looks different but I added this code to the blockpermanentlinks_header.tpl file and now the icon shows up: The code in the blockpermanentlinks.tpl file looks like this: I'm not understanding about all these modules being listed in the "Header of pages" position page? I thought they had to be listed there to work. On this site the listings include cms block, cross selling, home text editor, and so forth. What is the purpose of having all these modules listed here?
this works great thank you so much!
Link to comment
Share on other sites

×
×
  • Create New...