Jump to content

[SOLVED] Remove link on Information cms block in left column


Recommended Posts

Hi,

 

I would like to remove the link on the information header in the left column which shows your cms pages.

It currently links to /info/home/ which only shows the pages in "Home", and I don't need that at all.

 

In modules/blockcms/blockcms.tpl I found:

<h4 class="title_block"><a href="{$cms_title.category_link}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a></h4>

Can I freely remove the link (a href="...)? Or do I have to do something else in order to remove it from linking to that other page?

 

All help is greatly appreciated!

 

Kind regards,

MGLimhamn

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

Thanks for the answer vekia. I found blockcms.tpl in my theme folder as well. Do I have to edit both files or is it enough with the theme file?

 

By the way, I found out that there <p> tag instead of a <h4> tag in the theme file:

<p class="title_block"><a href="{$cms_title.category_link}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a></p>

So I suppose that the modules/blockcms/blockcms.tpl file isn't used, because on the website, the <p> tag is used:

<div id="informations_block_left_1" class="block informations_block_left">
<p class="title_block">
<a href="http://test.test/info/home/">Information</a>
</p>

Edit: it worked when I removed <a href="{$cms_title.category_link}"></a> from the themes/YOUR_THEME/modules/blockcms/blockcms.tpl.

 

Thanks a lot vekia! Always helping out, it's greatly appreciated! I'll mark it as solved! :)

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

×
×
  • Create New...