Posts made by Kristina Schneider

So I've been searching through forums and all over the internet to see if i can find instructions on how to write the CSS code to add it to my HTML block. I'm not having much luck.

When configuring my HTML Block, the contextual help for Additional CSS classes says: 

The purpose of this configuration is to aid with theming by helping distinguish HTML blocks from each other. Any CSS classes entered here (space delimited) will be appended to the block's default classes.


So I did an Inspect Element with Google Chrome to play with the block and I discovered that the classe I wanted to change was .block {background-color: #d9edf7; border-color: #072D53;}. Naturally, I entered this and nothing happened. 

So then I went looking in the MoodleDocs pertaining to HTML Blocks  where it says:

To aid with styling the block, an administrator can, from Administration > Site administration > Plugins > Blocks > HTML, toggle the ability to allow additional CSS classes to be set in individual block instances. If it is enabled, a field appears at the bottom of HTML block instance's configuration forms:

additionalcssclasses.png

Please note that if additional CSS classes have been added and the administration setting is then disabled, the form settings are saved in the database and will reappear if this is re-enabled.

I confirm that the administration setting is enabled. 


I'm thinking at this time that I'm not using the right CSS syntax for some odd reason (but it worked with Inspect Element). There doesn't seem to be any resources on how to write the syntax. 

Can anyone help please?

Thanks

Kristina



Average of ratings: -

Hi Richard,


I mean to write back earlier to say thanks. I had to shelve this project for a while, but I'm back at it now. I ended up just completely duplicating the clean theme instead of using a child theme, as after hours of trying, I couldn't get a logo to show up. All seems to be working well. 


Thanks again for the help!

K.

Hi Richard,

Thanks for your reply. Do you know of a good tutorial on how to create a child theme in Moodle? I've found a few tutorials online, but I'm always a little weary. This one seems to be referenced a few times, but then the author says he's not a fan of Moodle: http://peter.upfold.org.uk/blog/2013/11/30/creating-a-custom-child-theme-in-moodle-2-6/ so I'm taking him with a grain of salt. Since you seem to know what your doing, can you confirm is this is the way to do it?


Kristina

I was wondering what is the safe way of running two or more instances of the same theme. Essentially, we would like to run the same theme throughout our site, but would like to have different instances of it with different colour schemes and logos for different course categories. 


We have the "force category theme option on, but we only seem to be able to have one instance of each theme. Would anyone know a safe workaround? FYI, we're running Moodle2.8.5+ (Build: 20150421) 


Thanks in advance! 

K.

Average of ratings: -