Linux 软件免费装
Banner图

Add Full SVG Support

开发者 jekuer
更新时间 2017年2月7日 06:19
捐献地址: 去捐款
PHP版本: 3.0.1 及以上
WordPress版本: 4.6
版权: GPLv2
版权网址: 版权信息

标签

SEO Style SVG Support Vector Upload Input Fallback PNG Image Shortcode

下载

1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4

详情介绍:

This plugin adds some SVG functionality to your WordPress and uses a SVG technique that's based on an idea by Alexey Ten. This way of including SVG images into HTML seems to be the one with the best combination of performance and compatibility at the moment. List of Features: Example: [do-svg style="margin:30px" width="148px" height="130px" svg_path="http://www.blogurl.de/images/image.svg" alt_path="http://www.blogurl.de/images/image.png" alt="My Other Image"]

安装:

  1. Upload the folder to the "/wp-content/plugins/" directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Place the shortcode in your templates. 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="My Image"]

常见问题:

Do I always have to add the dimensions of the image (widht, height)?

You don\'t have to, but we recommend it for performance, SEO and functionality issues.

How can I create SVG files?

If you are looking for a SVG editor and don’t have tons of money for Adobe Indesign, check out Inkscape (free) or CorelDraw (cheap).

Why did you write this plugin?

All further information and background story: http://www.jenskuerschner.de/svg-images-with-png-fallback-in-wordpress/

The image does not show up?!

This usually happens if your server does not allow fopen or if the svg file does not contain any size information. You can workaround this issue by adding height and width information to the shortcode?

Normal images do not get changed?!

Is there a svg file with the exact same name (except the file extension) in the exact same folder? Did you input the tag manually and used single quotation marks? If yes, change it to double. Does you server allow fopen? If not, the auto-change will not work, because the engine cannot check if the svg file exists. Did you specify any size information (width; height)? If not, do so! Most SVG files do not contain those information.

更新日志:

1.1.3 1.1.2 1.1.1 1.1.0 1.0.0