

- #Moodle style and javascript in plain text editor how to#
- #Moodle style and javascript in plain text editor full#
- #Moodle style and javascript in plain text editor download#
#Moodle style and javascript in plain text editor download#
What you get in the download is a couple of. Yes I’ve been naughty and let the browser remember the site admin password… panic over it’s only my local Wampserver 😉 Note: make sure your site is in Theme Designer mode or remember to Clear Theme Caches after updating the file structure and config.php on your theme or your changes won’t take effect! As always test, test and test again on a dev server before you put anything like this on your main site…

However since playing with the new aardvark release a couple of days ago I decided to give it a try… the results are rather pleasing 🙂 Having seen a few websites that employ a sliding banner rotator I wondered if the same could be done in Moodle, intially leaving it as something I’d get someone else to do to save time. Problem is we still need to provide an area for notifications of new courses, events etc of which there can be 4-5 at a time.
#Moodle style and javascript in plain text editor how to#
In the Moodle editor, you can now replace line 4 (the code for the "Twitter bird" icon) with the code for the new icon.įor a more detailed example on how to add a Font Awesome icon please read the section "Styling your site" > "Using Font Awesome" in this documentation.Since using Moodle as our primary website one of the things I’ve been asked for a lot is to tidy up our front page and make it a bit less “blocky”. So to change the icon, you will have to change this line.Ĭlick on the desired icon and the code line for this icon will show up. In the example, you will find in line 4 the following code: Font Awesome is designed to be used with inline elements like

The icons are embedded via the Font Awesome icon font. Also, deleting the button's description will remove the entire button.Įditing the icons: To do this, you have to to switch the edtor to HTML/code view again. If the cursor is within the button, you can also click on the "link" icon of the editor to change the reference of the hyperlink. The order of priority may also be specified here.Įditing the buttons and links: You can place the cursor directly into the button to change the button's description. To change the default editor for Moodle 2.7 to current go to "Administration" > "Site administration" > "Plugins" > "Text editors" > "Manage editors". To download Atto text editor for Moodle 2.5 or Moodle 2.6: Atto is a javascript text editor built specifically for Moodle and it is the default text editor in Moodle from 2.7 onwards. In both cases, I recommend switching to the Atto editor. If you don't see a correct preview of the icon boxes in the editor, your are either working with a Moodle version prior to 2.7 or you have the TinyMCE editor as your default editor. In the preview of the editor you should now see the icon boxes.Įditing the text: This is the easiest part! You can change the text directly in the editor. Here, insert the HTML from step one and close the HTML/code view. Here, select "label" and then click the "Add" button, or simply double-click on the resource name.įirst, you have to switch the edtor to HTML/code view (see also: ).

Then, click "Add an activity or resource" to open the new activity chooser. To add an activity or resource to a course or to the frontpage you alway have to turn editing on by clicking the button top right or the link in "Administration" > "Course administration".
#Moodle style and javascript in plain text editor full#
If you click on the "Get full HTML" button below you will get all HTML code lines of the given example. In most cases, the HTML code you find directly below the example is shortened to make it easier to read and comprehend. So go to "Styling your site" > "Content Boxes" or just click here. They have a smooth hover effect and they can also contain buttons and links, for example to refer to another page with a "Read more" link.Īt first, we have to copy the HTML code lines for the icon boxes from the "Styling your Site" section in this documentation. The demo site of Theme Lambda contains a row of four icon boxes below the slider.
