-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selected menu item #168
Comments
Are you talking about Getting the CSS right for all the different menu items was tricky business, as far as I recall. We probably ought to start using something like LESS or SASS in the future to make it easier to change color schemes and the like. |
i believe what your looking for is this section of the code: <!DOCTYPE html>
<html lang="en">
<?php
echo renderAccountPageHeader(array("#SITE_ROOT#" => SITE_ROOT, "#SITE_TITLE#" => SITE_TITLE, "#PAGE_TITLE#" => "Dashboard"));
?>
<body>
<div id="wrapper">
<!-- Sidebar -->
<?php
echo renderMenu("dashboard");
?> You will need to change the dashboard part to what ever your page names are |
Thanks, your 2. answer was great! I have one point to add. The name you give for the variable "renderMenu" has to be add in the database, table "uf_nav", column "class-name" for the respective site. Otherwise the selected menu item is not colored. |
Yup, thanks. We will add this to the documentation. |
Alright, created a guide here: https://github.com/alexweissman/UserFrosting/wiki/Adding-a-navigation-menu-item |
Hello,
which code is responsible, that the selected menu item is getting another background-color? I duplicated the dashboard-page to create my own pages. But now every menu item of my own pages is changing the background-color, when I choose one of them.
I am sorry, I hope you guys understand what I am talking about.
Thank you in advance!
The text was updated successfully, but these errors were encountered: