Skip to content
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

Position of breadcrumbs #15

Open
Tigger996 opened this issue Dec 2, 2014 · 4 comments
Open

Position of breadcrumbs #15

Tigger996 opened this issue Dec 2, 2014 · 4 comments

Comments

@Tigger996
Copy link

Is it possible to move the breadcrumbs underneath the banner instead of underneath the awesome bar? If so, how?

We have a logo that we use and having the breadcrumbs underneath the awesome bar doesn't look right.

TIA

@eglescout
Copy link

When you say "banner", are you referring to your logo? In other words, do you want this order from top to bottom:

  • Awesome bar
  • logo
  • breadcrumbs

That would take a bit of work. The awesome bar and breadcrumb are contained in the layout/navbar.inc.php file and then included in the different template files in the layout folder. Obviously, any changes you make will be hacks and not safe to upgrade unless you make your own fork.

@pauln
Copy link
Member

pauln commented Dec 2, 2014

It wouldn't be too hard to move the breadcrumbs to below the header/logo, but the breadcrumbs would no longer "stick" to the top of the screen (without something along the lines of a position:sticky polyfill).

As far as making such a customisation persist through Decaf upgrades, you could create a child theme which contains your customisations - though if your child theme has its own layouts, you'd need to test it against each new Decaf version to ensure that it still works.

@Tigger996
Copy link
Author

I've attached a sample of what I achieved so far. I am creating my own child themes, as we offer our staff their choice of colors/logo for their courses.

I'm not sure I've edited the navbar.inc.php / pageheader.inc.php correctly though. As you can see in my screenshot, My heading (course title) cannot be positioned properly.

I am testing this in 2.8 -- which I found that the decaf theme doesn't fully support yet (ie grader report) However, this is why I'm playing around now.

Do you know why the breadcrumbs went underneath the awesomebar? It seems like that's different than every other site out there (not just moodle). Most times the breadcrumbs are underneath the banner/logo.
screenshot-header

@Tigger996
Copy link
Author

I have a quick question that goes along with this post. I've created my theme that inherits decaf. I want to modify the navbar.inc.php and pageheader.inc.php so that my new theme overrides those layouts.
I have created a layout folder in my new theme but it is not loading my changes. Do I have to put something extra in the config.php file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants