• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Take Control of Your Wordpress Widgets
 

Take Control of Your Wordpress Widgets

on

  • 436 views

Kaspars Dambis held this presentation at WorCamp Norway 2013. Kaspar Dambis is a Latvian working at Metronet in Oslo. He is the creator of the popular Widget Context plugin. He blogs about WordPress ...

Kaspars Dambis held this presentation at WorCamp Norway 2013. Kaspar Dambis is a Latvian working at Metronet in Oslo. He is the creator of the popular Widget Context plugin. He blogs about WordPress at konstruktors.com and be found on Twitter at @konstruktors.

Statistics

Views

Total Views
436
Views on SlideShare
436
Embed Views
0

Actions

Likes
1
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Take Control of Your Wordpress Widgets Take Control of Your Wordpress Widgets Presentation Transcript

    • Take Control of Your Widgets Kaspars Dambis konstruktors.com @konstruktors WordCamp Norway 2013
    • Who is this guy?
    • Latvian Champion in Autocross, 2007
    • Worlds first electric race carto finish Dakar rally in 2012
    • In ❤ since 2007
    • Custom Function Widgets
    • Custom Function Widgets
    • Widget ContextVersion 0.1
    • A Sidebar?
    • Sidebar "Minima" for Blogger
    • Sidebar "Cubric" in WordPress 1.5 (2005)
    • Sidebar "Twenty Twelve" in WordPress (2012)
    • Sidebars arefor related content
    • Widgets in Core Widgets were first provided by a plugin. Available in core since WP 2.2 (May 16, 2007).
    • Widgets in Core Available in core since WP 2.2 (May 16, 2007).
    • Problems1. Widgets are not attached to the content 2. Widgets cant be edited in context BUT Widgets provide flexibility
    • But Context Matters
    • Solutions1. Use multiple widget areas (sidebars) and templates to control their appearance 2. Use a plugin
    • Solutions1. Use multiple widget areas (sidebars) and templates to control their appearance 2. Use a plugin
    • Widget Logic Need to know Template Tags (cant give to clients) Uses evil() eval();
    • WooSidebarsSidebars as a custom post type. Sidebars in context.
    • WooSidebars Creates a lot of widget areas with custom visibility rules which are defined in another section of the WordPress dashboard.
    • Display WidgetsAdds context UI to widget settings.
    • Widget ContextAdds context UI to widget settings. Individual posts and pages can be targeted only by URL patterns, which are hard to understand.
    • Problems1. Widgets cant be edited on per-page basis. 2. Widgets cant be re-ordered on per-page basis
    • Widget Context Experiments
    • Concept ABring Widget UI into Page Edit Screen
    • Concept A Features: Per-page settings; Re-order widgets. Problems: Adding and hiding new widgets requires editing all pages
    • Concept A Demo
    • Concept BSimple Show/Hideoption with a list ofavailable rules.
    • Concept B Demo
    • Concept C
    • Concept C Demo
    • Conclusions1. Current setup (Sidebar UI) doesnt allow granular widget control.2. Granular setup (Post Edit UI) is hard to manage on large scale sites.
    • konstruktors.com @konstruktorsgithub.com/kasparsd