ThemesPART 3  Themes
Themeswhat’s a theme?
Themes A Theme modifies the way the siteis displayed, without modifying the        underlying software.
Themes    Live in subdirectories residing in wp-content/themes/The Themes subdirectory holds all of the Themes stylesheetf...
ThemesWordPress includes a default theme in       each new installation.
Themes
Themesanatomy of atheme JOOST         DE       VALK
Themesanatomy of atheme JOOST         DE       VALK
Themesanatomy of atheme JOOST         DE       VALK
Themesanatomy of atheme JOOST         DE       VALK
Themesanatomy of atheme JOOST         DE       VALK
Themesanatomy of atheme JOOST         DE       VALK
ThemesTHREE TYPES1             2           3stylesheet    functions   template                          files
ThemesStyle.css
Themes
Themes
ThemesFunctions.php
ThemesBehaves like a plugin.Enable Theme Featureslike Sidebars, NavigationMenus, Post Thumbnails,Post Formats, CustomHeade...
Themestemplate files
Themesstyle.cssThe main stylesheet. This must be included with your Theme,and it must contain the information header for y...
Themesindex.phpThe main template. If your Theme provides its own templates,index.php must be present.
Themescomments.phpThe comments template.
Themesfront-page.phpThe front page template, it is only used if you use a static frontpage.
Themeshome.phpThe home page template, which is the front page by default. Ifyou use a static front page this is the templa...
Themeshome.phpThe home page template, which is the front page by default. Ifyou use a static front page this is the templa...
Themesindex.phpThe single post template. Used when a single post is queried.For this and all other query templates, index....
Themessingle-<post-type>.phpThe single post template used when a single post from acustom post type is queried. For exampl...
Themespage.phpThe page template. Used when an individual Page is queried.
Themescategory.phpThe category template. Used when a category is queried.
Themestag.phpThe tag template. Used when a tag is queried.
Themestaxonomy.phpThe term template. Used when a term in a custom taxonomyis queried.
Themesauthor.phpThe author template. Used when an author is queried.
Themesdate.phpThe date/time template. Used when a date or time is queried.Year, month, day, hour, minute, second.
Themesarchive.phpThe archive template. Used when a category, author, or dateis queried. Note that this template will be ov...
Themessearch.phpThe search results template. Used when a search isperformed.
Themesattachment.phpAttachment template. Used when viewing a singleattachment.
Themesimage.phpImage attachment template. Used when viewing a singleimage attachment. If not present, attachment.php will ...
Themes404.phpThe 404 Not Found template. Used when WordPress cannotfind a post or page that matches the query.
Themes
Themes
Themesconditional  tags
ThemesLet’s say you wanted to display asnippet of text above the series ofposts, but only on the main pageof your blog. Wi...
ThemesWarning: You can only use conditional query  tags after the init action hook in WordPress.For themes, this means the...
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themes
Themesget_header()                  page.php     Loop Start     Loop End get_footer()
Themes
Themes custom  pagetemplates
Themes
Themes
Themes
Themeswidgets &sidebars
Themeswidgets & sidebars
Themeswidgets & sidebars
Themeswidgets & sidebars
Themesmenus
Themes
Themes
Themespost thumbnails
Themes
Themes
ANY ?’s
WordPress Bootcamp Part 3 - Themes
WordPress Bootcamp Part 3 - Themes
Upcoming SlideShare
Loading in...5
×

WordPress Bootcamp Part 3 - Themes

692

Published on

The third session for Metronet's WordPress Bootcamp.

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
692
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • WordPress Bootcamp Part 3 - Themes

    1. 1. ThemesPART 3 Themes
    2. 2. Themeswhat’s a theme?
    3. 3. Themes A Theme modifies the way the siteis displayed, without modifying the underlying software.
    4. 4. Themes Live in subdirectories residing in wp-content/themes/The Themes subdirectory holds all of the Themes stylesheetfiles, template files, and optional functions file (functions.php), JavaScript files, and images. For example, a Theme named "test" would reside in the directory wp-content/themes/test/
    5. 5. ThemesWordPress includes a default theme in each new installation.
    6. 6. Themes
    7. 7. Themesanatomy of atheme JOOST DE VALK
    8. 8. Themesanatomy of atheme JOOST DE VALK
    9. 9. Themesanatomy of atheme JOOST DE VALK
    10. 10. Themesanatomy of atheme JOOST DE VALK
    11. 11. Themesanatomy of atheme JOOST DE VALK
    12. 12. Themesanatomy of atheme JOOST DE VALK
    13. 13. ThemesTHREE TYPES1 2 3stylesheet functions template files
    14. 14. ThemesStyle.css
    15. 15. Themes
    16. 16. Themes
    17. 17. ThemesFunctions.php
    18. 18. ThemesBehaves like a plugin.Enable Theme Featureslike Sidebars, NavigationMenus, Post Thumbnails,Post Formats, CustomHeaders, Custom functions.phpBackgrounds, etc.Define functions specificto your theme.Setup an options menuallowing users todynamically change somesettings for your site.
    19. 19. Themestemplate files
    20. 20. Themesstyle.cssThe main stylesheet. This must be included with your Theme,and it must contain the information header for your Theme.
    21. 21. Themesindex.phpThe main template. If your Theme provides its own templates,index.php must be present.
    22. 22. Themescomments.phpThe comments template.
    23. 23. Themesfront-page.phpThe front page template, it is only used if you use a static frontpage.
    24. 24. Themeshome.phpThe home page template, which is the front page by default. Ifyou use a static front page this is the template for the pagewith the latest posts.
    25. 25. Themeshome.phpThe home page template, which is the front page by default. Ifyou use a static front page this is the template for the pagewith the latest posts.
    26. 26. Themesindex.phpThe single post template. Used when a single post is queried.For this and all other query templates, index.php is used if thequery template is not present.
    27. 27. Themessingle-<post-type>.phpThe single post template used when a single post from acustom post type is queried. For example, single-books.phpwould be used for displaying single posts from the custompost type books. index.php is used if the query template forthe custom post type is not present.
    28. 28. Themespage.phpThe page template. Used when an individual Page is queried.
    29. 29. Themescategory.phpThe category template. Used when a category is queried.
    30. 30. Themestag.phpThe tag template. Used when a tag is queried.
    31. 31. Themestaxonomy.phpThe term template. Used when a term in a custom taxonomyis queried.
    32. 32. Themesauthor.phpThe author template. Used when an author is queried.
    33. 33. Themesdate.phpThe date/time template. Used when a date or time is queried.Year, month, day, hour, minute, second.
    34. 34. Themesarchive.phpThe archive template. Used when a category, author, or dateis queried. Note that this template will be overridden bycategory.php, author.php, and date.php for their respectivequery types.
    35. 35. Themessearch.phpThe search results template. Used when a search isperformed.
    36. 36. Themesattachment.phpAttachment template. Used when viewing a singleattachment.
    37. 37. Themesimage.phpImage attachment template. Used when viewing a singleimage attachment. If not present, attachment.php will beused.
    38. 38. Themes404.phpThe 404 Not Found template. Used when WordPress cannotfind a post or page that matches the query.
    39. 39. Themes
    40. 40. Themes
    41. 41. Themesconditional tags
    42. 42. ThemesLet’s say you wanted to display asnippet of text above the series ofposts, but only on the main pageof your blog. With the is_home()Conditional Tag, that task is made easy.
    43. 43. ThemesWarning: You can only use conditional query tags after the init action hook in WordPress.For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.
    44. 44. Themes
    45. 45. Themes
    46. 46. Themes
    47. 47. Themes
    48. 48. Themes
    49. 49. Themes
    50. 50. Themes
    51. 51. Themes
    52. 52. Themes
    53. 53. Themes
    54. 54. Themes
    55. 55. Themes
    56. 56. Themes
    57. 57. Themes
    58. 58. Themes
    59. 59. Themes
    60. 60. Themesget_header() page.php Loop Start Loop End get_footer()
    61. 61. Themes
    62. 62. Themes custom pagetemplates
    63. 63. Themes
    64. 64. Themes
    65. 65. Themes
    66. 66. Themeswidgets &sidebars
    67. 67. Themeswidgets & sidebars
    68. 68. Themeswidgets & sidebars
    69. 69. Themeswidgets & sidebars
    70. 70. Themesmenus
    71. 71. Themes
    72. 72. Themes
    73. 73. Themespost thumbnails
    74. 74. Themes
    75. 75. Themes
    76. 76. ANY ?’s
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×