How to get your theme in WordPress


Published on

1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

How to get your theme in WordPress

  1. 1. Nisha Singh @inisa
  2. 2. How to get your theme theme repository
  3. 3. Theme Repository
  4. 4. How theme reviewing team work• Theme review mailing list• Make WordPress theme Blog• Theme Trac• IRC (Internet Relay Chat)
  5. 5. Theme Trac• Current approved theme. priority #1• Ticket older then two weeks. priority #2• Previously Reviewed, but not Approved theme. priority #3• New Themes, Never Reviewed. priority #4
  6. 6. Current Approved Themes
  7. 7. Theme Review• Ticket are assigned by priority• Reviewers assign tickets to themselves.• Issues are noted in a comment.• Ticket are closed as Approved or Not- Approved.• Previously approved tickets mostly diff review only.
  8. 8. Before looking at the Code1. Theme Name2. Author URI and Theme URI3. Footer Credit Link4. License5. Copyright6. Screenshot7. Correct Spelling of WordPress
  9. 9. Single Tickets
  10. 10. Guidelines• Code Quality• Presentation vs Functionality• Theme Features• Template Tags and Hooks• WordPress-Generated CSS Classes• Theme Template Files• Security and Privacy• Theme Documentation• Unit Test
  11. 11. Guidelines (Code Quality)Themes must not generate any WordPress• deprecated-function notices• PHP errors• warnings or notices• HTML/CSS validation errors• JavaScript errors
  12. 12. Guidelines – (Debug Error)
  13. 13. Guidelines (Presentation vs Functionality)• Language• Themes is to define the presentation of user content.• Theme-independent site options or functionality.
  14. 14. Guidelines (Required Theme Features)• Automatic Feed Links. add_theme_support( automatic-feed-links )• Custom Backgrounds add_theme_support(custom- background)• Custom Header add_theme_support(custom- header)• Post Thumbnails add_theme_support(post- thumbnails) / the_post_thumbnail()• Post Formats• Sidebars register_sidebar() / dynamic_sidebar()• Navigation Menus wp_nav_menu()
  15. 15. Guidelines (Required Template Tags and Hooks)Template Tags• comments.php (comments_template()• header.php (get_header()• footer.php (get_footer()• siebar.php (get_sidebar()• searchform.php ( get_search_form()Hooks• wp_title()• wp_head() (immediately before </head>)• body_class()• wp_footer() (immediately before </body>)• content_width• post_class()• wp_link_pages()• paginate_comments_links(), or previous_comments_link()/next_comments_link()• posts_nav_link(), or previous_posts_link()/next_posts_link(), or paginate_links()• comment_form• delete_post
  16. 16. Tags
  17. 17. Guidelines (WordPress-Generated CSS Classes)• Alignment Classes - aligncenter - alignleft - alignright• Caption Related Classes (Gallery) - wp-caption - wp-caption-text - gallery-caption• Post Classes - sticky• Comment Classes - bypostauthor
  18. 18. Core CSS
  19. 19. Guidelines (Theme Template Files)Required Files -• index.php• Comments.php• screenshot.png• Style.cssRecommended Files –• 404.php• archive.php• page.php• search.php• single.php• header.php• footer.php• sidebar.php
  20. 20. Guidelines (Security and Privacy)• Prefix.• Required to implement Theme Options.• Use the add_theme_page() function to add the Theme Settings Page rather than using add_menu_page() to add a top-level menu.• Use single array to save theme option.• Themes are required to use esc_attr() for text inputs and esc_html() for textareas.• Use validate and sanitize all untrusted data.
  21. 21. Guidelines (Theme Documentation)• Provide end-user documentation
  22. 22. Guidelines (Theme Unit Test)• Themes are required to meet all requirements in the Theme Unit Tests.- Menu - Static Front Page - 404 Page & Search Results Page - Index Page - Scheduled Post - Draft Post - Layout Test - Readability Test- Clearing Floats- Post Format Test - Widget
  23. 23. Guidelines( Tools & Plugins)Tools• Data: Theme Unit TestPlugins• Theme Check Plugin• WP DEBUG• Log Deprecated Notice• Debug bar• Moster Widget
  24. 24. Theme Check Result
  25. 25. HOW TO BECOME A REVIEWER• Setup a WordPress test environment• Setup Theme - Trac access (Create account)• Join Theme Reviewers Mail List.• Go to the Trac Ticket Request Page and Leave a Comment asking to be assigned a Theme• Perform same test review.• Once you have done enough Theme reviews, you will be added to the “Reviewers” group.
  26. 26. Important Links• Theme review mailing list -> eme-reviewers• Make WordPress theme Blog ->• Theme Trac ->• IRC (Internet Relay Chat) ->
  27. 27. • Code Quality ->• Presentation vs Functionality -> onality• Theme Features ->• Template Tags and Hooks -> ooks• Theme Template Files ->• Security and Privacy ->• Theme Documentation -> n• Unit Test ->
  28. 28. • Join the Theme Mailing List -> reviewers• Trac ticket request -> ticket-request-queue/
  29. 29. Thanks,Questions