SlideShare ist ein Scribd-Unternehmen logo
1 von 13
WordPress Themes and Plugins
A basic introduction for web
developers
Use free resources!
• WordPress Codex: http://codex.wordpress.org
• Source code of other themes, plugins, and the
WordPress core
• Search the internet!
• WordPress support forums on WordPress.org:
http://wordpress.org/support/
I want a custom theme! What skills do
I need to have?
• CSS
• (X)HTML
• Image editing (only if you plan on having any
images and they’re not already ready to go)
• Copy and paste!
Good to know:
• PHP
• MySQL
• Javascript/jQuery
Theme options
• Make a child theme
• Modify an existing theme
• Write your own new theme (or framework)
from scratch with lots of copying and pasting!
Things to look for when researching
existing themes and frameworks
• Design and layout
• Ease of use and quality of code
• Documentation
• Dependencies
• Efficiency
• Support network
• Theme/framework/author reputation
• Internationalization support
Child themes
• The good: Leverage parent theme upgrades
• The bad: Doing major customization may
mean there might not be much to leverage!
Building smarter, faster, better!
• Child theme: for those who want to rely on
the parent maker for upgrades and need less
customization
• Modifying: for those who don’t care about
upgrades, want a simpler structure, and need
more customization
What is a WordPress theme?
• Stylesheet (style.css)
• Template files
• Functions (optional: functions.php)
/*
Theme Name: MyTheme
URI: the-theme's-homepage
Description: a-brief-description
Author: your-nameAuthor
URI: your-URI
Template: use-this-to-define-a-parent-theme—optional
Version: a-number--optional.
General comments/License Statement if any..
*/
WordPress template hierarchy
Quick, easy, and effective theme
customizations
• Header/logo image – header.php
• Page menus – WP functions: wp_list_pages,
wp_page_menu, wp_nav_menu
• Footer – footer.php
Style everything with CSS!
What can I do with functions.php and
plugins?
• Write any custom code!
• Override pluggable.php functions
• Use WordPress filter and action hooks
• Access the database (using WordPress
functions, of course!)
• Connect WordPress to other applications and
services
Plugins (and theme functions) don’t
have to be complicated!
• Your coding skill can range from non-existent
to expert (REALLY!)
• Search, research, and make liberal use of your
copy and paste skills
/*
Plugin Name: Magic Plugin
Plugin URI: http://example.com/magic-plugin
Description: Magic Plugin performs magic
Version: 2.3
Author: Mr. MagicAuthor
URI: http://example.com/
*/

Weitere ähnliche Inhalte

Was ist angesagt?

Anatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress ThemeAnatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress Theme
Julie Kuehl
 
American University WordPress Theming Lecture
American University WordPress Theming LectureAmerican University WordPress Theming Lecture
American University WordPress Theming Lecture
Aaron Brazell
 
Theme development essentials columbus oh word camp 2012
Theme development essentials   columbus oh word camp 2012Theme development essentials   columbus oh word camp 2012
Theme development essentials columbus oh word camp 2012
Joe Querin
 

Was ist angesagt? (20)

Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.
 
WP101 - Themes and Plugins
WP101 - Themes and PluginsWP101 - Themes and Plugins
WP101 - Themes and Plugins
 
WP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsWP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and Plugins
 
Design todevelop
Design todevelopDesign todevelop
Design todevelop
 
Theme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.orgTheme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.org
 
Anatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress ThemeAnatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress Theme
 
WordPress Theme Reviewers Team
WordPress Theme Reviewers TeamWordPress Theme Reviewers Team
WordPress Theme Reviewers Team
 
A Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 MinutesA Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 Minutes
 
WordPress Code Architecture
WordPress Code ArchitectureWordPress Code Architecture
WordPress Code Architecture
 
American University WordPress Theming Lecture
American University WordPress Theming LectureAmerican University WordPress Theming Lecture
American University WordPress Theming Lecture
 
Themes 101
Themes 101Themes 101
Themes 101
 
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
 
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
 
The WordPress Way
The WordPress WayThe WordPress Way
The WordPress Way
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshop
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
 
The Flexibility of WordPress
The Flexibility of WordPressThe Flexibility of WordPress
The Flexibility of WordPress
 
Theme development essentials columbus oh word camp 2012
Theme development essentials   columbus oh word camp 2012Theme development essentials   columbus oh word camp 2012
Theme development essentials columbus oh word camp 2012
 
W pthemes
W pthemesW pthemes
W pthemes
 
WordPress 101
WordPress 101WordPress 101
WordPress 101
 

Ähnlich wie WordPress Themes and Plugins

The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
Stephanie Leary
 
Open Source CMS Playroom
Open Source CMS PlayroomOpen Source CMS Playroom
Open Source CMS Playroom
librarywebchic
 
Wordpress website development
Wordpress website developmentWordpress website development
Wordpress website development
John Faust
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
Joe Casabona
 

Ähnlich wie WordPress Themes and Plugins (20)

The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
 
Rapid WordPress theme development
Rapid WordPress theme developmentRapid WordPress theme development
Rapid WordPress theme development
 
MCC Web Design Workshop
MCC Web Design WorkshopMCC Web Design Workshop
MCC Web Design Workshop
 
Wordpress theme development
Wordpress theme developmentWordpress theme development
Wordpress theme development
 
Wordpress overview
Wordpress overviewWordpress overview
Wordpress overview
 
Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25
 
Child Themes and CSS in WordPress
Child Themes and CSS in WordPressChild Themes and CSS in WordPress
Child Themes and CSS in WordPress
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
Wordpress intro
Wordpress introWordpress intro
Wordpress intro
 
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slides
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slidesKeep Your Code Organized! WordCamp Montreal 2013 Presentation slides
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slides
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
Starting WordPress Theme Review
Starting WordPress Theme ReviewStarting WordPress Theme Review
Starting WordPress Theme Review
 
Open Source CMS Playroom
Open Source CMS PlayroomOpen Source CMS Playroom
Open Source CMS Playroom
 
Create Your Own Starter Files
Create Your Own Starter FilesCreate Your Own Starter Files
Create Your Own Starter Files
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With Love
 
WordPress Intermediate Workshop
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate Workshop
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & Security
 
Wordpress website development
Wordpress website developmentWordpress website development
Wordpress website development
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
 
WordPress - Open Source Overview Presentation
WordPress - Open Source Overview PresentationWordPress - Open Source Overview Presentation
WordPress - Open Source Overview Presentation
 

Kürzlich hochgeladen

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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
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...
 
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
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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...
 
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...
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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)
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

WordPress Themes and Plugins

  • 1. WordPress Themes and Plugins A basic introduction for web developers
  • 2. Use free resources! • WordPress Codex: http://codex.wordpress.org • Source code of other themes, plugins, and the WordPress core • Search the internet! • WordPress support forums on WordPress.org: http://wordpress.org/support/
  • 3. I want a custom theme! What skills do I need to have? • CSS • (X)HTML • Image editing (only if you plan on having any images and they’re not already ready to go) • Copy and paste!
  • 4. Good to know: • PHP • MySQL • Javascript/jQuery
  • 5. Theme options • Make a child theme • Modify an existing theme • Write your own new theme (or framework) from scratch with lots of copying and pasting!
  • 6. Things to look for when researching existing themes and frameworks • Design and layout • Ease of use and quality of code • Documentation • Dependencies • Efficiency • Support network • Theme/framework/author reputation • Internationalization support
  • 7. Child themes • The good: Leverage parent theme upgrades • The bad: Doing major customization may mean there might not be much to leverage!
  • 8. Building smarter, faster, better! • Child theme: for those who want to rely on the parent maker for upgrades and need less customization • Modifying: for those who don’t care about upgrades, want a simpler structure, and need more customization
  • 9. What is a WordPress theme? • Stylesheet (style.css) • Template files • Functions (optional: functions.php) /* Theme Name: MyTheme URI: the-theme's-homepage Description: a-brief-description Author: your-nameAuthor URI: your-URI Template: use-this-to-define-a-parent-theme—optional Version: a-number--optional. General comments/License Statement if any.. */
  • 11. Quick, easy, and effective theme customizations • Header/logo image – header.php • Page menus – WP functions: wp_list_pages, wp_page_menu, wp_nav_menu • Footer – footer.php Style everything with CSS!
  • 12. What can I do with functions.php and plugins? • Write any custom code! • Override pluggable.php functions • Use WordPress filter and action hooks • Access the database (using WordPress functions, of course!) • Connect WordPress to other applications and services
  • 13. Plugins (and theme functions) don’t have to be complicated! • Your coding skill can range from non-existent to expert (REALLY!) • Search, research, and make liberal use of your copy and paste skills /* Plugin Name: Magic Plugin Plugin URI: http://example.com/magic-plugin Description: Magic Plugin performs magic Version: 2.3 Author: Mr. MagicAuthor URI: http://example.com/ */

Hinweis der Redaktion

  1. For web developers who are familiar with WordPress and want to get started with their own themes and plugins
  2. YAY for open source! Everything I know I learned from the interwebs! Keep in mind: - WordPress is evolving RAPIDLY! If you want to know where it's going, you can find information on WordPress.org and even check out the WordPress trac. - Random info/code on the web can be out of date or just plain wrong... always test, keep/make backups, and/or use version control.
  3. Don’t be intimidated by a little bit of code! Copy and paste away, experiment with editing, and maybe you’ll learn something… A little goes a long way!
  4. Oh good, I already know those stuffs! Now what are my options? Use an existing theme framework or parent theme to make a child theme Modify an existing theme (make sure the license allows this... many do!) Writing a theme from total scratch without any copying and pasting is just plain silly! At least copy and paste the loop!
  5. Do you like what’s already there? How familiar are you with it? How much customization do you need? Do you need WordPress widget support? Is it compatible with plugins you want to use? How many themes are you going to make? Should I modify a theme or build a child? Watch out: random themes may have bugs or just not work as advertised, code might not be easy to follow or modify Support network: free/paid access to forums and lists, paid development services Is the code commented/self-explanatory? Is it valid XHTML? Cross-browser compatible? Is there an active, helpful, and enthusiastic community for support? Does the framework build upon WordPress’ existing standards or will I have to learn a whole new set of functions? How long will it take me to get up to speed? Does the framework do too much more than I need? Not enough? For best (quick) results: Choose a popular, well-tested theme or framework
  6. A separate WordPress theme that works in conjunction with and builds off of an existing parent theme, using as much or as little of the parent theme's styles, templates, and functions as you want it to! You need to have the parent theme installed in order for the child theme to work (the child theme must be the activated theme). New in 2.7: Override parent templates and add new custom templates Child themes are definitely sounding more interesting these days… but are they really the answer? New in 2.7: Override parent templates and add new custom templates (previously limited to CSS and functions) YAYs: Leverage parent theme upgrades without having to update your own custom theme. Oh noes: If you do major customization and override a lot of templates, there may be little to leverage in the parent theme. Upgrades to the existing theme (adding features, enabling future WordPress compatibility, etc.) may still have to be merged into your customized one.
  7. Child theme: Better for those who want to rely on the parent maker for upgrades and need less customization (best if you can do almost everything through CSS or PHP functions/plugins). Modifying: For those who need more customization to the various templates. Less to learn and less files to manage, so everything’s a bit more straightforward. Remember that themes may not always be standards compliant or fully supported by the latest WordPress release. This is why I often start with a cleaned up version of the default theme, Kubrick. Personal opinion: I don’t want to learn a new complicated framework, I just want to support the WordPress core and would rather spend my time keeping up and learning to do more with it. Plus I don’t want any extra bloat in my theme. HOWEVER, if WordPress came out with an official theme framework as part of the core distribution then I’d probably jump on it! I usually either start with a theme the client has picked out and do as much customization as necessary, or when starting with a photoshop template I directly modify a blanked out WordPress default theme. I sell my support and customization services usually on an hourly basis and all of the sites are different. If a client wants an upgrade to a newer WP, then it’s beneficial to me that they pay for it! So it also depends on your business model.
  8. Stylesheet (style.css) – Know your CSS! Template files – Site markup and a bit of PHP Functions (optional: functions.php) – Write custom PHP code to add functionality, features, and services to your theme!
  9. WordPress loads the appropriate template and sets certain variables based on the query string In your template, you need to write code that gets the content through these variables… eg. on most pages you’ll be iterating through an array posts AND you also need to write the site markup to display this content on the page Header, footer, sidebar, comments
  10. Header/logo image – upload an image into the theme directory, adjust markup in header.php, and style with CSS Horizontal page menu – call WP function wp_list_pages(‘title_li=‘) in header.php and style with CSS Footer – adjust markup in footer.php and style with CSS Even if you are new to themes, if you know CSS you can already do a lot just by editing stylesheets!
  11. What CAN’T you do? You can make your site do almost anything! Any function in functions.php can be written as a plugin (and vise versa) If the function only makes sense in your theme, then it’s probably better to put it in functions.php Main reason to make it a plugin: Share your super useful and cool functions across themes and with others! For those who know PHP or aren’t afraid of it! Override pluggable.php functions Use WordPress filters to manipulate data Use WordPress action hooks to run custom code where you want it Use built-in WordPress functions Access the database (using WordPress functions, of course) Connect WordPress to other applications and services For example, I use my WordPress website to refresh profile boxes on my Facebook app more or less hourly, because Facebook caches the content otherwise.
  12. Sometimes all you need is to be able to understand what a piece of code does to use it. What’s the point in doing something someone else has already done? At the very least you can check out the options, and if you feel like it, you can do it yourself better!