Applying CSS to custom menu items in Moove Theme

Applying CSS to custom menu items in Moove Theme

by nolan damon -
Number of replies: 13

Hi all

I want to apply CSS to the custom menu items in Moove theme.  I have Moodle 3.7.3 installed with php 7.2.

I have created menu items but now it sites next to my logo on the left.  I want to move it to the right.

Please help.

Average of ratings: -
In reply to nolan damon

Re: Applying CSS to custom menu items in Moove Theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

You've created menu items in CSS?

What have you written please?  Screenshot?

In reply to Gareth J Barnard

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -
Hi Gareth

Thanks for the swift reply.

No, I haven't created menu items in CSS, I want to apply CSS to menu items within the custommenuitems:
It's currently sitting on the left just next to my logo. I want to move it to the right with CSS: maybe with style="float:right"

Is this possible?
In reply to Gareth J Barnard

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -

Hi Gareth

Herewith the screenshot.

Attachment menu.jpg
In reply to nolan damon

Re: Applying CSS to custom menu items in Moove Theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

So you want to move the menu with CSS?  If so, then better off moving it by editing the PHP.  Thanks for the screen shot, but hard to tell as small and no before / after.

In reply to Gareth J Barnard

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -

Hi Gareth

I've included a more visible image of what I want to achieve. This is the before.  I don't have an after yet.  I don't know where to look for or edit the PHP.  Can you guide me in the right direction, please?

Thank you.

Attachment css.jpg
In reply to nolan damon

Re: Applying CSS to custom menu items in Moove Theme

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Nolan,

Have you tried to move it using float right as you stated earlier.

If not then try it as it might just be what I would have done.

I’m having problems with my PC so I can’t even test it out.
Hope this helps?

Cheers

Mary

 

In reply to Mary Evans

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -
Hi Mary

Thanks for the reply. I have tried this: style="float:right" but it doesn't seem to work. Everything stays in the same place.
In reply to Mary Evans

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -
Hi Mary

This is the steps I followed:

1. Site Administration
2. Appearance
3. Moove
4. Advance Tab
5. style="float:right" paste in Raw SCSS
6. Save

That's it.
In reply to nolan damon

Re: Applying CSS to custom menu items in Moove Theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, edit 'templates/header.mustache' and move 'ml-auto' as follows (before = left and after = right), then do a 'purge all caches':

Attachment Annotation 2019-12-08 232537.jpg
Average of ratings: Useful (2)
In reply to Gareth J Barnard

Re: Applying CSS to custom menu items in Moove Theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
P.S. Not perfect on small devices, but a start in the right direction.
Average of ratings: Useful (1)
In reply to Gareth J Barnard

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -

Hi Gareth

Thank you very much.  I will set it accordingly.

In reply to Gareth J Barnard

Re: Applying CSS to custom menu items in Moove Theme

by nolan damon -
Hi Gareth

Thank you so much. It worked!!!

Regards