Mình khuyến khích các bạn nên thêm file SVG vào WordPress bằng cách này nhé. Đây là cách mình hay dùng nhất, không cần plugin gì cả. Phương pháp thêm file SVG vào WordPress bằng Code này rất nhanh gọn. Sau khi xong mình chỉ cần xóa đoạn code đó đi là được thôi quá đơn giản.
Thêm file SVG vào WordPress bằng Code
Bạn tìm đến file functions.php. Sau đó thêm đoạn code sau vào nhé.
|
1 2 3 4 5 6 |
/** codfe support svg file **/ function codfe_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'codfe_mime_types'); |
Bạn muốn tìm file functions.php cách dễ nhất là vào Apperrance » Theme Editor. Như vậy là bạn có thể thêm file SVG vào WordPress rồi. Quá nhanh và dễ dàng phải không nào.
Bài viết mới:
- Verantwortungsvolles Glücksspiel im digitalen Zeitalter: Ein Leitfaden für bewusste Spieler
- Zoccer promo code – what Irish players need to know
- Общие проблемы с 1хбет зеркало и как их решить
- The Future of Online Casinos: Industry Trends, Credibility, and Strategic Insights
- Integracja Aplikacji Mostbet z Portfelami Mobilnymi: Przewodnik Krok po Kroku

