Jump to content

Insert an image in the page


msummers
 Share

Recommended Posts

How would my client insert an image in a selected paragrph on a page (e.g., something like the following: <p><img src="..." style="float:left" alt="new image">This is a line of text containing an image floated left.</p> Note that the image also contains alt attribute and its value.)

Link to comment
Share on other sites

Use an images field on your template and if you have a field with ckeditor there is an image icon click it and you will see uploaded images to your page. Select image and make your align left, right or center. Save the page :)

After you did these steps add class to your css file about alignments you can find sample css codes here : https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/templates-admin/styles/main.css#L432

Also if you add description on your uploaded image, alt tag will be appear with your description.

  • Like 1
Link to comment
Share on other sites

"Also if you add description on your uploaded image, alt tag will be appear with your description."

I'll add that, for this part, make sure that you have the "Markup/HTML with image management" option activated at Content Type in the Details tab (Admin > Setup > Fields > Edit Field: yourckeditorfield).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...