Unable to control templete html
-
Want to learn how to build a Theme from scratch. I am a retired software engineer, so my goal is to understand how everything works before starting a real Theme. I have WordPress 4.8 installed on a local Ubuntu Server with Apache, PHP and MySQL. I use VI to edit and have been using the Live View of my theme to check results. I am not a Web expert but have developed some sites and know the basics of css and have coded some php application etc.
I started with a style.css and index.php and noticed a lot of canned HTML when I viewed the source. Doing a lot of research on the web I decided to code a simple header.php and include a hard link to my style.css which was also bare bones. I got more styles, javascript, etc but not the ones I coded. Again lots of canned html and not the <html>, <head> or <body> I coded. I can place text in my header.php and I see it so header.php is being called but my formatting is not honored.
I finally coded a functions.php with the wordpress.org prescribed method to specify my style.css; add_action( ‘wp_enqueue_scripts’, etc. That got the same results as the hard coded method no change, Included is stuff I don’t want yet because I don’t understand it.
Bottom line, I want to understand all the stuff that is getting added on my behalf so I can control it. My approach is to get rid of then add it back as I learn.
Where can I go (web or book) to understand what is added and where it comes from, so far I haven’t found that location, and I have looked at several books also.
Can some one please direct me to a location that will:
1. Help me learn where the canned stuff comes from.
2. Trace the building of html (so far I haven’t found tracing to help).
3. Get my html back to only that code I place in my header.php and index.php.Thanks in advance for your help and understanding about how I want to proceed with this effort.
The topic ‘Unable to control templete html’ is closed to new replies.