Jump to content

Make "categories" To Be Unclickable


Recommended Posts

I have tried this but it is not working. I have tried to refresh too..

 

<!-- Block categories module -->
<div id="categories_block_left" class="block">
<h4><a href="{$blockCategTree.link}">{l s='Categories' mod='blockcategories'}</a></h4>
<div class="block_content">
 <ul class="tree {if $isDhtml}dhtml{/if}">
 {foreach from=$blockCategTree.children item=child name=blockCategTree}
  {if $smarty.foreach.blockCategTree.last}
   {include file="$branche_tpl_path" node=$child last='true'}
  {else}
   {include file="$branche_tpl_path" node=$child}
  {/if}
 {/foreach}
 </ul>
</div>
</div>
<script type="text/javascript">
// <![CDATA[
// we hide the tree only if JavaScript is activated
$('div#categories_block_left ul.dhtml').hide();
// ]]>
</script>
<!-- /Block categories module -->

 

 

at this line :

<h4><a href="{$blockCategTree.link}">{l s='Categories' mod='blockcategories'}</a></h4>

 

i changed it to:

<h4>{l s='Categories' mod='blockcategories'}</a></h4>

Link to comment
Share on other sites

Thats is exactly the code change you need.

 

Now you only have to recompile the template. Go to Preferences->Performance and turn Force Compile to on.

 

If this solves it for you, dont forget to add [sOLVED] in the topic name, and also I'll be happy if you "like" my post, if it was helpfull to you. Thanks :)

Link to comment
Share on other sites

Thats is exactly the code change you need.

 

Now you only have to recompile the template. Go to Preferences->Performance and turn Force Compile to on.

 

If this solves it for you, dont forget to add [sOLVED] in the topic name, and also I'll be happy if you "like" my post, if it was helpfull to you. Thanks :)

 

yes, my Force Compile is always on.. but still not working.. :mellow:

Link to comment
Share on other sites

Then probably you're not editing the right file. blockcategories.tpl can be found in /modules/blockcategories but also, it is possible your theme to have own version of it in /themes/yourtheme/modules/blockcategories

 

Did you find the right file ?

Link to comment
Share on other sites

Then probably you're not editing the right file. blockcategories.tpl can be found in /modules/blockcategories but also, it is possible your theme to have own version of it in /themes/yourtheme/modules/blockcategories

 

Did you find the right file ?

 

I edited the right file which is in /modules/blockcategories/blockcategories.tpl

there is no /themes/yourtheme/modules/blockcategories

Link to comment
Share on other sites

If you've edited the right file, and then recompile it, there is no way

<h4>{l s='Categories' mod='blockcategories'}</h4> 

to output a link. Please check again your code, the module name, folder and tpl file.

Also, give url to inspect the element.

Link to comment
Share on other sites

×
×
  • Create New...