CTANZ / moodle-theme_decaf

Moodle 2 theme - decaf
https://github.com/leizhang/moodle-theme_decaf/wiki/
17 stars 17 forks source link

Position of breadcrumbs #15

Open Tigger996 opened 9 years ago

Tigger996 commented 9 years ago

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 commented 9 years ago

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

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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?