6.3.3.7. Images Section
This section contains settings that are used to save images and files available in the target post pages into your server.
Note
Saving images and files will increase the time and memory required to save a post.
6.3.3.7.1. Save all images in the post content?
If you want all the images in the post content to be saved as media and included in the post from your server, check this.
Important
The images will be searched for in the elements found by the CSS selectors defined in Post Content Selectors.
Note
This is the same as checking Save images as media? setting and adding img
selector to Image URL Selectors setting. So, you do not need to check
Save images as media? setting or add img
selector to
Image URL Selectors setting when you check this setting’s checkbox.
6.3.3.7.2. Save images as media?
If you want the images in the post content to be saved as media and included in the post from your server, check this.
Checking this setting’s checkbox will make Save images as gallery?, Gallery Image URL Selectors, Save images as WooCommerce product gallery?, and Image URL Selectors settings visible.
Important
The selectors you define will search for images in the code that is found by the selectors you defined in Post Content Selectors setting. In other words, if your selector matches images but the images are not in the post content, then the images will not be saved.
6.3.3.7.3. Save images as gallery?
If you want to save specific images as a gallery, check this.
Important
This setting is visible only if Save images as media? setting is checked.
6.3.3.7.4. Gallery Image URL Selectors
Define CSS selectors that find the elements that store to-be-saved files’ URL in their src
attribute. This is a type of Selector and Attribute Setting.
Note
The elements can be anywhere in the source code of the target post. Because the gallery is created and inserted into the post content by you, there is no requirement for the elements to be inside the elements found by the selectors defined in Post Content Selectors setting.
The elements found by the defined CSS selectors must have src
attribute and that attribute’s
value must be a valid file URL. Otherwise, the plugin will not be able to save the files. If the
URLs are not in src
attribute, then you can use Exchange element attributes setting
to put the URLs into src
attribute.
Important
The gallery is created by you, using Gallery Item Template setting. So, for the
images/files saved as a gallery to be shown, you should create a template in
Gallery Item Template setting and add [wcc-main-gallery]
short code into
Main Post Template.
Important
This setting is visible only if Save images as gallery? setting is checked.
6.3.3.7.5. Save images as WooCommerce product gallery?
If you set post type as WooCommerce product and you want to save the gallery as the product’s gallery, check this. When this is checked, the plugin will save the images found by Gallery Image URL Selectors as the WooCommerce product’s gallery.
Important
This setting is visible only if Post Type is selected as product
and
Save images as gallery? setting is checked.
6.3.3.7.6. Image URL Selectors
Define CSS selectors that find the elements that store to-be-saved files’ URLs in their src
attribute. This is a type of Selector and Attribute Setting.
Important
The selectors you define will search for images in the code that is found by the selectors you defined in Post Content Selectors setting. In other words, if your selector matches images but the images are not in the post content, then the images will not be saved.
The URLs must be in src
attribute, because browsers load the images by using the URLs
defined in src
attributes. Because the images should be displayed in the post content by a
browser, their URLs should be in src
attribute. If the URLs are not in src
attribute,
then you can use Exchange element attributes setting to put the URLs into src
attribute.
Important
This setting is visible only if Save images as media? setting is checked.
6.3.3.7.7. Test Image URL
A full image URL to be used to perform tests by using button of Find and replace in image URLs setting.
Note
It is important to enter one of the URLs found by the CSS selectors defined in this section as a test URL, because those are the URLs that the plugin sees. If you enter a part of a URL instead of an absolute URL, then your tests might not indicate that the find-replace rules will be applied as you expect.
6.3.3.7.8. Find and replace in image URLs
Define rules that will be applied to each image URL found by the selectors defined in this section. This is a type of Find and Replace Setting. button uses the value of Test Image URL setting as the test subject.
See also
- Find and replace in featured image URL setting under Category Tab
- There are additional explanations made in that setting’s docs. It is recommended that you see those as well, for more information.