Skip to content

A simple Open edX XBlock to display images with captions and long descriptions

License

Notifications You must be signed in to change notification settings

openedxou/captioned-image-xblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Captioned Image XBlock

A simple Open edX XBlock to display images with captions and long descriptions.

Template 1 is designed for full-width images, template 2 causes the image to take 70% of the width, leaving the remaining space for the caption. For responsive themes, template 2 will go full width when below a certain threshold (currently based off the Appsembler-OU theme, you may need to adjust the threshold for your own instance).

Alt text is set by default to direct users to the long description, so for images to be accessible a long description is required.

Name for enabling in Studio: 'captionedimage'

Screenshots

Template 1 Template 2 Long Description button