Adopt or hack - how to hack a theme in a Drupal way


Published on

How to create a base theme for Drupal 7

Published in: Design, Technology
  • To hack any website, email, mobile phone (call, text message, Whatsapp, bbm), social network (fbk, twitter, Instagram) change your grades, find your target password (friends, wife, husband, boss, girl, boy friends) to know if they are cheating or not...Contact jack, Email ; ( ) .Whatsapp me :: +60167569133
    Are you sure you want to  Yes  No
    Your message goes here
  • Do you need to keep an eye on your spouse by gaining access to their emails? As a parent,if you want to know what your kids do on a daily basis on social networks (This includes facebook, twitter ,instagram, whatsapp, WeChat and others to make sure they're not getting into trouble? Whatever it is,Ranging from Bank Jobs, Flipping cash, Criminal records, DMV, Taxes, Name it,i can get the job done.Am a professional hacker with 10 Years+ experience.Contact me at him and Its done.Tell him Daura referred you
    Are you sure you want to  Yes  No
    Your message goes here
  • is a professional hacking and investigative service provider * Find Out if Your Partner/Spouse is Cheating *Hack and UPGRADE UNIVERSITY GRADES * Hack into FACEBOOK and EMAIL ACCOUNTS * Hack Whatsapp, Text Messages and Call Logs CONTACT us at: He helps to monitor my employees
    Are you sure you want to  Yes  No
    Your message goes here
  • Thanks for this Marek
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Adopt or hack - how to hack a theme in a Drupal way

  1. 1. Adopt or hack How to hack a theme in a Drupal way London learning meetup 2014 Marek Sotak - @sotak -
  2. 2. @sotak
  3. 3. You have a vision...
  4. 4. Choices...
  5. 5. Where is your creativity now?
  6. 6. Should I hack or adopt?
  7. 7. Drupal police: So you want to hack?
  8. 8. Direct code changes are OK if: you know what you are doing you have process behind of keeping changes after upgrade > patches
  9. 9. Hack with confidence - systematically
  10. 10. Lets put a theme into a theme to override a theme
  11. 11. themes nested in each other Due to performance multiple sub-theming is not recommended To make a sub-theme of another theme, we need to declare: base theme = themeName in our sub-theme's .info file Sub-theming
  12. 12. Lets try it out
  13. 13. Lets create a sub-theme of Bartik called “My Bartik 1. Create a new directory in sites/all/themes called “mybartik” the theme name should be unique the sub-theme can be anywhere in the Drupal structure 2. Create new file within mybartik directory called 3. Edit and insert one line name = My Bartik base theme = bartik core = 7.x 4. See the result on the appearance page Creating a sub-theme
  14. 14. Sub-theme shares these resources from its base theme ● stylesheets ● scripts ● *.tpl.php files ● anything declared in template.php ● screenshot Creating a sub-theme
  15. 15. Sub-theme does not share these resources from its base theme ● logo.png ● favicon ● some .info file settings (regions,...) theme-settings.php ● color module integration Creating a sub-theme
  16. 16. Adding your stylesheet - overriding the CSS in the sub-theme .info file stylesheets[all][] = style.css works same for the scripts scripts[] = script.js Creating a sub-theme
  17. 17. Play and learn with CSS - small intro
  18. 18. Once you master the CSS > freedom
  19. 19. CSS Selectors - CSS Reference - Other resources CSS Resources
  20. 20. Base-themes available
  21. 21. Base-themes - Do you still need that scaffolding?
  22. 22. “Creativity comes from looking for the unexpected and stepping outside your own experience.” Masaru Ibuka
  23. 23. Workshops in London 1 day workshops Basic theming Advanced theming drupal module development Drupal knowledge sharing Consulting £130/person excl. VAT
  24. 24. @sotak
  25. 25. Image credits Machines - Burglar notice - Cathedral - Containers - Hack systematically - Machines - Police - Cups choices - OK hacking - Pencils - American freedom - Workshop - Workshop 2 - All images are under CreativeCommons license ( Thank you!