Change Group Title Active Color - Question | JoomShaper

Change Group Title Active Color

PD

Peter Dowse

Template 2 years ago

Hi Guys,

Using the Sphere template and I would like to change the colour of active sp-group-title however it appears as though this class isn't allocated to these menu items.

How would I go about changing these menu item active colours? Website address is https://usng02.directrouter.com/~wwmvqgmg/

0
27 Answers
PD
Peter Dowse
Accepted Answer
1 year ago #158248

I have found a work around to this issue - I've added the following code to my custom CSS

[aria-current="page"] {
  /* Your styles here */
}

and this has styled that 'active' menu item that's been given the sp-group-title class but not allocated as 'active'.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 year ago #158253

Thanks for sharing.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131271

Hi

Thanks for contacting us. You can use this custom CSS


.sp-megamenu-parent>li.active>a{
  color:red !important;
}
.sp-megamenu-parent>li:after {
    background: red !important;
}

Go to system--> https://prnt.sc/tDbSUJh6LiGu --> Default template-->Template options--> https://prnt.sc/A5nlsBvCQsqs And add your CSS there.

-Regards.

0
PD
Peter Dowse
Accepted Answer
2 years ago #131273

That's great and thankyou however, that changes the main menu items.

Apologies - I should have specified that I require the dropdown menus to be a different colour.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131330

Hi

Use this CSS for dropdown menu color

.sp-megamenu-parent .sp-dropdown li.sp-menu-item>a {
    color: blue !important;
}
.sp-megamenu-parent .sp-mega-group>li>a {
    color: #2a7ea1!important;

}
0
PD
Peter Dowse
Accepted Answer
2 years ago #131443

Again - I appreciate this answer however, this is for the general menu items, not the active menu.

I'm looking for a way to change the colour of the 'active' menu items in the dropdown.

I've tried several variations of adding :active and .current to the CSS classes, but nothing seems to want to work.

See this image for further explanation

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131483

Did you try this option?

https://prnt.sc/N5do42dCfp5O

0
PD
Peter Dowse
Accepted Answer
2 years ago #131503

Yes - I have the HEX code in there - but unfortunately the system isn't picking this up.

I believe this solution works for general drop down menus as it adds the class "sp-menu-item current-item active" to them, however these are Menu item headers using the mega menu structure, so the class is "item-180 menu_item item-header" - Hence why there seems to be no way to make the active colour work.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131594

Try this CSS in your custom.css file

.sp-megamenu-parent .sp-mega-group>li>a:active {
    color: #3daf2c !important;
}
0
PD
Peter Dowse
Accepted Answer
2 years ago #131596

I've now added this and unfortunately this doesn't work :-(

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131605

Clear your joomla and browser cache then check again.

0
PD
Peter Dowse
Accepted Answer
2 years ago #131609

Done - tested and still not working.

Usually an active menu will have classes (like active) added to it when clicked. There's no class added to Menu item headers using the mega menu structure to differentiate them as active, therefore targeting them with any :active CSS, I can't see working.

Any other ideas or is this something the Dev's will need to update in thye next round of template updates?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131639

I need to inform my team, allow me some time please.

0
PD
Peter Dowse
Accepted Answer
2 years ago #131642

Ok - thank you. Apprecite you looking into it further.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #131644

Thanks, allow me some time please, I have to talk with my team.

0
PD
Peter Dowse
Accepted Answer
2 years ago #133110

Hi Guys - any word on this? It's been over a week and no response?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #133191

I need to inform them again, allow me some time please.

0
PD
Peter Dowse
Accepted Answer
2 years ago #133254

So is this a development issue that needs to be fixed with a template update, or are you able to provide a file replacement to solve the issue?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #133343

Give me your super admin access please.

0
PD
Peter Dowse
Accepted Answer
2 years ago #133455

Have added super admin details below.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #133471

Now check please, I have used this css

.sp-megamenu-parent .sp-mega-group>li>a:hover{
  color:orange !important;
}

.sp-megamenu-parent .sp-mega-group>li>a{
   color:orange !important;
}
0
PD
Peter Dowse
Accepted Answer
2 years ago #133473

Please guys - can you read the requests properly - ACTIVE colour.

You've added CSS to the hover and a href of the menu item.

I've tried to be very clear about changing the ACTIVE colour of the menu item headers. I've even outlined the issue that menu item headers do not add the active class in the Sphere template.

I don't see how any CSS you try will work unless there's a different class added to active menu items?

This is a development issue with the template (or possibly the helix system if that's running the menu module) - not adding the active class to menu item headers.

Here's the Active class in a normal menu item.

Here's NO Active class in a menu item header.

Please get this fixed.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #133571

Please first remove these two css from your custom.css file

https://we.tl/t-ASzpVIVTvF

Please remove line no 114 and 109

And then set your active color from preset and then clear your Joomla and browser cache then check again.

0
PD
Peter Dowse
Accepted Answer
2 years ago #133622

That didn't work.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #133697

Could you please create a new forum post about it?

0
PD
Peter Dowse
Accepted Answer
2 years ago #133788

That makes no sense? I've articulated very clearly what the issue is.

Can't you simply add this to your Fix List for the Dev's on their next round of updates?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #133792

Ok I will add it in our list.

0