Skip to content

Instantly share code, notes, and snippets.

@New0
Last active October 26, 2017 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save New0/4e03e7c44e7691f525d8a1ce61d222f2 to your computer and use it in GitHub Desktop.
Save New0/4e03e7c44e7691f525d8a1ce61d222f2 to your computer and use it in GitHub Desktop.
Add the image via the media library and copy the image url into the src parameter of the img tag in an html field. Position the html field just below the checkbox field.
/** All the sizes need to be adjusted to the webpage design and image size **/
/* Add the class image_checkbox to the checkbox field and the class image_display to the html field that contains the image */
.image_checkbox label,
.image_display img
{
max-width: none;
}
.image_display {
position: absolute;
margin-top: -2.5rem;
margin-left: 1rem;
}
/*Add this class to the top fields of the row below the checkboxes*/
.next_field {
margin-top: 3rem
}
<img src="http://my_domain/wp-content/uploads/2017/10/myimage.jpg" width="85" height="75">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment