Jump to content

Hide some categories issue


Recommended Posts

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

Link to comment
Share on other sites

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

The only way I am thinking of is targeting the specific ID within the template. So editing blockcategories, category_tree_branch (theme folder)

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">

See that you have the node.id, that's the category ID, you can use a condition and skip this if you don't want the category

Thank you so much for your reply... I am sorry I am very new to presta shop.. suppose category ID is 18 so I have to wdit like:

 

<li class="category_{$18}{if isset($last) && $last == 'true'} last{/if}">

 

Can you please tell me if that is correct or if you can correct it please?

 

The other think I wanted to ask is tou know when I am editing above code in blockcategories.... can I just past it anywhere on that coding or I have to paste it after certain codings?

 

THANKING YOU IN ADVANCE

Link to comment
Share on other sites

No no, you need to wrap everything withing {if}

 

{if $id != 18}

<li> whatever....

{/if}

Thank you for your reply.

 

I am really new to this, is there anyway you expert or anyone can give me the codings pleaseeeeeee?

 

Thank you

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