Mr.Curiosity Posted January 2, 2012 Share Posted January 2, 2012 how do we make "categories" header to be unclickable? see the picture if you dont know what i am referring to. Link to comment Share on other sites More sharing options...
Snade Posted January 2, 2012 Share Posted January 2, 2012 I dont know what theme you use, but I'm sure you can find the code you need in blockcategories.tpl. In the first few lines, probably in a <h4> tag Hope that helps you Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted January 2, 2012 Author Share Posted January 2, 2012 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 More sharing options...
Snade Posted January 2, 2012 Share Posted January 2, 2012 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 More sharing options...
Mr.Curiosity Posted January 2, 2012 Author Share Posted January 2, 2012 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.. Link to comment Share on other sites More sharing options...
Snade Posted January 2, 2012 Share Posted January 2, 2012 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 More sharing options...
Mr.Curiosity Posted January 2, 2012 Author Share Posted January 2, 2012 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 More sharing options...
Snade Posted January 2, 2012 Share Posted January 2, 2012 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 More sharing options...
Recommended Posts