Siblings category element

Posted in: Newspaper
Post count: 27

Hi!
I created a new category template starting to the Blank Category template in tagDiv Cloud Library.
But the “Siblings category element” shows only 10 subcategories instead of all (20), displaying an arrow for the 10 others.
How can I change this behavior, in order to show all subcategories one beside the other, without arrow?
Should I edit td_category_template.php file?

Thank in advance

Post count: 35449

Hi,

Are you using the siblings shortcode from tagdiv Composer
https://www.screencast.com/t/E4n8hxDAv
https://www.screencast.com/t/p31yNw6T

Thanks.

Post count: 27

Yes, I set the limit to 20, but the page show only 10 items.

Post count: 35449

Hi,

The siblings will show
Here are the categories:
https://www.screencast.com/t/MJXbBtYS
Set the category template as general ( or you can set it jut for some category ) https://www.screencast.com/t/AkjHmRohV
Edit the template https://www.screencast.com/t/kUZ1rgpylw9e make sure that you save the change and refresh the page, also if you have some plugin cache pleas clear all cache
Here is the results->https://www.screencast.com/t/b6S2RVMIb

Thanks.

Post count: 27

OK, the sibling categories work, but the theme stop to display them at some point, because it does not have space to show the missing categories inside the same row.

Instead of wrapping content and continuing to show the categories, it stops and shows the drop down.

I think you can try on you template, https://www.screencast.com/t/b6S2RVMIb, squeezing the width of your row.

How i can avoid this behaviour?

Post count: 35449

Hi,

In order to show all Siblings you’ll need to make some changes in theme file.
If you are up to this, then please go in
wp-content\plugins\td-cloud-library\shortcodes\category\tdb_category_sibling_categories.php
Open the tdb_category_sibling_categories.php file and comment from line 385 to 389
https://www.screencast.com/t/IxM5vJpWd
https://www.screencast.com/t/x9IN6aQA
See the results: https://www.screencast.com/t/HSHZYViQeVw
now edit the template category https://www.screencast.com/t/bj9wufGQxN0

Hope this will help you.

Post count: 27

It works!!!
Thank you very much, Calin!

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