When you are working with specific content types, particularly custom ones, you may want to ensure a level of uniformity even when some parts are missing. For example, if you have a content type that includes images, you want to keep the continuity, even if some pages will not have specific images. In cases like this you may want to set a default image for the content type. This way the default image will hold the place of a specific image and the node will not look different. This guide will help you in setting up a default image for a content type in your Drupal 8 site.

How to create a default image

  1. To set your default image, first log into your Drupal 8 admin interface.
  2. Once logged into the admin area, use the top menu bar and click on the Menu tab. This will display another menu bar underneath. Using that one, click on the Structure option.
  3. From here, click on the Content Types link from the list.
  4. Now we are on a page that lists all the content types that you may choose from in building your site. Find the one you want to create the default image for and click on the Manage Fields link from the dropdown on the right side of the row. In our example, we are working with a content type named Dog Breed Profile for a dog information site.
  5. Next you will see a screen with a list of all the various fields for the content type. Look for the Image field and click on the Edit link on the right dropdown.
  6. This screen is for all the settings specific to the Image field for our Dog Breed Profile content type. Scroll down the page until you find the Default Image section. There, you will see three fields in regards to adding a default image to this content type. While only uploading the image is required for adding a default, it is best practice to place information the other two fields as well.
    ImageThis field is where you will upload the image you wish to be your default. Simply click the Browse button to select an image from your local machine.
    Alternate TextThis is for traditionally used to indicate the image in cases of users viewing the site with a text-only editor or if the image does not display for some reason.
    TitleThis text will display if the user hovers their mouse over the image.
  7. Once you have entered the information and uploaded the image, click on the Save Settings button at the bottom to activate the default image for your site. Here you see an example of a page that does not have an image of the dog breed, so it will simply display the default image instead.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 201005

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!