Wp and jq

433 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
433
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
2
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
  • \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
  • \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
  • Wp and jq

    1. 1. Wordcamp LA | September 15, 2012 @nataliemac
    2. 2. Adding jQuery Magic toYour WordPress Theme Wordcamp LA | September 15, 2012 @nataliemac
    3. 3. @nataliemac
    4. 4. About me @nataliemac Purple Pen Productions socal WP Meetup Group @purplepenjQuery LA Meetup group @socalwp jQuery for Designers @nataliemac
    5. 5. @nataliemac
    6. 6. jQuery Plugins & tutorialsCan I use thatwithWordPress? @nataliemac
    7. 7. jQuery Plugins & tutorialsCan I use that How Do I usewith that withWordPress? WordPress? @nataliemac
    8. 8. @nataliemac
    9. 9. Using jQuery InWordPress Themes @nataliemac
    10. 10. @nataliemac
    11. 11. But First...A few pointers and Best Practices @nataliemac
    12. 12. @nataliemac
    13. 13. Prefix all functions @nataliemac
    14. 14. @nataliemac
    15. 15. Register Your Scripts (and Styles)wp_register_script( $handle, $src, $deps, $ver, $in_footer ); wp_register_style( $handle, $src, $deps, $ver, $media ); @nataliemac
    16. 16. @nataliemac
    17. 17. EnQueue Your Scripts (and Styles)wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); wp_enqueue_style( $handle, $src, $deps, $ver, $media ); @nataliemac
    18. 18. @nataliemac
    19. 19. Only Load em when you Need em conditional comments enqueue in template files @nataliemac
    20. 20. @nataliemac
    21. 21. Use wps version of WordPress @nataliemac
    22. 22. @nataliemac
    23. 23. Dont override defaults for distributiondont force 3rd party dependencies on unsuspecting users Use Google Libraries plugin @nataliemac
    24. 24. @nataliemac
    25. 25. Load Scripts in the Footer when possible @nataliemac
    26. 26. @nataliemac
    27. 27. Use jQuerys "$"Use a closure or ready function @nataliemac
    28. 28. @nataliemac
    29. 29. Use included pluginsLots of choices included with WordPress @nataliemac
    30. 30. @nataliemac
    31. 31. Remember DependenciesjQuery for plugins, plugins for custom code @nataliemac
    32. 32. @nataliemac
    33. 33. Onto the code... @nataliemac
    34. 34. @nataliemac
    35. 35. Q&Aask your questions @nataliemac

    ×