How can I change the place of logininfo in bootstrap theme

How can I change the place of logininfo in bootstrap theme

by Heinz Schmolke -
Number of replies: 4

The bootstrap theme is a great theme but I have some problems with changing things. I want place the logininfo-field in the top nav-bar. How can I do this? I have a solution but I think there must be a better one: I added css-code in bootstrap-settings:

.logininfo {display: inline-block; position: fixed; top: -2px; right: 38px; z-index: 1030 !important;}

But why I have to set the z-index to "1030"? Is there a better solution?

Thanks!

Average of ratings: -
In reply to Heinz Schmolke

Re: How can I change the place of logininfo in bootstrap theme

by Mark Pearson -

Heinz,

I don't have a solution but I'd like to add my voice to your query. This is a great theme and knowing how to add to the nav-bar would make it even better.

In reply to Heinz Schmolke

Re: How can I change the place of logininfo in bootstrap theme

by Mary Evans -

Checkout https://github.com/lazydaisy/Moodle-Studio/tree/tiny

This is how I achived that in my bootstrap theme 'Tiny Bootstrap'

First I made a small file that contained the login/logout PHP code (see loginout.php link below)

https://raw.github.com/lazydaisy/Moodle-Studio/tiny/tiny/layout/loginout.php

Then I included this file in the navbar header of the default.php layout file for the theme. That include looks like this...

<?php include('loginout.php'); ?>

(see default.php link below)

https://raw.github.com/lazydaisy/Moodle-Studio/tiny/tiny/layout/default.php

HTH

Mary

In reply to Mary Evans

Re: How can I change the place of logininfo in bootstrap theme

by Mark Pearson -

Brilliant, Mary. You are a maestro with themes!

In reply to Mark Pearson

Re: How can I change the place of logininfo in bootstrap theme

by Mary Evans -

I still struggle with PHP, and Moodle is not easy to tame.