Jump to content

[SOLVED] remove hover link to parent category ?


Recommended Posts

to disable parent links just use this:

 {if $node.children|@count > 0}
    	<a>{$node.name|escape:'htmlall':'UTF-8'}</a>
        {else}
        <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
		title="{$node.desc|strip_tags|trim|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a>
        {/if}

instead of 

<a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
		title="{$node.desc|strip_tags|trim|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a>

in category-tree-brach.tpl file

Link to comment
Share on other sites

is it .php or .tpl ? im guessing tpl cos there is no pho files in there.

I tried editing that file it still didnt work.

turned forced compilation on too.

 

whats the difference between the 2 files i got ? the one in themes/default and the on in themes/default/modules/blockcategory ???

 

you also linked to this in my other thread, it wasnt the same thing im referring to. I was referring to the link under the blue bars in the middle column of the page.

I just made the text white so u cant see it.

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

hello

 

my bad, it is .tpl file.

i unbloced your second thread

 

you shouldn't have file: /themes/default/category-tree-branch.tpl if you've got it - it isn't used anywhere.

 

correct file: /themes/default/modules/blockcategories/category-tree-branch.tpl

 

can you show me what you changed in this file? i checked my code that i pasted above and it works well.

Link to comment
Share on other sites

When i do as you instructed, my web site dies and i cant open anything so i put it back to before.

this is my category-tree-branch.tpl

 

I also looked in my original downloaded prestashop files and it has the cat tree branch and others in themes/default/

 

<li {if isset($last) && $last == 'true'}class="last"{/if}>
{if $node.children|@count > 0}
    <a>{$node.name|escape:'htmlall':'UTF-8'}</a>
{else}
    <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
        title="{$node.desc|strip_tags|trim|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a>
    {if $node.children|@count > 0}
        <ul>
        {foreach from=$node.children item=child name=categoryTreeBranch}
            {if $smarty.foreach.categoryTreeBranch.last}
                {include file="$branche_tpl_path" node=$child last='true'}
            {else}
                {include file="$branche_tpl_path" node=$child last='false'}
            {/if}
        {/foreach}
        </ul>
    {/if}
</li>
 

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...