Support Forums

Support Online : 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

Selcuk Sarioglu

More than a month ago #Permalink
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

Selcuk Sarioglu

More than a month ago #Permalink
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)



Total Accepted Answers: 119
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 113


Total Accepted Answers: 59


Total Accepted Answers: 4
Mohammed Ahmed

Mohammed Ahmed

Total Accepted Answers: 2




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