IBase is a responsive theme designed to look sharp across all devices, whether it be smartphones, tablets or PC devices. It is also optimized for SEO and fast browsing.
This theme is compatible with all the settings you can find on the admin page, as well as Smart Themes. This means you can freely edit the HTML, CSS and JS of this theme using the code editor.
Cafe24's responsive themes use WebP, an image format that provides superior lossless compression for images, to minimize the image loading speed.
Internet Explorer, however, does not support WebP images, so you will also need to use JPG images or other supported formats.
Read the guide below for more information on how to edit this theme and change images.
Get IBase from the Cafe24 Store
1. Content guide
Product images
From your Cafe24 admin, you can change the size of your images in Products > Add product > Images.
Select [Add multiple images] to add a different image for the product image and the list thumbnail image. Before adding any images, click [Adjust size] to change the size of your images.
Recommended image sizes
Product image/Enlarged image | List thumbnail image | Additional image |
620 x 725 px | 295 x 400 px | 295 x 400 px |
Layout
1) Logo
Add your store logo in Smart Themes Editor > Logo section > Edit > Properties.
To make sure your logo is clearly visible on mobile devices, add an image that is twice as big as the size you actually see.
(For example, if the image size on screen is 104 x 27 px, you must upload a 208 x 54 px image. *Recommended image: 208 x 54 px)
2) Top banner (text)
In Smart Themes Editor, hover your mouse over the banner at the top of the page and click [Edit].
Edit the text between the <div class="desc"> and </div> tags.
<div class="desc">Spend KRW 25,000 or more for free shipping / Sign up now and get KRW 3,000 OFF coupon</div>
If you wish to remove the banner, simply click the "X" button in the top-right corner of the selected section.
3) Product categories
From your Cafe24 admin, you can configure product categories in Products > Categories > Product categories.
Your product categories will appear in your theme's header and sidebar.
4) Footer information
From your Cafe24 admin, you can configure your store information in My Store > General > Store profile.
These details will appear in your theme's footer.
Main contents
1) Top banner slider
This banner slider placed at the top of your landing page is your store's main visual element.
Changing the images
- Place the URL link to which you want to redirect users in the href="" of the <a> tag under <div class="here">.
- Edit the text between <h2 class="text"> and </h2>.
- Prepare a WebP and JPG image each for PC, tablets and smartphones.
- Add the WebP image to source srcset="".
- Add the JPG image to img src="".
<div class="swiper-slide">
<div class="item">
<div class="here">
<h2 class="text">Banner text</h2>
<a href="Link" class="button">shop now</a>
</div>
<!-- PC image -->
<picture class="RW">
<source srcset="Banner image_PC.webp" type="image/webp">
<img src="Banner image_PC.jpg" width="100%" height="100%" alt="main banner">
</picture>
<!-- tablet image -->
<picture class="RTB">
<source srcset="Banner image_Tablet.webp" type="image/webp" />
<img src="Banner image_Tablet.jpg" width="100%" height="100%" alt="main banner">
</picture>
<!-- mobile image -->
<picture class="RMB">
<source srcset="Banner image_Smartphone.webp" type="image/webp" />
<img src="Banner image_Smartphone.jpg" width="100%" height="100%" alt="main banner">
</picture>
</div>
</div>
Recommended image sizes
PC | Tablet | Smart Phone |
1,820 x 620 px | 720 x 777 px | 328 x 390 px |
This banner slider has two images by default. If you want to add more banners, simply copy the <div class="swiper-slide"> ... Omission </div> code shown above.
Example of the slider's structure
<div class="swiper-slide"> ... Omission </div>
<div class="swiper-slide"> ... Omission </div>
<div class="swiper-slide"> ... Omission </div>
2) Card-type banner (three columns)
You can edit this section's source code by clicking on a card-type image in the Smart Themes Editor.
You can directly edit the source code in the HTML viewer or through the HTML editor window that opens when you click [Edit].
- Place the URL link to which you want to redirect users in the href="" of the <a> tag.
- Prepare images of equal dimensions in both WebP and JPG format for the banner images. (*Recommended image: 594 x 325 px)
- Add the WebP image to source srcset="".
- Add the JPG image to img src="".
<a href="Link">
<picture>
<source srcset="Banner image.webp" type="image/webp">
<img src="Banner image.jpg" width="100%" height="100%" alt="banner1" loading="lazy">
</picture>
</a>
Note
You can check the section's source code range and location by selecting it and checking the marked area in the HTML viewer of Smart Themes Editor.
You can select the entire source code section for the card-type banner and delete or move it.
<!-- collection --> section <!-- // collection -->
3) Product layout (4 columns)
Products sold on your store appear in a 4-column layout under the top banner.
- The module code "product_listmain_1" is used for this section. You can find it in Products > Product layout > Home page category layout > Manage home categories on your Cafe24 admin.
- The text entered for Product category is displayed as the title of this section.
- Products you add to that home category will appear in this section.
4) Banner-type product layout
This is a product layout that is integrated with an image banner.
Product layout
- The module code "product_listmain_2" is used for this section. You can find it in Products > Product layout > Home page category layout > Manage home categories on your Cafe24 admin.
- The text entered for Product category is displayed as the title of this section.
- This section will only become a slider once you upload at least two images.
Banner image
- Prepare images of equal dimensions in both WebP and JPG format for the banner images. (*Recommended image: 594 x 325 px)
- Add the JPG image to img src="".
- Add the WebP image to source srcset="".
<picture>
<source srcset="Banner image.webp" type="image/webp">
<img src="Banner image.jpg" alt="banner" loading="lazy" width="100%" height="100%">
</picture>
Note
You can check the section's source code range and location by selecting it and checking the marked area in the HTML viewer of Smart Themes Editor.
You can select the entire source code section for the banner-type image layout and delete or move it.
<!-- image slide --> section <!-- // image slide -->
5) Sale item
The sale item section is a tab layout made out of four home category modules.
- The module codes "product_listmain_3, 4, 5, 6" are used for this section. You can find them in Products > Product layout > Home page category layout > Manage home categories on your Cafe24 admin.
- If you do not have any home categories for product_listmain_5, 6, please add them in [Manage home categories].
- The text entered for Product category will be used as the tab title.
You can change the section's title (Sale item) by editing the text between the <h2> and </h2> tags.
<div class="mainTitle">
<h2>Sale Item</h2>
</div>
Note
You can check the section's source code range and location by selecting it and checking the marked area in the HTML viewer of Smart Themes Editor.
You can select the entire source code section for the sale item section and delete or move it.
<!-- sale item --> section <!-- // sale item -->
6) Video-type product layout
This is a product layout that is integrated with a video.
Product layout
- The module code "product_listmain_7" is used for this section. You can find it in Products > Product layout > Home page category layout > Manage home categories on your Cafe24 admin.
- If you do not have a home category for product_listmain_7, please add one in [Manage home categories].
- The text entered for Product category is displayed as the title of this section.
- This section will only become a slider once you upload at least two images.
Changing the banner video
Change the poster and image to that of the video you created.
- Prepare images of equal dimensions in both WebP and JPG format for the video's background image. (*Recommended image: 570 x 639 px)
- Add the WebP image to source srcset="".
- Add the JPG image to img src="".
- Replace the link in source data-src="" under the video tag with that of your video.
- Replace the image in poster="" under the video tag with that of your video preview.
<div class="banner">
<picture class="back">
<source srcset="Video background image.webp" type="image/webp">
<img src="Video background image.jpg" alt="banner" loading="lazy" width="100%" height="100%">
</picture>
<video muted controls preload="auto" poster="Video preview image.jpg" class="linkVideo" id="video">
<source data-src="Video link" type="video/mp4">
</video>
</div>
Note
You can check the section's source code range and location by selecting it and checking the marked area in the HTML viewer of Smart Themes Editor.
You can select the entire source code section for the video-type product layout and delete or move it.
<!-- video slide --> section <!-- // video slide -->
7) Image banner (center)
Image banner
- Place the URL link to which you want to redirect users in the href="" under the <a> tag.
- Prepare images of equal dimensions in both WebP and JPG format.
- Since smartphones and tablets support WebP images, only prepare a JPG image for PC.
- Add the WebP image to source srcset="".
- Add the JPG image to img src="".
- Edit the text between <div class="text"> and </div>.
<a href="Link">
<div class="text">Enter banner text</div>
<picture>
<source srcset="Banner image_Smartphone.webp " media="(max-width: 767px)"/>
<source srcset="Banner image_Tablet.webp " media="(max-width: 1024px)"/>
<source srcset="Banner image_PC.webp" />
<img src="Banner image_PC.jpg " alt="banner" loading="lazy" width="100%" height="100%"/></picture>
</a>
Recommended image sizes
PC | Tablet | SmartPhone |
1,820 x 470 px | 720 x 451 px | 328 x 206 px |
8) Product layout (3 columns)
Products sold on your store appear in a 3-column layout at the bottom of the page.
- The module code "product_listmain_8" is used for this section. You can find it in Products > Product layout > Home page category layout > Manage home categories on your Cafe24 admin.
- If you do not have a home category for product_listmain_8, please add one in [Manage home categories].
- Products you add to that home category will appear in this section.
9) Instagram
Install the Instagram Widget from Cafe24 Store to use this section.
Once the app is installed, select this section in Smart Themes Editor and delete it.
Icons
You can change the icons that appear on your product pages (Add to cart, Add to wish list, etc.) through the Cafe24 admin.
From your Cafe24 admin, go to Themes (PC) > Features > Icons for your store's PC version, and Themes (Mobile) > Features > Icons for your store's mobile version.
You can upload new icon images that you created to fit the size recommendations.
Recommended image sizes
PC | Mobile (Double PC size) | |
Product icons | 30 x 30 px | 60 x 60 px |
2. CSS editing
Media query configuration
Since IBase is a responsive theme, when you edit the style of either the smartphone, tablet or PC, you will also have to edit the style included in the corresponding media query syntax.
Media queries must be configured as follows.
(This example shows cases in which the font size needs to be adjusted depending on the device.)
Source code example
/*The source codes used accross all devices (smartphones, tablets and PC)
are put at the top. */
.banner { color:#000; }
/*The styles that need to be added separately for each device are added below. */
/* Smartphones */
@media all and (max-width:767px) {
.banner { font-size:14px; }
}
/* Tablets */
@media all and (max-width:1024px) {
.banner { font-size:16px; }
}
/* PC */
@media all and (min-width:1025px) {
.banner { font-size:20px; }
}
Responsive class
These are the classes used for showing/hiding elements depending on the device. They only have the display property.
Smartphone | Tablet | Smartphone & Tablet | PC | |
Global Class |
RMI (Responsive Mobile Inline) | RTI (Responsive Tablet Inline) | - | RWB (Responsive Web Block) |
RMB (Responsive Mobile Block) | RTB (Responsive Tablet Block) | RTMB (Responsive Tablet Mobile Block) | RWI (Responsive Web Inline) | |
RMIB (Responsive Mobile Inline-Block) | RTIB (Responsive Tablet Inline-Block) | RTMI (Responsive Tablet Mobile Inline-Block) | RWIB (Responsive Web Inline-Block) | |
- | - | - | RW (display:none for smartphones/tablets) | |
display |
Only for smartphones |
Only for tablets |
Only for smartphones/tablets display:none for PC |
Only for PC display:none for smartphones/tablets |
Usage example
You can use media queries to add a line-break to a text on smartphones only.
When the RMB class is added to the < br > tag, the < br > tag will become display:none on PC sizes, making the line-break disappear, and display:block on smartphone sizes, creating a line-break.
<p>This sentence will only have <br class="RMB">a line-break on smartphones.</p>
Text as seen on a desktop | Text as seen on a smartphone |
This sentence will only have a line-break on smartphones. | This sentence will only have a line-break on smartphones. |