TAILIEUCHUNG - Tìm Hiểu về Wordpress - part 14

Tham khảo tài liệu 'tìm hiểu về wordpress - part 14', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Creating and Using Child Themes WordPress supports an interesting theme-development technique known as child themes. The idea is that you can declare a base theme or a parent theme as makes more sense with this metaphor and override the styling of that theme without touching the base theme at all. Why bother with this Why not just duplicate the theme and make changes Well there is plenty of debate around this. Some folks think child themes are a waste of time and others wholeheartedly endorse them. There are some things to think about to help you reach your own conclusion. Here are a few. Does your theme release updates that you like to stay up to date with Theme frameworks like to do this. If you have altered your theme it becomes a big pain to update it with a fresh release from the author. If you are using a child theme it s not a big deal just replace the parent and your alterations are intact. Are you a theme author that wishes to release multiple variations on a theme Child themes may be the way to go. This way you can offer up a theme and users can just activate the one they like the best without any manual alterations by them or duplicate code by you. Creating a child theme is remarkably simple. Just create a folder named as you wish in your wp-content themes directory and within that folder place a single file. The CSS file will have some specially formatted comments at the top of it which will identify it and most importantly identify the parent theme which it intends to use. Here is an example Theme Name My Cool Child Theme Theme URI http Description Child Theme for Digging Into WordPress 117 Author Chris Coyier Author URI http Template DigWP Version @import url . digWP The most important line there is the Template DigWP line which references the folder of the parent theme. The last line imports the stylesheet from that parent theme. That is optional but very common as the whole point is to start .

Đã 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.