{"id":10173,"date":"2026-04-29T16:20:31","date_gmt":"2026-04-29T16:20:31","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10173"},"modified":"2026-04-29T16:23:55","modified_gmt":"2026-04-29T16:23:55","slug":"how-to-create-an-image-gallery-in-hostinger-horizons","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-create-an-image-gallery-in-hostinger-horizons\/","title":{"rendered":"How to create an image gallery in Hostinger Horizons"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Creating an image gallery allows you to manage your photos directly from the data section. This setup is ideal for portfolios, product showcases, or event photos, as it ensures your website updates automatically whenever you add or replace an image in the data section.<\/span><\/p><h3><b>Step 1: Prompt Horizons to create the gallery<\/b><\/h3><p><span style=\"font-weight: 400\">In the Hostinger Horizons chat, use a specific prompt to generate the gallery structure and the backend collection.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>Open the Horizons chat<\/strong> interface.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter a <strong>prompt<\/strong> that defines both the design and the data source, such as:<\/span><i><span style=\"font-weight: 400\"> &ldquo;Create a photo gallery section on my homepage. Store the gallery images in a data collection called &ldquo;Gallery&rdquo;. Each entry should have an image field and an optional caption field. Display the images in a grid layout. The gallery should automatically show all images added to the Gallery collection&rdquo;<\/span><\/i><\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Be specific about your preferred layout, such as grid or masonry, and the number of columns to get the best result.<\/div><h3><b>Step 2: Access the Data tab<\/b><\/h3><p><span style=\"font-weight: 400\">Once Hostinger Horizons builds your gallery, you must access the data to manage the content.<\/span><\/p><ol>\n<li><span style=\"font-weight: 400\">Open your project in Horizons.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Click the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> toggle at the top of the preview screen.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Locate the <\/span><b>Gallery<\/b><span style=\"font-weight: 400\"> collection in the left panel.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-10174\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-1024x412.png\" alt=\"\" width=\"1024\" height=\"412\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-1024x412.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-300x121.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-768x309.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-1536x618.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1.png 1906w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/span><\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">If the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> toggle is unavailable, re-send the prompt from Step 1 to ensure Hostinger Horizons creates the collection correctly.<\/span><\/div><h3><b>Step 3: Add images to the Hostinger Horizons gallery<\/b><\/h3><p><span style=\"font-weight: 400\">You can now populate your gallery without editing the website design.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><b>Gallery<\/b><span style=\"font-weight: 400\"> collection and click <\/span><b>Add record<\/b><span style=\"font-weight: 400\">.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-10175\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-1024x495.png\" alt=\"\" width=\"1024\" height=\"495\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-1024x495.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-300x145.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-768x371.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2.png 1352w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Upload your file in the image field.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10176\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3.png\" alt=\"\" width=\"891\" height=\"675\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3.png 891w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3-300x227.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3-768x582.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add a caption in the caption field if desired.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><b>Create<\/b><span style=\"font-weight: 400\">.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10177\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4.png\" alt=\"\" width=\"901\" height=\"690\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4.png 901w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4-300x230.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4-768x588.png 768w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Repeat these steps for each photo you wish to display.<\/span><\/li>\n<\/ol><h3><b>Step 4: Edit or remove gallery images<\/b><\/h3><p><span style=\"font-weight: 400\">Manage your existing records to keep your gallery up to date.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><b>Replace an image<\/b><span style=\"font-weight: 400\">: Click the specific record, update the image field, and save the changes.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-10178\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-1024x581.png\" alt=\"\" width=\"1024\" height=\"581\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-1024x581.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-300x170.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-768x436.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5.png 1312w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Delete an image<\/b><span style=\"font-weight: 400\">: Select the image and click &ldquo;Delete selected&rdquo;.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-10179\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-1024x584.png\" alt=\"\" width=\"1024\" height=\"584\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-1024x584.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-300x171.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-768x438.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6.png 1347w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<\/ol><p><span style=\"font-weight: 400\">Ensure you publish the changes if you want to see the images on the live website. Once done, your image gallery will be fully functional and easy to update.&nbsp;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a dynamic photo gallery using Hostinger Horizons<\/p>\n","protected":false},"author":591,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-10173","post","type-post","status-publish","format-standard","hentry","category-hostinger-horizons"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/591"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10173"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10173\/revisions"}],"predecessor-version":[{"id":10184,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10173\/revisions\/10184"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}