Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

add nth-child for megamenu

Featured Lock Resolved
Hey Guys,

I would like to differentiate the menu entries in different colors. But if I add

.offcanvas-menu, sp-megamenu-parent > li > a:nth-child(2):after {
background-color: red;

it don't work.. do you have an idea for me?

2 Answers

Bildschirmfoto 2018-12-02 um 22.44.38.png

Attachments (1)

  • Bildschirmfoto 2018-12-02 um 22.44.38.png
    Bildschirmfoto 2018-12-02 um 22.44.38.png 215.4 KB
The Solution:
sp-megamenu-parent > li:nth-child(2) > a:after {

There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 208


Total Accepted Answers: 110


Total Accepted Answers: 46
Archange Consulting

Archange Consulting

Total Accepted Answers: 2
Dilruba Tariq

Dilruba Tariq

Total Accepted Answers: 1




Community Users


Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us