{"id":631,"date":"2024-05-12T16:03:29","date_gmt":"2024-05-12T16:03:29","guid":{"rendered":"https:\/\/wordpress.moodleanswers.com\/building-custom-content\/"},"modified":"2025-10-09T20:27:12","modified_gmt":"2025-10-09T20:27:12","slug":"building-custom-content","status":"publish","type":"post","link":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/2024\/05\/12\/building-custom-content\/","title":{"rendered":"Building Custom Content"},"content":{"rendered":"<p>Moodle allows you to create custom resources and content in many areas. Two such areas are labels and pages. This tutorial will walk you through how to build a custom page within Moodle,\u00a0how to add and resize images, and how to add a YouTube video. At the end of this tutorial, you will know how to manipulate different types of content utilizing the WYSIWYG (What You See Is What You Get) editor.<\/p>\n<p><!--more--><\/p>\n<p><strong>Adding a page:<\/strong><\/p>\n<p>1. Make sure editing is turned on at the top right of your Moodle page.\u00a0<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-618\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/turn_editing_on-933.png\" width=\"154\" height=\"59\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/turn_editing_on.png\" \/><\/p>\n<p>2. Choose <strong>Add an Activity or Resource\u00a0<\/strong>in the section you wish to work with. Under Resources, choose <strong>Page<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-619\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_activity_resource-836.png\" width=\"800\" height=\"85\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/add_activity_resource.png\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_activity_resource-836.png 800w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_activity_resource-836-300x32.png 300w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_activity_resource-836-768x82.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-620\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_page-dbf.png\" width=\"648\" height=\"463\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/add_page.png\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_page-dbf.png 648w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_page-dbf-300x214.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p>\u00a03. Add a Name for your your page.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-621\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/adding_page-c89.png\" width=\"830\" height=\"490\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/adding_page.png\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/adding_page-c89.png 830w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/adding_page-c89-300x177.png 300w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/adding_page-c89-768x453.png 768w\" sizes=\"auto, (max-width: 830px) 100vw, 830px\" \/><\/p>\n<p>\u00a04. Add your content.<\/p>\n<p>Enter content into the paragraph body labeled <strong>Page Content<\/strong>.\u00a0It is important to note that the following instructions relate to the WYSIWIG editor, and the functionality of this editor is available wherever it appears. Note that even the description field has a WYSIWIG editor, and topic summaries can be created using the WYSIWIG Editor. To see all\u00a0available options in the editor, click on the &#8216;expand arrow&#8217; icon in the top left.\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-622\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwig-f82.png\" alt=\"\" width=\"599\" height=\"355\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwig-f82.png 599w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwig-f82-300x178.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/p>\n<h3>\u00a0WYSIWIG editor functions<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-623\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_fuctions1-cbb.jpg\" alt=\"\" width=\"911\" height=\"679\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_fuctions1-cbb.jpg 911w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_fuctions1-cbb-300x224.jpg 300w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_fuctions1-cbb-768x572.jpg 768w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-624\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_functions2-598.jpg\" alt=\"\" width=\"906\" height=\"570\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_functions2-598.jpg 906w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_functions2-598-300x189.jpg 300w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/wysiwyg_functions2-598-768x483.jpg 768w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/p>\n<p>\u00a0<\/p>\n<p><strong>Adding images, hyperlinks, and a YouTube video:<\/strong><\/p>\n<p>In the <strong>Content<\/strong> section, click the <strong>Add Image<\/strong>\u00a0button.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-625\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_image_content-1a1.png\" width=\"744\" height=\"197\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/add_image_content.png\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_image_content-1a1.png 744w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/add_image_content-1a1-300x79.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/p>\n<p>Then click on the <strong>Browse Repositories\u00a0<\/strong>button.\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-626\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/browse_repositories-12f.png\" alt=\"\" width=\"366\" height=\"404\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/browse_repositories-12f.png 467w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/browse_repositories-12f-272x300.png 272w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><\/p>\n<p>The window that appears prompts you to <strong>upload a file<\/strong>. Click on <strong>Choose File <\/strong>to find and upload an image.\u00a0The file picker will ask you where you would like to browse for files. In the following example,\u00a0we will upload a file from our computer.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-627\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/file_picker-039.png\" width=\"870\" height=\"585\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/file_picker.png\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/file_picker-039.png 870w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/file_picker-039-300x202.png 300w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/file_picker-039-768x516.png 768w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/p>\n<h3>NOTE: Make sure to use the correct file extension in the name. ( .jpg .png .gif )\u00a0<\/h3>\n<p>Don&#8217;t forget to upload your file after you have browsed for it by clicking on <strong>Upload this File<\/strong> at the bottom.<\/p>\n<p>\u00a0<\/p>\n<p>If you find that your image is too large, you can edit the\u00a0size\u00a0of the image by adjusting the size dimensions. The image preview window is a dynamic window, and as you edit attributes of the image, the preview window will dynamically change.<\/p>\n<p>In the dimensions area, you are able to scale the image. Make sure\u00a0<strong>Auto Size<\/strong>\u00a0is checked. Having this feature checked will allow you to scale your image without stretching or compressing\u00a0it.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-628\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/image_properties-91d.png\" width=\"486\" height=\"631\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/image_properties.png\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/image_properties-91d.png 486w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/image_properties-91d-231x300.png 231w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/p>\n<p><strong>NOTE:<\/strong> If your uploaded image is too small and you try to scale from\u00a0this window,\u00a0the image will pixilate.<\/p>\n<p>\u00a0<\/p>\n<p>Next let&#8217;s add a YouTube video to the page.\u00a0<\/p>\n<p>Find the video you wish to display on\u00a0<a href=\"https:\/\/www.youtube.com\">youtube.com<\/a><\/p>\n<p>On YouTube, choose the\u00a0option to share the video. Additional\u00a0options will appear. Choose your desired settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-629\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/youtube_embed-6d2.jpg\" alt=\"\" width=\"506\" height=\"395\" srcset=\"https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/youtube_embed-6d2.jpg 648w, https:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/youtube_embed-6d2-300x234.jpg 300w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/p>\n<p>Near the bottom are sizing options. By default, YouTube may have the smallest size set to 560&#215;515. This will need to be changed in order to display properly in Moodle. Your video must be\u00a0under 400 pixels in width. To change this, you should type in a custom width. 320 pixels is a good width. When you <strong>type in 320px<\/strong> in the width field, YouTube keeps the proportions of the video and completes the height for you.<\/p>\n<p>Once\u00a0you have changed the width, <strong>copy<\/strong> the embed code above.<\/p>\n<p>Return to the\u00a0page you are creating in Moodle. Click on the <strong>HMTL<\/strong> button in the WYSIWYG editor. Paste\u00a0this code in the <strong>html window,\u00a0<\/strong>not in the regular content window, otherwise you will create a page with\u00a0only code showing.<\/p>\n<p>Once you paste the embed code in the proper place, click on <strong>update<\/strong>. This will update the HTML for the content window.<\/p>\n<p>Once you have your page content created as desired, save your changes by clicking on\u00a0<strong>Save and Return to Course\u00a0<\/strong>at the bottom.\u00a0<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-630\" src=\"http:\/\/sites.ulethbridge.ca\/moodle-answers\/files\/2015\/08\/save_return_to_course2-910.png\" width=\"202\" height=\"44\" loading=\"lazy\" data-path=\"local-images:\/New Theme 4.1\/save_return_to_course2.png\" \/><\/p>\n<p>Your page should now be displayed within the topic structure of Moodle. Your students will simply click on the page to access the content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moodle allows you to create custom resources and content in many areas. Two such areas are labels and pages. This tutorial will walk you through how to build a custom page within Moodle,\u00a0how to add and resize images, and how to add a YouTube video. At the end of this tutorial, you will know how [&hellip;]<\/p>\n","protected":false},"author":67,"featured_media":1925,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[11,2,20],"tags":[139,41],"class_list":["post-631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-activities","category-course-content","category-_instructor-tutorials","tag-custom-content","tag-moodle"],"_links":{"self":[{"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/posts\/631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/comments?post=631"}],"version-history":[{"count":1,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/posts\/631\/revisions"}],"predecessor-version":[{"id":1344,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/posts\/631\/revisions\/1344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/media\/1925"}],"wp:attachment":[{"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/media?parent=631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/categories?post=631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.ulethbridge.ca\/moodle-answers\/wp-json\/wp\/v2\/tags?post=631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}