

To actually make the changes, you will have to edit your WordPress theme’s stylesheet or relevant template to add the changes you want to save.īefore you start editing your existing WordPress theme using Inspect Element tool, make sure you that you save all your changes by creating a child theme. This means that if you refresh the page, all your changes will be gone. Inspect element is a debugging tool, and it does not write your changes back to the files on your server. Note, that any changes you make here are not saved anywhere. To add a custom style rule click on the + icon at the top of CSS pane.Īs you make changes to the CSS or HTML those changes will be reflected in the browser instantly. You can also double click and edit any attributes and styles in the CSS pane.
#GET RID OF HTML INSPECTOR CODE#
You can double click anywhere in the HTML source code and edit the code as you like. Editing and Debugging Code in Inspect Elementīoth the HTML and CSS in the inspect element window are editable. The element you pointed at will be highlighted in the source code. You can also take the mouse pointer to an element on the web page, right click and select inspect element. You will also notice CSS rules change to show the CSS for the element you are viewing. On the right-hand pane, you will see the CSS rules.Īs you move your mouse over the HTML source you will see the affected area highlighted on the web page. On your left, you will see the HTML code for the page. The developer tool window is further divided into two windows. Your browser window will split into two, and the lower window will show the web page’s source code. Alternately you can click anywhere on a web page and select inspect element from browser menu. You can launch inspect element tool by pressing CTRL + Shift + I keys on your keyboard. Launching Inspect Element and Locating The Code If you don’t like the video or need more instructions, then continue reading. Firefox has its own developer tools which can also be invoked by selecting inspect element from browser menu. In this article, we will be focusing on Inspect Element in Google Chrome because that’s our browser of choice. We’re just scratching the surface of use-cases. Using Inspect Element tool, you can edit HTML, CSS, or JavaSCript code for any webpage and see your changes live (only on your computer).įor a DIY website owner, these tools can help you preview how a site design would look without actually making the changes for everyone.įor writers, these tools are awesome because you can easily change personal identifying information when taking your screenshots eliminating the need to blur out items altogether.įor support agents, it’s a great way to identify the error that could be causing your galleries to not load or your sliders to not work properly.

These tools show the HTML, CSS, and JavaScript code for a page and how the browser executes the code. Modern web browsers like Google Chrome and Mozilla Firefox has built-in tools which allow web developers to debug errors. What is Inspect Element or Developer Tools?
#GET RID OF HTML INSPECTOR HOW TO#
In this article, we will show you the basics of inspect element and how to use it with your WordPress site. This is a dream come true for all DIY users when they find out about it. It’s possible with a tool that already exists in your browser called Inspect Element. Of course, eliminating means figuring which script is responsible for this.Have you ever wanted to temporarily edit a webpage to see how it would look with specific colors, fonts, styling, etc. Let the height of the content area be the natural height it wants to be. Honestly, unless you can find a good reason for why the height needs to be calculated then I would eliminate it. So something weird is going on with a script on that page. Try it.Īt one point I had text overflowing behind the footer. I've found that I can get a different height simply by moving the scrollbar a little and then refreshing the page. This means you have a script on the page that is probably calculating and then setting that height on the element. Approximately 30px or so of spacing after the photos and before the footer. I tried disabling javascript and viewing the page and there is no height set on that element and it looks fine. I don't think setting the height in the css is going to help you because that inline height will take precedence. The height is set but it's set as an inline style in the html. To be clear, the gap is the gap between the swan/wine photos and the beginning of the gray footer, correct?
