Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Giới thiệu Họ nói rằng một bức tranh trị giá một ngàn chữ. Nếu đó là trường hợp, sau đó âm thanh phải được trị giá một triệu USD, và video trị giá một tỷ đồng. May mắn thay, WordPress cung cấp cho người dùng với công cụ tuyệt vời cho phép bạn nhanh chóng và dễ dàng đính kèm các loại phương tiện truyền thông trực tiếp vào bài viết và, nếu muốn, hiển thị phương tiện truyền thông một cách đặc biệt trực tiếp trong bài viết | 8 Integrating Media In this chapter we will cover Aligning images properly within a post Styling image galleries Styling image captions Creating a media template Creating a media template for a specific media type Displaying a related image for every post Creating video posts by using the Viper s Video Quicktags plug-in Introduction They say a picture is worth a thousand words. If that is the case then audio must be worth a million and video worth a billion. Luckily WordPress provides users with great tools that allow you to quickly and easily attach different types of media directly to posts and if desired display that media in special ways directly in posts. In this chapter we re going to go over the different ways in which you can use media such as images music and video files in your theme. We ll look both at how to correctly display images for users based on WordPress conventions and how to dig deeper and manipulate the display of media without user input. You should know that if you are using the default Kubrick theme that it is not designed well for the display of videos or images within posts. We will be using the WordPress Classic theme which is available with all new Wordpress downloads from http wordpress.org download for styling and displaying media in this chapter but you can use any WordPress 2.8 or 2.9 compatible theme that you like or apply these recipes to your own custom theme. Integrating Media Aligning images properly within a post One of the most important things for your theme to get right when it comes to displaying media is also one of the easiest. WordPress uses a certain set of markup to decorate images displayed in posts and this markup includes instructions on how to align the images within a post. The class declarations shown below cover cases where images are inserted into a post by using the WordPress tools. This is very important to theme users and forgetting to properly account for aligning images will give a very poor impression of