{"id":10126,"date":"2026-04-28T20:04:15","date_gmt":"2026-04-28T20:04:15","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10126"},"modified":"2026-04-28T20:04:15","modified_gmt":"2026-04-28T20:04:15","slug":"how-to-create-an-admin-panel-in-hostinger-horizons","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-create-an-admin-panel-in-hostinger-horizons\/","title":{"rendered":"How to create an admin panel in Hostinger Horizons"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Hostinger Horizons allows you to build a private, login-protected admin panel for your web application. This area enables you to manage dynamic content&mdash;such as adding products, writing blog posts, or updating galleries&mdash;without writing code. Horizons uses an integrated backend to automatically handle data storage, authentication, and collections based on your prompts.<\/span><\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">Changes made in <\/span><b>Test mode<\/b><span style=\"font-weight: 400\"> do not affect your live website; always verify functionality before publishing.<\/span><\/div><h3><b>Step 1: Send the initial application prompt<\/b><\/h3><p><span style=\"font-weight: 400\">To establish the foundation of your app, provide a comprehensive overview in your first message.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open the Hostinger Horizons editor.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter a prompt that describes both the public site and the private admin area.<\/span><span style=\"font-weight: 400\"><br>\n<\/span><b>Example Prompt:<\/b> <i><span style=\"font-weight: 400\">Create a web application with a public-facing website and a private admin panel accessible via email and password login. The admin panel must allow me to add, edit, and delete products (name, price, image, description), blog posts (title, content, cover image), and gallery images. The public site should display this content dynamically.<\/span><\/i><\/li>\n<\/ol><h3><b>Step 2: Configure authentication<\/b><\/h3><p><span style=\"font-weight: 400\">If the initial prompt does not generate a functional login system, refine the authentication logic.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Request a specific login page and route protection.<\/span><span style=\"font-weight: 400\"><br>\n<\/span><b>Example Prompt:<\/b> <i><span style=\"font-weight: 400\">Add a login page for the admin panel with email and password authentication. Ensure only logged-in admins can access the admin area and redirect unauthenticated users to the login page.<\/span><\/i><\/li>\n<\/ol><h3><b>Step 3: Build content management sections<\/b><\/h3><p><span style=\"font-weight: 400\">Add specific management modules one at a time to ensure stability.<\/span><\/p><ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li style=\"font-weight: 400\"><b>Product Management:<\/b><span style=\"font-weight: 400\"> Prompt Horizons to create a section for inventory.<\/span><span style=\"font-weight: 400\"><br>\n<\/span><b>Example Prompt:<\/b> <i><span style=\"font-weight: 400\">Add a Products section to the admin panel to add new products with a name, price, description, and image. Include a list of existing products with edit and delete options.<\/span><\/i><\/li>\n<li style=\"font-weight: 400\"><b>Blog and Gallery:<\/b><span style=\"font-weight: 400\"> Use similar prompts to add sections for blog posts and image galleries, specifying the fields needed for each (e.g., title, date, or cover image).<\/span><span style=\"font-weight: 400\"><br>\n<\/span><b>Example Prompt<\/b><span style=\"font-weight: 400\">:<br>\n<\/span><i><span style=\"font-weight: 400\">Add a Blog Posts section to the admin panel where I can write, edit, and publish articles with a title, content, and cover image.<br>\n<\/span><\/i><i><span style=\"font-weight: 400\">Add a Gallery section to the admin panel where I can upload, replace, and delete images that display on the public site.<\/span><\/i><\/li>\n<\/ol>\n<\/li>\n<\/ol><h3><b>Step 4: Sync content to the public site<\/b><\/h3><p><span style=\"font-weight: 400\">Ensure the data entered in the admin panel appears correctly for your visitors.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Ask Horizons to link the backend collections to your homepage or subpages.<\/span><span style=\"font-weight: 400\"><br>\n<\/span><b>Example Prompt:<\/b> <i><span style=\"font-weight: 400\">Connect the public homepage to the admin panel database. The public site must automatically update whenever products, blog posts, or gallery images are added or edited in the admin area.<\/span><\/i><\/li>\n<\/ol><p><span style=\"font-weight: 400\">Once completed, you will have a functional administrative interface to manage your Hostinger Horizons site content in real-time. You can monitor and edit your raw data at any time using the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> toggle at the top of the preview screen.<\/span><\/p><h2 id=\"h-troubleshooting-common-issues\"><b>Troubleshooting common issues<\/b><\/h2><p><span style=\"font-weight: 400\">If your admin panel or dynamic content does not behave as expected, use the following prompts and checks to resolve the issue:&nbsp;&nbsp;&nbsp;<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><b>Dynamic content is not appearing on the public site<\/b><span style=\"font-weight: 400\">: Ensure the public site is configured to fetch data from the exact same database collections the admin panel writes to. <\/span><span style=\"font-weight: 400\"><br>\n<\/span><span style=\"font-weight: 400\">You can prompt: <\/span><i><span style=\"font-weight: 400\">Make sure the public pages fetch and display the latest data from the [collection name] collection used by the admin panel.&nbsp;&nbsp;&nbsp;<\/span><\/i><\/li>\n<li style=\"font-weight: 400\"><b>Login redirects back to the login page<\/b><span style=\"font-weight: 400\">: This typically indicates a session storage issue.<\/span><span style=\"font-weight: 400\"><br>\n<\/span><span style=\"font-weight: 400\">Use this prompt: <\/span><i><span style=\"font-weight: 400\">Fix the authentication flow so that after a successful login, the user is redirected to the admin dashboard and remains authenticated.&nbsp;&nbsp;&nbsp;<\/span><\/i><\/li>\n<li style=\"font-weight: 400\"><b>Admin panel is accessible without authentication<\/b><span style=\"font-weight: 400\">: You must ensure all administrative routes are protected. <\/span><span style=\"font-weight: 400\"><br>\n<\/span><span style=\"font-weight: 400\">Use this prompt: <\/span><i><span style=\"font-weight: 400\">Add route protection to all admin panel pages. Automatically redirect any unauthenticated users to the login page.&nbsp;&nbsp;&nbsp;<\/span><\/i><\/li>\n<li style=\"font-weight: 400\"><b>Prompted changes are not visible on the live site: <\/b><span style=\"font-weight: 400\">In the Hostinger Horizons editor, you must click <\/span><i><span style=\"font-weight: 400\">Publish<\/span><\/i><span style=\"font-weight: 400\">, then select <\/span><i><span style=\"font-weight: 400\">Publish changes<\/span><\/i><span style=\"font-weight: 400\">. Changes may take a few minutes to propagate; view the site in an incognito window to bypass local browser cache.&nbsp;&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><b>An error message appears after adding a feature<\/b><span style=\"font-weight: 400\">:&nbsp; Provide the specific error details to the AI for analysis. <\/span><span style=\"font-weight: 400\"><br>\n<\/span><span style=\"font-weight: 400\">Use this prompt: <\/span><i><span style=\"font-weight: 400\">When I [describe exact steps], I get console error &lsquo;[paste error]&rsquo;. Network tab shows request to [URL] with payload [paste payload], error [paste error code]. Can you fix the issue?<\/span><\/i><\/li>\n<\/ol><h3><\/h3><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">Use the Hostinger Horizons internal data browser to verify that collections are being created correctly as you prompt. <\/span><span style=\"font-weight: 400\">If you encounter errors, paste the specific error message and the relevant code lines into the prompt area for Horizons to analyze and fix.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Create a login-protected dashboard in Hostinger Horizons to manage website content like products, blog posts, and images without manual database configuration<\/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-10126","post","type-post","status-publish","format-standard","hentry","category-hostinger-horizons"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-create-an-admin-panel-in-hostinger-horizons","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10126","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=10126"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10126\/revisions"}],"predecessor-version":[{"id":10128,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10126\/revisions\/10128"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}