Show category in block

Posted in: Newspaper
Post count: 66

What should I do to show the category in block like this?
http://prntscr.com/4pildn

Post count: 6600

Hi,

Replace the content of the td_module_9.php file: http://screencast.com/t/EQ5cxoQO1x with this code: http://pastebin.com/uUYdaNL6
Should look like this: http://screencast.com/t/JpxysdaFfa

Thanks

Post count: 66

thank you for your great support Lucian

Post count: 66

Hi Lucian,

I recognized that category links are empty. Links go to /#.

Can you please send a new code for module 8?

Post count: 6600

Hi,

Use this for module 8: http://pastebin.com/9RhERUZ9

Thanks

Post count: 66

Hi Lucian,

Sorry to bother you again,

I want to show the primary category like you send me at the first time.

Now it shows all categories.

Would you please modify the code again?

Thank you.

Post count: 66

I want to show only one category(primary category) in mod2 and mod8.
Would you please help?

Post count: 6600

Hi,

You can use the code for the module 8 file that I gave you and use css to hide the others categories, leaving just the first, like this:
ex: http://screencast.com/t/MZ6RVToy
result: http://screencast.com/t/q53qS8jpvB

Use this css:

.td_mod8 .meta-info .td-category li:nth-child(2) a, .td_mod8 .meta-info .td-category li:nth-child(3) a, .td_mod8 .meta-info .td-category li:nth-child(4) a, .td_mod8 .meta-info .td-category li:nth-child(5) a, .td_mod8 .meta-info .td-category li:nth-child(6) a, .td_mod8 .meta-info .td-category li:nth-child(7) a {
display: none;
}

Thanks

  • This reply was modified 11 years by Lucian.
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.