SlideShare una empresa de Scribd logo
1 de 20
WordPress – Going Beyond The
           Basics
    An Adventure Behind the Scenes of
          Your WordPress Site!



                 Lucy Beer
                  @webtw
           WebTrainingWheels.com
Who The Hell Am I?
Been using WordPress since 2004

I train people in using WordPress, and do online marketing
consulting

I have taught myself about CSS, PHP etc because I wanted to
make WordPress do more and more

If I can do it, YOU sure as hell can!!!

Find me : www.WebTrainingWheels.com | @webtw




              Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Why Go Beyond The Basics
•You’ve mastered the dashboard and plugins and are
ready for more!
•If you break something, you want to fix it
•You want to understand what you're looking at on
the server
• You want to change something in your theme that it
doesn’t give you an admin option for
•Sometimes plugins require you to add a code
snippet to your theme files
•It’s fun & rewarding…..once you get past scary…

      Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Tools of the Trade
FTP Program (preferable to using cpanel file manager)
Filezilla (free)
     Coda (not free)

Code editing program:
   MAC - Textwrangler (free), Smultron (free)
   PC – Notepad ++ (free)

Desktop Server for local installations:
ServerPress.com – free + premium versions

Chrome Developer Tools, or Firefox




             Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Cover Your Ass AKA Build A Safety
Net
Remove fear by building a safety net:

Back everything up files + db (e.g. before
upgrade)
    Duplicator (free)
BackupBuddy (not free)
    WP-DB-Backup + FTP files

Practice locally first

Practice on your own server with test
sites.

Things will break – it’s ok, this is how you
learn!

               Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Best Practices For Code
              Tweaking
• Retain original copy of any file you work on

• Use a text editor + ftp, not WordPress dashboard

• Comment your code if you make a lot of changes

• NEVER EVER touch core WP files

• Use child themes or duplicate and rename your theme to
  prevent future upgrades overwriting your changes


          Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Server Access
•   FTP credentials:
•   Host name
•   Username
•   Password




         Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
What’s All This Stuff On The
           Server




   Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
What’s All This Stuff On The
                Server
•   Core files
•   wp-config.php
•   .htaccess
•   Your stuff is in wp-content :




          Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
WP-Config




Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
What’s NOT On The Server?
• Database
  –   Stores post/page content
  –   Theme options/settings
  –   Plugin settings
  –   User info, dashboard Settings
• Access via control panel, PHPMyAdmin
• Or WordPressplugin
  – Adminer


          Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Anatomy of a WordPress
       Theme Twenty Eleven theme files




  Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Anatomy of a WordPress theme




Via
Yoast.com


            Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Anatomy of a WordPress theme




Via
Yoast.com


            Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Anatomy of a WordPress theme
PHP files generate HTML
CSS styles the HTML
Typical theme files include:
Index.php
Style.css
Single.php
Page.php
Header.php
Functions.php



          Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
CSS Tweaks
• Style.css
• Use Developer Tools to test the change you
  want to make and isolate the part of the code
  you need to change
• [live demo]




        Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
What To Do If Something
             Breaks
• Generally it’s a plugin conflict
  – Deactivate all, re-activate one by one

• If that doesn’t work, test with the default
  theme

• What if you install a bad plugin and you
  can no longer access your dashboard at
  all?
  – Manual deactivation
        Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Manual Plugin Deactivation




  Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Resources
Awesome blogs and resources:

•   CSS-Tricks.com

•   Bill Erickson.net

•   PerishablePress.com

•   WP Tuts: http://wp.tutsplus.com/

•   Codex: http://codex.wordpress.org/Main_Page

•   Template hierarchy:
    http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

•   Yoast “Anatomy of A WordPress Theme”
    http://yoast.com/wordpress-theme-anatomy/



              Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw

Más contenido relacionado

Destacado

Creating Extensible Plugins for WordPress
Creating Extensible Plugins for WordPressCreating Extensible Plugins for WordPress
Creating Extensible Plugins for WordPress
Hristo Chakarov
 
Wild lifegardentopology2 undergrowth_sections
Wild lifegardentopology2 undergrowth_sectionsWild lifegardentopology2 undergrowth_sections
Wild lifegardentopology2 undergrowth_sections
Tanya Short
 

Destacado (12)

Wordpress WooCommerce
Wordpress WooCommerceWordpress WooCommerce
Wordpress WooCommerce
 
Veugelers Chen implementing eportfolios: an international perspective on chal...
Veugelers Chen implementing eportfolios: an international perspective on chal...Veugelers Chen implementing eportfolios: an international perspective on chal...
Veugelers Chen implementing eportfolios: an international perspective on chal...
 
Creating Extensible Plugins for WordPress
Creating Extensible Plugins for WordPressCreating Extensible Plugins for WordPress
Creating Extensible Plugins for WordPress
 
Wild lifegardentopology2 undergrowth_sections
Wild lifegardentopology2 undergrowth_sectionsWild lifegardentopology2 undergrowth_sections
Wild lifegardentopology2 undergrowth_sections
 
Galicia - Comenius Project
Galicia - Comenius ProjectGalicia - Comenius Project
Galicia - Comenius Project
 
Converting a Layout to a WordPress theme
Converting a Layout to a WordPress themeConverting a Layout to a WordPress theme
Converting a Layout to a WordPress theme
 
WordPress Theme Development
WordPress Theme DevelopmentWordPress Theme Development
WordPress Theme Development
 
Ecommerce for-wordpress-woocommerce-mcmia
Ecommerce for-wordpress-woocommerce-mcmiaEcommerce for-wordpress-woocommerce-mcmia
Ecommerce for-wordpress-woocommerce-mcmia
 
WordPress Database: What's behind those 12 tables
WordPress Database: What's behind those 12 tablesWordPress Database: What's behind those 12 tables
WordPress Database: What's behind those 12 tables
 
Content Strategy for WordPress
Content Strategy for WordPressContent Strategy for WordPress
Content Strategy for WordPress
 
The Anatomy of a WordPress Theme
The Anatomy of a WordPress ThemeThe Anatomy of a WordPress Theme
The Anatomy of a WordPress Theme
 
Anatomy of a Wordpress theme
Anatomy of a Wordpress themeAnatomy of a Wordpress theme
Anatomy of a Wordpress theme
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

WordPress -Going Beyond The Basics - Seattle WordCamp 2012

  • 1. WordPress – Going Beyond The Basics An Adventure Behind the Scenes of Your WordPress Site! Lucy Beer @webtw WebTrainingWheels.com
  • 2. Who The Hell Am I? Been using WordPress since 2004 I train people in using WordPress, and do online marketing consulting I have taught myself about CSS, PHP etc because I wanted to make WordPress do more and more If I can do it, YOU sure as hell can!!! Find me : www.WebTrainingWheels.com | @webtw Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 3. Why Go Beyond The Basics •You’ve mastered the dashboard and plugins and are ready for more! •If you break something, you want to fix it •You want to understand what you're looking at on the server • You want to change something in your theme that it doesn’t give you an admin option for •Sometimes plugins require you to add a code snippet to your theme files •It’s fun & rewarding…..once you get past scary… Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 4. Tools of the Trade FTP Program (preferable to using cpanel file manager) Filezilla (free) Coda (not free) Code editing program: MAC - Textwrangler (free), Smultron (free) PC – Notepad ++ (free) Desktop Server for local installations: ServerPress.com – free + premium versions Chrome Developer Tools, or Firefox Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 5. Cover Your Ass AKA Build A Safety Net Remove fear by building a safety net: Back everything up files + db (e.g. before upgrade) Duplicator (free) BackupBuddy (not free) WP-DB-Backup + FTP files Practice locally first Practice on your own server with test sites. Things will break – it’s ok, this is how you learn! Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 6. Best Practices For Code Tweaking • Retain original copy of any file you work on • Use a text editor + ftp, not WordPress dashboard • Comment your code if you make a lot of changes • NEVER EVER touch core WP files • Use child themes or duplicate and rename your theme to prevent future upgrades overwriting your changes Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 7. Server Access • FTP credentials: • Host name • Username • Password Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 8. What’s All This Stuff On The Server Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 9. What’s All This Stuff On The Server • Core files • wp-config.php • .htaccess • Your stuff is in wp-content : Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 10. WP-Config Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 11. What’s NOT On The Server? • Database – Stores post/page content – Theme options/settings – Plugin settings – User info, dashboard Settings • Access via control panel, PHPMyAdmin • Or WordPressplugin – Adminer Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 12. Anatomy of a WordPress Theme Twenty Eleven theme files Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 13. Anatomy of a WordPress theme Via Yoast.com Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 14. Anatomy of a WordPress theme Via Yoast.com Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 15. Anatomy of a WordPress theme PHP files generate HTML CSS styles the HTML Typical theme files include: Index.php Style.css Single.php Page.php Header.php Functions.php Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 16. CSS Tweaks • Style.css • Use Developer Tools to test the change you want to make and isolate the part of the code you need to change • [live demo] Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 17. What To Do If Something Breaks • Generally it’s a plugin conflict – Deactivate all, re-activate one by one • If that doesn’t work, test with the default theme • What if you install a bad plugin and you can no longer access your dashboard at all? – Manual deactivation Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 18. Manual Plugin Deactivation Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 19. Resources Awesome blogs and resources: • CSS-Tricks.com • Bill Erickson.net • PerishablePress.com • WP Tuts: http://wp.tutsplus.com/ • Codex: http://codex.wordpress.org/Main_Page • Template hierarchy: http://codex.wordpress.org/images/1/18/Template_Hierarchy.png • Yoast “Anatomy of A WordPress Theme” http://yoast.com/wordpress-theme-anatomy/ Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw
  • 20. Lucy Beer | WebTrainingWheels.com | lucy@webtrainingwheels.com | @webtw