tailieunhanh - Hướng dẫn tạo themes cho wordpress part 10

Sử dụng các widget văn bản cho nội dung thanh tùy chỉnh bao gồm một bên năng động trong chủ đề của bạn bao gồm nhiều sidebars năng động trong chủ đề của bạn Thiết lập các vật dụng mặc định cho các bên trong chủ đề của bạn định vị sidebars nhiều trong chủ đề của bạn bằng cách sử dụng CSS Styling sự xuất hiện của sidebars trong chủ đề của bạn bằng cách | 6 Sidebars In this chapter we will cover Using the Text widget for custom sidebar content Including a dynamic sidebar in your theme Including multiple dynamic sidebars in your theme Setting the default widgets for a sidebar in your theme Positioning multiple sidebars in your theme by using CSS Styling the appearance of sidebars in your theme by using CSS Displaying different widgets on different pages by using the Widget Logic plugin and conditional tags Showing asides in the sidebar by using the Miniposts plugin Adding an interactive Facebook-style wall to a sidebar by using jQuery Introduction Most WordPress themes follow a fairly standard structure there is a header with some type of navigation a main content area where post contents are read and one or more sidebars that display auxiliary information about the post being displayed or about the blog as a whole. WordPress has quite a bit of functionality built in that supports the sidebar paradigm. Dynamic sidebars and widgets are included in many of the most popular themes. The power for end users to change the content displayed in the theme s sidebar without involving a programmer is one of the best developments in the history of the WordPress platform. In addition to widgets provided by WordPress core and various plugins sidebars can be created to display various data including posts comments or links. Anything that isn t a main piece of content but that you want to show to your site s visitors is a great item to put in a sidebar. Sidebars------------------------------------------------------------------------------ Using the Text widget for custom sidebar content Sometimes you need to include code from a Facebook badge or promote your latest book if you happen to be a book author. Whatever it may be if a block of HTML or text is provided you can probably use it in the versatile Text widget. Getting ready For this recipe you ll need to have a basic theme installed preferably a default theme or one that has a .