SlideShare una empresa de Scribd logo
1 de 50
Descargar para leer sin conexión
Ultimate

power!
Ultimate
freedom!
Register a few widget areas and make your site look like anything!
I’ve been beating that horse for a while.
It’s definitely a skill worth developing. And we will - in a few minutes.
But let’s take a step back.
Here’s a slide from last summer, complaining about phone views that look too much alike.
Should we change things up every time we get a hankering to try something new?
Not if you follow the gospel of the heat map. Where the eyeballs go, so must the content.
Oh really?
Where are the eyeballs going now?
How bout now?
We’re designers.
We can make the eyeball go wherever we please!
We can make the
eyeballs go where WE
want.
We’re designers.
We can make the eyeball go wherever we please!
Which is great if the situation calls for a new approach.
We can make the
eyeballs go where WE
want.
If our users are looking for visual stimulation. Inspiration. Excitement.
But sometimes, they’re just filling out a form for a car loan. Or paying a bill.
In which case, a little more attention to the heat maps might be a good idea.
This is my young friend Jimminy, a developer who splits his time between West Virginia and the Bay area. He spends a lot of time around regular people - who are
actually just like the rest of us when we’re trying to get stuff done.
I saw this tweet of his a couple days ago - just as I was thinking about how we have all this power - the power to direct the eye.
Now, sometimes we do need to break away. We’re building something new. (My poor husband. He sees these tennis balls every damn day, practically.)
As a home page goes, this site - a Genesis site, btw, is pretty out there. No header. No footer. Main navigation around the ball.
But it didn’t come from nowhere. There was this folder, first.
So. How do we execute this in Genesis? Or any other theme?
Widget. Areas.
Here’s a demo from a talk I did last year.
So. How do we execute this in Genesis? Or any other theme?
What’s 

the difference?
Like I said.
Ultimate power.
90% of the basis of layout flexibility, I think, is widget areas.
1
2 3 4
And these FOUR widget areas.
Underscores.
How would we do this in Underscores?
Step 1. The
markup.
Before.2
3
4
1
Let’s start with the markup.
This is a home page, but it could be any page - a blog page, a special page you’ve created for a reason - even an archive page.
But this happens to be an Underscores home page.
We’ve got our main content area, with the Loop and then two sidebar widgets.
markup - before
Let’s start with the markup.
After.
1
2 3 4
And these FOUR widget areas.
front-page.php
Step 2. 

From boxes to
widgets.
Register sidebar.
And, finally . . .
Let's dress ’em up!
And get ’em dressed.
See what I mean about floating everything left?
Mary Baum
racquetpress.com
@marybaum
Genesis.
Same three files.
It looks more complicated and codey, but it’s really not.
For one thing, there’s about a million people writing code snippets we can just drop in.
Again, our demo.
So with Genesis - I saw there was a sticky header menu already hard-coded in the Minimum Pro theme, so I decided to leave it. So let’s go through the process one
more time.
The visual reference.
Now let’s take the clothes off these divs.
And here are the asides we’re going to make…
and move.
And here they are in place. K - let’s code it up!
The code to make the asides is pretty much identical to the Underscores code.
You can add markup, like …
Underscores:Widgeted area with markup.
Underscores, if you want. Generally, I only add it when I’m changing the style of the widget title. I mean, really - h4?
But the only arguments you really need are those first three: id, name and description.
(Now, this is not a CSS id - I’m not big on those. I greatly prefer classes, and in fact I make these IDs class names, or parts of class names.)
If you want more control, you can add the before-widget and after-widget arguments, and give them some markup too. Again, just like Underscores.
front-page.php
Laying out the widgets is pretty straightforward. I just found a recent article that showed you can do it without the action hook - almost exactly like Underscores. But I
KNOW this works.
I commented out the loop, but I could just as easily have blown it away. If I wanted a bunch of post excerpts above or below the widgets, the loop will bring ’em in.
style.css
Now let’s make them match the Underscores widgets.
Widgets panel.
Now let’s add the Featured Posts … without rewriting the markup, I might add, the way I did with the plugin we used with Underscores.

Más contenido relacionado

La actualidad más candente

Web Design 101
Web Design 101Web Design 101
Web Design 101vegdwk
 
From a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by StepFrom a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by StepEast Bay WordPress Meetup
 
Making the Mobile Web Work
Making the Mobile Web WorkMaking the Mobile Web Work
Making the Mobile Web WorkTerry Ryan
 
Design Swoon - Visual Trends & WordPress
Design Swoon - Visual Trends  & WordPressDesign Swoon - Visual Trends  & WordPress
Design Swoon - Visual Trends & WordPressSara Cannon
 
Atomic design, a problem of expectations
Atomic design, a problem of expectationsAtomic design, a problem of expectations
Atomic design, a problem of expectationsFrancesco Improta
 
Get 900 + oneway links for Free
Get 900 + oneway links for FreeGet 900 + oneway links for Free
Get 900 + oneway links for Freeumerica76
 
Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone WildJared Smith
 
HTML Design for Devices
HTML Design for DevicesHTML Design for Devices
HTML Design for DevicesTerry Ryan
 
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...Julie Anne
 
Interaction Implementation
Interaction ImplementationInteraction Implementation
Interaction ImplementationRemy Sharp
 
Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone WildJared Smith
 
The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)
The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)
The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)Mykl Roventine
 
Web Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSWeb Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSAnnMarie Ppl
 
There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...
There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...
There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...BarkWorld Expo
 
"Wordpress And Your Brand" 2010 - By Sara Cannon
"Wordpress And Your Brand" 2010 - By Sara Cannon"Wordpress And Your Brand" 2010 - By Sara Cannon
"Wordpress And Your Brand" 2010 - By Sara CannonSara Cannon
 

La actualidad más candente (18)

Web Design 101
Web Design 101Web Design 101
Web Design 101
 
From a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by StepFrom a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by Step
 
Making the Mobile Web Work
Making the Mobile Web WorkMaking the Mobile Web Work
Making the Mobile Web Work
 
Compass
CompassCompass
Compass
 
Design Swoon - Visual Trends & WordPress
Design Swoon - Visual Trends  & WordPressDesign Swoon - Visual Trends  & WordPress
Design Swoon - Visual Trends & WordPress
 
Atomic design, a problem of expectations
Atomic design, a problem of expectationsAtomic design, a problem of expectations
Atomic design, a problem of expectations
 
Le Wagon - 2h Landing
Le Wagon - 2h LandingLe Wagon - 2h Landing
Le Wagon - 2h Landing
 
Get 900 + oneway links for Free
Get 900 + oneway links for FreeGet 900 + oneway links for Free
Get 900 + oneway links for Free
 
Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone Wild
 
HTML Design for Devices
HTML Design for DevicesHTML Design for Devices
HTML Design for Devices
 
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
Julie Anne U.S. Writer for Hire Website Copywriting - Product Descriptions, N...
 
Interaction Implementation
Interaction ImplementationInteraction Implementation
Interaction Implementation
 
Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone Wild
 
The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)
The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)
The Non-Designer’s Guide to WordPress (Making Your Site Look Awesome)
 
Web Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSWeb Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSS
 
There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...
There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...
There's a Plugin for That: Benefits of Transitioning Your Blog or Site to Wor...
 
Proof
ProofProof
Proof
 
"Wordpress And Your Brand" 2010 - By Sara Cannon
"Wordpress And Your Brand" 2010 - By Sara Cannon"Wordpress And Your Brand" 2010 - By Sara Cannon
"Wordpress And Your Brand" 2010 - By Sara Cannon
 

Similar a Widget areas

Target anything wilth body classes!
Target anything wilth body classes!Target anything wilth body classes!
Target anything wilth body classes!WordCamp
 
Programming methodology lecture11
Programming methodology lecture11Programming methodology lecture11
Programming methodology lecture11NYversity
 
Polycount Tower Desert Cabin Blog
Polycount Tower Desert Cabin BlogPolycount Tower Desert Cabin Blog
Polycount Tower Desert Cabin BlogFredrik Simons
 
La build your own website september 5
La build your own website september 5La build your own website september 5
La build your own website september 5Thinkful
 
Visual Rhetoric March 25th
Visual Rhetoric March 25thVisual Rhetoric March 25th
Visual Rhetoric March 25thMiami University
 
WRA 210 April 14th PowerPoint
WRA 210 April 14th PowerPointWRA 210 April 14th PowerPoint
WRA 210 April 14th PowerPointMiami University
 
Visual rhetoric, April 22, 2013
Visual rhetoric, April 22, 2013Visual rhetoric, April 22, 2013
Visual rhetoric, April 22, 2013Miami University
 
Build your website before you install wordpress.
Build your website before you install wordpress.Build your website before you install wordpress.
Build your website before you install wordpress.Russell Aaron
 
Keeping Eloquent Eloquent
Keeping Eloquent EloquentKeeping Eloquent Eloquent
Keeping Eloquent EloquentColin DeCarlo
 
Designing Edenbee
Designing EdenbeeDesigning Edenbee
Designing EdenbeeJames Box
 
Mobile App Feature Configuration and A/B Experiments
Mobile App Feature Configuration and A/B ExperimentsMobile App Feature Configuration and A/B Experiments
Mobile App Feature Configuration and A/B Experimentslacyrhoades
 
Lesson 4 Adding Navigator and PagesAdding Links Transcript- .docx
Lesson 4 Adding Navigator and PagesAdding Links Transcript- .docxLesson 4 Adding Navigator and PagesAdding Links Transcript- .docx
Lesson 4 Adding Navigator and PagesAdding Links Transcript- .docxSHIVA101531
 
Intro to Drupal Slides - DrupalCampSC 2014
Intro to Drupal Slides - DrupalCampSC 2014Intro to Drupal Slides - DrupalCampSC 2014
Intro to Drupal Slides - DrupalCampSC 2014Sarah Shealy
 
Amsterdam Pm Web Process
Amsterdam Pm Web ProcessAmsterdam Pm Web Process
Amsterdam Pm Web Processamsterdampm
 

Similar a Widget areas (20)

Target anything wilth body classes!
Target anything wilth body classes!Target anything wilth body classes!
Target anything wilth body classes!
 
Scalding at Etsy
Scalding at EtsyScalding at Etsy
Scalding at Etsy
 
Programming methodology lecture11
Programming methodology lecture11Programming methodology lecture11
Programming methodology lecture11
 
Polycount Tower Desert Cabin Blog
Polycount Tower Desert Cabin BlogPolycount Tower Desert Cabin Blog
Polycount Tower Desert Cabin Blog
 
La build your own website september 5
La build your own website september 5La build your own website september 5
La build your own website september 5
 
Visual Rhetoric March 25th
Visual Rhetoric March 25thVisual Rhetoric March 25th
Visual Rhetoric March 25th
 
WRA 210 April 14th PowerPoint
WRA 210 April 14th PowerPointWRA 210 April 14th PowerPoint
WRA 210 April 14th PowerPoint
 
Visual rhetoric, April 22, 2013
Visual rhetoric, April 22, 2013Visual rhetoric, April 22, 2013
Visual rhetoric, April 22, 2013
 
WRA 210 January 18, 2011
WRA 210 January 18, 2011WRA 210 January 18, 2011
WRA 210 January 18, 2011
 
BYOWHC823
BYOWHC823BYOWHC823
BYOWHC823
 
Build your website before you install wordpress.
Build your website before you install wordpress.Build your website before you install wordpress.
Build your website before you install wordpress.
 
Tensorflow go
Tensorflow goTensorflow go
Tensorflow go
 
Keeping Eloquent Eloquent
Keeping Eloquent EloquentKeeping Eloquent Eloquent
Keeping Eloquent Eloquent
 
Designing Edenbee
Designing EdenbeeDesigning Edenbee
Designing Edenbee
 
Mobile App Feature Configuration and A/B Experiments
Mobile App Feature Configuration and A/B ExperimentsMobile App Feature Configuration and A/B Experiments
Mobile App Feature Configuration and A/B Experiments
 
Evaluation
Evaluation Evaluation
Evaluation
 
Evaluation
Evaluation Evaluation
Evaluation
 
Lesson 4 Adding Navigator and PagesAdding Links Transcript- .docx
Lesson 4 Adding Navigator and PagesAdding Links Transcript- .docxLesson 4 Adding Navigator and PagesAdding Links Transcript- .docx
Lesson 4 Adding Navigator and PagesAdding Links Transcript- .docx
 
Intro to Drupal Slides - DrupalCampSC 2014
Intro to Drupal Slides - DrupalCampSC 2014Intro to Drupal Slides - DrupalCampSC 2014
Intro to Drupal Slides - DrupalCampSC 2014
 
Amsterdam Pm Web Process
Amsterdam Pm Web ProcessAmsterdam Pm Web Process
Amsterdam Pm Web Process
 

Más de WordCamp

Momma's CSS-Grid
Momma's CSS-GridMomma's CSS-Grid
Momma's CSS-GridWordCamp
 
Structure style-story
Structure style-storyStructure style-story
Structure style-storyWordCamp
 
New rules for responsive design
New rules for responsive designNew rules for responsive design
New rules for responsive designWordCamp
 
Designing for conversion
Designing for conversionDesigning for conversion
Designing for conversionWordCamp
 
Design in WordPress: Three files, unlimited layouts #wcstl
Design in WordPress: Three files, unlimited layouts #wcstlDesign in WordPress: Three files, unlimited layouts #wcstl
Design in WordPress: Three files, unlimited layouts #wcstlWordCamp
 
Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...
Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...
Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...WordCamp
 

Más de WordCamp (6)

Momma's CSS-Grid
Momma's CSS-GridMomma's CSS-Grid
Momma's CSS-Grid
 
Structure style-story
Structure style-storyStructure style-story
Structure style-story
 
New rules for responsive design
New rules for responsive designNew rules for responsive design
New rules for responsive design
 
Designing for conversion
Designing for conversionDesigning for conversion
Designing for conversion
 
Design in WordPress: Three files, unlimited layouts #wcstl
Design in WordPress: Three files, unlimited layouts #wcstlDesign in WordPress: Three files, unlimited layouts #wcstl
Design in WordPress: Three files, unlimited layouts #wcstl
 
Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...
Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...
Three files, unlimited layouts: The designer's guide to WordPress freedom. #w...
 

Último

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 TerraformAndrey Devyatkin
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
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 REVIEWERMadyBayot
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Último (20)

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
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
+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...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

Widget areas

  • 2. Ultimate freedom! Register a few widget areas and make your site look like anything!
  • 3. I’ve been beating that horse for a while.
  • 4. It’s definitely a skill worth developing. And we will - in a few minutes.
  • 5. But let’s take a step back.
  • 6. Here’s a slide from last summer, complaining about phone views that look too much alike. Should we change things up every time we get a hankering to try something new?
  • 7. Not if you follow the gospel of the heat map. Where the eyeballs go, so must the content.
  • 8. Oh really? Where are the eyeballs going now?
  • 10. We’re designers. We can make the eyeball go wherever we please!
  • 11. We can make the eyeballs go where WE want. We’re designers. We can make the eyeball go wherever we please! Which is great if the situation calls for a new approach.
  • 12. We can make the eyeballs go where WE want. If our users are looking for visual stimulation. Inspiration. Excitement.
  • 13. But sometimes, they’re just filling out a form for a car loan. Or paying a bill.
  • 14. In which case, a little more attention to the heat maps might be a good idea. This is my young friend Jimminy, a developer who splits his time between West Virginia and the Bay area. He spends a lot of time around regular people - who are actually just like the rest of us when we’re trying to get stuff done.
  • 15. I saw this tweet of his a couple days ago - just as I was thinking about how we have all this power - the power to direct the eye.
  • 16. Now, sometimes we do need to break away. We’re building something new. (My poor husband. He sees these tennis balls every damn day, practically.) As a home page goes, this site - a Genesis site, btw, is pretty out there. No header. No footer. Main navigation around the ball.
  • 17. But it didn’t come from nowhere. There was this folder, first.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23. So. How do we execute this in Genesis? Or any other theme?
  • 25. Here’s a demo from a talk I did last year.
  • 26. So. How do we execute this in Genesis? Or any other theme?
  • 27. What’s 
 the difference? Like I said. Ultimate power. 90% of the basis of layout flexibility, I think, is widget areas.
  • 28. 1 2 3 4 And these FOUR widget areas.
  • 29. Underscores. How would we do this in Underscores?
  • 31. Before.2 3 4 1 Let’s start with the markup. This is a home page, but it could be any page - a blog page, a special page you’ve created for a reason - even an archive page. But this happens to be an Underscores home page. We’ve got our main content area, with the Loop and then two sidebar widgets.
  • 32. markup - before Let’s start with the markup.
  • 33. After. 1 2 3 4 And these FOUR widget areas.
  • 35. Step 2. 
 From boxes to widgets.
  • 38. Let's dress ’em up! And get ’em dressed. See what I mean about floating everything left?
  • 40. Genesis. Same three files. It looks more complicated and codey, but it’s really not. For one thing, there’s about a million people writing code snippets we can just drop in.
  • 42. So with Genesis - I saw there was a sticky header menu already hard-coded in the Minimum Pro theme, so I decided to leave it. So let’s go through the process one more time.
  • 43. The visual reference. Now let’s take the clothes off these divs.
  • 44. And here are the asides we’re going to make…
  • 45. and move. And here they are in place. K - let’s code it up!
  • 46. The code to make the asides is pretty much identical to the Underscores code. You can add markup, like …
  • 47. Underscores:Widgeted area with markup. Underscores, if you want. Generally, I only add it when I’m changing the style of the widget title. I mean, really - h4? But the only arguments you really need are those first three: id, name and description. (Now, this is not a CSS id - I’m not big on those. I greatly prefer classes, and in fact I make these IDs class names, or parts of class names.) If you want more control, you can add the before-widget and after-widget arguments, and give them some markup too. Again, just like Underscores.
  • 48. front-page.php Laying out the widgets is pretty straightforward. I just found a recent article that showed you can do it without the action hook - almost exactly like Underscores. But I KNOW this works. I commented out the loop, but I could just as easily have blown it away. If I wanted a bunch of post excerpts above or below the widgets, the loop will bring ’em in.
  • 49. style.css Now let’s make them match the Underscores widgets.
  • 50. Widgets panel. Now let’s add the Featured Posts … without rewriting the markup, I might add, the way I did with the plugin we used with Underscores.