Notifications
Clear all

wpForo 1.x.x Why my main menu css not working in main Forum page?

9 Posts
4 Users
0 Likes
786 Views
rishx
Posts: 5
Topic starter
(@rishx)
Active Member
Joined: 2 years ago

Dear team, kindly help me to resolve the issue. I have tried different methods to override the CSS but it won't worked even I have tried in the custom CSS bar in style section.. you can visit my site to check the issue. https://thexchip.com/haga/

however, the CSS is working fine in other pages such as log in or Register page. https://thexchip.com/haga/?foro=signup

below here I am mentioning the CSS code.

#top-menu li.current-menu-item > a {
background: #31cfc0 !important; / CHANGES THE BACKGROUND COLOR OF THE CURRENT PAGE LINK /
}

8 Replies
Alvina
Posts: 1872
Moderator
(@alvina)
Member
Joined: 3 years ago

Hi @rishx,

Please try to put the code in the top admin bar > Customization > Additional CSS section and check again.

Reply
rishx
Posts: 5
Topic starter
(@rishx)
Active Member
Joined: 2 years ago

The code is already mentioned in the additional css.

Reply
2 Replies
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 827

@rishx

ask the author of the Divi WP-Theme
your menu item (haga) has no "current-menu-item" class if it active

haga "aktiv"


<li id="menu-item-890" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-890"><a href="https://thexchip.com/haga/">haga</a></li>

About Us "aktiv"



<li id="menu-item-649" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-619 current_page_item menu-item-649"><a href="https://thexchip.com/czczc/" aria-current="page">About Us</a></li>
Reply
rishx
(@rishx)
Joined: 2 years ago

Active Member
Posts: 5

@tutrix Thanks for the suggestion. Could you share with me any tutorial so that I can fix it by myself? Divi customer services have not responded to my query ticket.

Reply
Robert
Posts: 9912
Admin
(@robert)
Support Team
Joined: 7 years ago

Hi @rishx,

The problem is very easy to fix if you use correct menu. Your forum home page is this:

https://thexchip.com/community/

Why you use this page?

https://thexchip.com/haga/

If you configure the menu for the /community/ page it'll work automatically.

Or you should create a new page with /haga/ slug and then delete the /community/ page.

Reply
3 Replies
rishx
(@rishx)
Joined: 2 years ago

Active Member
Posts: 5

Dear  @robert, still the issue has resolved.

Reply
rishx
(@rishx)
Joined: 2 years ago

Active Member
Posts: 5
Robert
Admin
(@robert)
Joined: 7 years ago

Support Team
Posts: 9912

@rishx,

Very strange. It seems this is the theme issue.

BTW, do you have a page with "/community/" slug (url path)? Please edit your forum page and check the "Slug". What is your forum page slug? I mean the page where the [wpforo] shortcode is inserted.

Reply