build your own wicked wordpress themes phần 6

Tiếp theo, chúng ta hãy nghĩ về màu sắc. Bạn nhận thấy những nhận xét hữu ích chút ít về trong ví dụ mã trên? Nó nhắc nhở chúng ta để sao chép các tập tin chủ đề của riêng của chúng tôi nếu chúng tôi dự định làm bất cứ điều gì thái quá. | 94 Build Your Own Wicked WordPress Themes chapter_04 v3 wicked excerpt Apply a basic layout @import url . thematic library layouts Feeling kind of penned in Of course if none of these imported styles suit your ideas you re free to remove the @import statements and build your own layout typography or default reset style sheets. Remember you re in control Next let s think about color. Did you notice the helpful little comment about in the code example above It s reminding us to copy the file to our own theme if we plan to do anything outrageous. What we re about to do is hardly outrageous but the advice to copy the file over is solid let s do that now and change our @import statement to reflect its new location. Copy the file from the thematic directory into your child theme s directory then change the @import accordingly. Feel free to change its name you may want to leave yourself a comment to remind yourself that it s a copy of the original. For the purposes of my Wicked theme I ve renamed the file chapter_04 v3 wicked excerpt Apply default theme styles and colors -- This is a copy of the Thematic @import url Thematic s CSS and the GPL Thematic is released under the General Public License if you copy its CSS for use in your child theme your CSS will also be bound by the terms of this license. While this may pose no problem for you plenty of successful commercial themes are GPL-licensed if you plan on distributing your theme and would prefer a more restrictive license for your clients see the section called Dual Licensing in Chapter 8 you ll need to write your own style sheet from scratch. The file is a big one too long to reproduce in this book but here s an excerpt from it. Take your time and look over it carefully you ll see that selectors are grouped according to purpose and there s a style for just about any element you think you might use. We ll start

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.