Category template 1 – sibling categories

Posted in: Newsmag
Post count: 17

Hi,

the category template 1 when it is in a category without subcategories, displays all the categories of the site. Please how can you display nothing when the category has no sub-categories?

In this support topic, Emil G says to replace parent::get_sibling_categories to self::get_sibling_categories.
https://forum.tagdiv.com/topic/sibling-categories/

I changed from parent to self but nothing happens.

The file I’m editing is as follows:
/Newsmag-child/includes/category_templates/td_category_template_1.php

To code:


<?php
echo parent::get_sibling_categories();
echo parent::get_pull_down();
?>

Please how can I do? Do you have any guide about it?

Thanks so much.
Gabriel

Post count: 23312

Hello Gabriel,

Sorry but please notice that clue it’s a bit old and it was given for Newspaper theme, sorry! The code has been changed a lot and it may not work, unfortunately! Please notice that is not a simple customization and involves doing such an additional customization and we cannot provide this kind of services, sorry! If you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you!

Thanks for your understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.