colorbox_inline allows you to open content already on the page within a colorbox. If you would like to load content via AJAX, you can use colorbox_load.

To create an element which opens the colorbox on click:

  1. Enable the module. No other options or configuration exist.
  2. Add the attribute data-colorbox-inline to an element and make its value a selector for the element you wish to open. Eg, User Login will open a popup with the first element with the class user-login as the content.
  3. Optional add data-width and data-height to the anchor to control the size of the modal window.

This module requires colorbox.

Short name
colorbox_inline
Supporting organizations