This movie requires Flash Player 9

Archive for the ‘Alle’ Category

Artikel 3

Notice that the entire sidebar is an unordered list and the titles are in <h2> tags. Not every theme is built this way and it’s not necessary to do so, but it’s currently the most common sidebar markup in the themes we surveyed so we adopted it. The element with id=”links” is the equivalent of one basic widget.

Yes, we’ve seen markup like this. It’s the second most common sidebar design pattern, which is why we chose it for the example. The first difference is that the sidebar is not built inside a <ul> tag. That means we should not be wrapping any of our widgets in <li> tags. The second difference is that our titles are wrapped in <div class=”title”> instead of <h2> tags.

We prefer to change the markup to our ul/li/h2 standard, but the API is powerful enough that we don’t have to. Instead, we fix these issues by adding some parameters to the code in functions.php:

Artikel 2

Notice that the entire sidebar is an unordered list and the titles are in <h2> tags. Not every theme is built this way and it’s not necessary to do so, but it’s currently the most common sidebar markup in the themes we surveyed so we adopted it. The element with id=”links” is the equivalent of one basic widget.

The Widgets API offers a few functions to use in your template just like template tags. These functions let WordPress replace your theme’s sidebar with a dynamic one while still falling back on the old sidebar in case you remove all the widgets.

Here is an example of a basic sidebar upgrade using the same markup as above

Artikel 1

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.