Quote:
Originally Posted by World
How do I get to see the HTML source?
|
You'll need to learn a bit of PHP before editing your wordpress theme.
For a beginner, you should look at both the PHP code found in your control panel of WP and the data sent to the browser, by viewing the actual page's source code ( HTML ) to see how you're going to make your next edit.
WordPress was simply put together and it's user friendly, so you'll start understanding how to edit certain files to reach certain results quickly. ( WP Dashboard => Appearance => Editor )
Examples :
- header.php - You know that you're editing the header of the page.
- footer.php - You know that you're editing the footer of the page.
- sidebar.php - You know that you're editing the side-bar of the page.
- style.css - You know this is where you edit your CSS to style the page.
When you compare both codes, you will quickly notice similarities. Some PHP replaces the HTML in the control panel of a template, but when you view it on your browser, view the source code and you'll notice the HTML.
Something that can help you is HTML comment tags. You can insert them when editing the templates to see what is where on the actual page, when viewing the page source.
But, before wasting another second, review the basics of PHP : http://www.w3schools.com/php/
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
|