{"id":657,"date":"2023-06-07T10:05:01","date_gmt":"2023-06-07T10:05:01","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/06\/07\/7986905-hostinger-website-builder-how-to-customize-your-website-s-design-using-code\/"},"modified":"2025-08-28T11:14:58","modified_gmt":"2025-08-28T11:14:58","slug":"7986905-hostinger-website-builder-how-to-customize-your-website-s-design-using-code","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/7986905-hostinger-website-builder-how-to-customize-your-website-s-design-using-code\/","title":{"rendered":"Hostinger Website Builder: How to Customize Your Website\u2019s Design Using Code"},"content":{"rendered":"<p class=\"no-margin\">You can style almost any element on your website by adding <b><a class=\"intercom-content-link\" href=\"https:\/\/www.w3schools.com\/css\/\" target=\"_blank\" rel=\"noopener\">custom CSS<\/a><\/b> to the <b><a class=\"intercom-content-link\" href=\"\/support\/6445594-website-builder-how-to-add-a-custom-code-to-the-head-head-part-of-a-website-s-code\" target=\"_blank\" rel=\"noopener\">&lt;head&gt;&lt;\/head&gt;<\/a><\/b> part of your website&rsquo;s code.<\/p><p class=\"no-margin\"><b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-css\" target=\"_blank\" rel=\"noopener\">CSS (Cascading Style Sheets)<\/a><\/b> is a style sheet language used for describing how your website elements look and behave. It defines the location, size, color, opacity, font, and other stylistic features of various components within a website. You can edit the CSS of your website by editing already existing CSS styles.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">As <b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/website-builder\" target=\"_blank\" rel=\"noopener\">Hostinger Website Builder<\/a><\/b> is the best compatible with <b><a class=\"intercom-content-link\" href=\"https:\/\/www.google.com\/chrome\/\" target=\"_blank\" rel=\"noopener\">Google Chrome<\/a><\/b>, the below instruction applies when using this particular internet browser &#128161;<\/p>\n<\/div><p class=\"no-margin\">Firstly, inspect the code of your website:<\/p><ol>\n<li>\n<p class=\"no-margin\">Open your website in a new browser tab<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Right-click on the screen, and select <b>Inspect<\/b>:<\/p>\n<\/li>\n<\/ol><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/06\/bf5ad7c3-8beb-4061-82f8-0483a9429962.jpg\" alt=\"A right-click on a webpage opens a secondary menu which includes the option to inspect the page\"><\/div><p class=\"no-margin\">It will open the <b><a class=\"intercom-content-link\" href=\"https:\/\/developer.chrome.com\/docs\/devtools\/\" target=\"_blank\" rel=\"noopener\">Chrome DevTools<\/a><\/b> menu:<\/p><ol>\n<li>\n<p class=\"no-margin\">Open the <b>Elements<\/b> <b>tab <\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click on the <b>selector icon<\/b> &ndash; it allows you to select any element on the page and inspect it.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">After clicking on the selector icon, click on the element\/section within your webpage that you want to modify<\/p>\n<p class=\"no-margin\">\n<\/p><\/li>\n<\/ol><p class=\"no-margin\">In this example, we&rsquo;ll change the font color of the phrase <i>This field is required<\/i> that&rsquo;s visible if somebody tries submitting a contact form without filling in the required fields:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/06\/857ccbec-2d84-46d3-b19d-d4959ecf2dd2.jpg\"><\/div><p class=\"no-margin\">Once you click on the element, you will see its CSS code under the <b>Styles <\/b>tab. You can expand and zoom into that section to see it better:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/06\/d154e0d3-2021-455f-8517-3f3872f7b3c9.jpg\"><\/div><p class=\"no-margin\">You can edit the attributes on the spot for testing. For example, the property that&rsquo;s responsible for the text color is <b><a class=\"intercom-content-link\" href=\"https:\/\/www.w3schools.com\/cssref\/pr_text_color.php\" target=\"_blank\" rel=\"noopener\">color<\/a> <\/b>(click the link to learn about many other properties). It looks something like <b><code>color: red;<\/code> <\/b>in the code:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/06\/c4489a8d-725a-432e-8d1c-c070948ae283.jpg\"><\/div><p class=\"no-margin\">To make changes to the text color, simply delete the existing color value and insert whatever color you like instead. You can also similarly change other properties, e.g., the background color:<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/08\/5.gif\"><\/div><p class=\"no-margin\">To apply this change on your website, follow the steps below:<\/p><p class=\"no-margin\">1. After selecting the element with the selector tool, find the <b>Styles tab<\/b> (1) and click on the <b>plus + button<\/b> (2) &ndash; it will generate a fragment of code that you&rsquo;ll need to use while making changes. In our example, it&rsquo;s <b><code>p.input__error-message.z-body-small<\/code><\/b>:<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/06\/7bfcc55e-4190-4fb0-9c29-123680b4ebff.jpg\"><\/div><p class=\"no-margin\">2. Specify the particular attribute (e.g., color, background-color, etc.) and specify the preferred value (e.g., red, blue, green, aquamarine, etc.). In our example, it&rsquo;s <b><code>color: red;<\/code><\/b>:<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/06\/f0a972f5-a385-449c-b19d-219c5aa0f01e.jpg\"><\/div><p class=\"no-margin\">3. Write a simple line of <b>&lt;style&gt;&lt;\/style&gt;<\/b> code that combines everything together (element + the adjustment we want to apply to the element).<\/p><p class=\"no-margin\"><b><code>&lt;style&gt;.the element {attribute: value !important;} &lt;\/style&gt;<\/code><\/b><\/p><p class=\"no-margin\">In our example, the code would be:<\/p><p class=\"no-margin\"><b><code>&lt;style&gt;.p.input__error-message.z-body-small {color: red !important;} &lt;\/style&gt;<\/code><\/b><\/p><p class=\"no-margin\">4. Once you have the code, open your website&rsquo;s integrations settings and paste the code in the <b><a class=\"intercom-content-link\" href=\"\/support\/6445594-website-builder-how-to-add-a-custom-code-to-the-head-head-part-of-a-website-s-code\" target=\"_blank\" rel=\"noopener\">Custom code<\/a> <\/b>field. Save the code and <b><a class=\"intercom-content-link\" href=\"\/support\/6435697-website-builder-how-to-update-a-website\" target=\"_blank\" rel=\"noopener\">update your website<\/a><\/b> for the changes to reflect online.<\/p><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">The custom changes won&rsquo;t be visible in the editor, they will only reflect online<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to enhance your website&#8217;s design with the help of CSS<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[284],"tags":[],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-integrations"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/7986905-hostinger-website-builder-how-to-customize-your-website-s-design-using-code\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/657","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\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":5569,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/657\/revisions\/5569"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}