[wordpress插件] Add Full SVG Support添加完整的SVG支持

wordpress 插件 文章 2020-01-30 06:00 942 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

This plugin adds some SVG functionality to your WordPress and uses a SVG technique that’s based on an idea by Alexey Ten.

此插件为您的WordPress添加了一些SVG功能,并使用了基于Alexey Ten的想法的SVG技术。

This way of including SVG images into HTML seems to be the one with the best combination of performance and compatibility at the moment.

将SVG图片包含到HTML中的这种方式似乎是目前性能和兼容性最好的组合。

List of Features:

功能列表:

    • Upload SVG files to your media library
    • 将SVG文件上传到您的媒体库

    • Use SVG files via shortcode in your posts or pages
    • 在帖子或页面中通过简码使用SVG文件

    • Set the style via CSS
    • 通过CSS设置样式

    • Define a fallback image (usually PNG) for your SVG
    • 为SVG定义后备图片(通常为PNG)

    • Add alt-information for SEO
    • 为SEO添加替代信息

    • Automatically change all regular images to svg images
    • 自动将所有常规图像更改为svg图像

    Example:

    示例:

    [do-svg style=”margin:30px” width=”148px” height=”130px” svg_path=”http://www.blogurl.de/images/image.svg” alt_path=”http://www.blogurl

    [do-svg样式=“ margin:30px”宽度=“ 148px”高度=“ 130px” svg_path =“ http://www.blogurl.de/images/image.svg” alt_path =“” http://www.blogurl

    .de/images/image.png” alt=”My Other Image”]

    .de / images / image.png” alt =“我的其他图片”]

安装步骤

    1. Upload the folder to the “/wp-content/plugins/” directory.
    2. 将文件夹上传到“ / wp-content / plugins /”目录。

    3. Activate the plugin through the “Plugins” menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Place the shortcode in your templates.
    6. 将简码放入模板中。

    Shortcode-Example:

    简码示例:

    [do-svg width=”50px” height=”30px” style=”margin:30px” svg_path=”wp-content/uploads/image.svg” alt_path=”wp-content/uploads/image.png” alt=”

    [do-svg width =” 50px” height =“ 30px” style =” margin:30px” svg_path =” wp-content / uploads / image.svg” alt_path =” wp-content / uploads / image.png” alt =”

    My Image”]

    我的图片”]

下载地址

https://downloads.wordpress.org/plugin/add-full-svg-support.zip

https://downloads.wordpress.org/plugin/add-full-svg-support.zip

-EOF-

AI助手支持GPT4.0