Insert Code into your WordPress Theme Updated on June 13, 2023 by InMotion Hosting Contributor 1 Minutes, 53 Seconds to Read This guide will assume you have some experience with HTML, CSS, and/or JavaScript. If you don’t have that you have to at least know what you want to add code-wise to your WordPress Theme. Before adding any code, you must decide how important this code is. Perhaps you just want to modify the CSS of your theme to show orange text instead of black text. This is a pretty simple change and should only take you a couple of moments to do. If you just update the standard CSS file that comes with your WordPress theme, the next time the theme is updated your CSS change to give you orange text instead of black may go away. This is because your updates were replaced by the new version of the theme. Warning: We recommend that you first create a WordPress Child Theme based on your current theme. Otherwise, your changes will be overwritten when a theme is updated by its developer. Alternatively, you can make permanent changes using the Appearance > Customize section. Working in the WordPress Theme Editor Login to your WordPress dashboard. From the menu on the left, select Appearance and then Theme Editor. The first time you click on Theme Editor, you will see this box advising that you create a child theme instead of modifying the code in the parent theme. Click on I understand to proceed. When you get to the editor you will see something like the screenshot below. In the top left corner, you will see the name of the file that you are editing. The main window of the editor displays the code you are editing with line numbers. The files that make up the theme are listed in the column at right. Click on the file that you wish to edit. Once you are done with your edits on each file, click on the Update File button to save the changes to the server. If your changes do not go into effect right away, you may need to clear your browser cache or server cache. The following articles may be of assistance:• Clearing WordPress Cache• NGINX Cache Management Need faster performance without wasting time on configuration? Check out our NGINX-powered WordPress Hosting today! Learn more about the power of WordPress Themes and how they can simplify your website building and maintenance. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles An Introduction to Kadence – A Lightweight but Powerful WordPress Theme How to Install a WordPress Theme Astra: The Lightweight and Customizable WordPress Theme Quickly Create a Website with the OceanWP WordPress Theme Which WordPress Themes are Best for Reseller Accounts? Which WordPress Themes Are Best For VPS Accounts? The Best WordPress Themes for Small Businesses What is a WordPress Child Theme? Insert Code into your WordPress Theme Unobtrusive Design Studio WordPress theme by Template Monster