开发者 | Shellbot |
---|---|
更新时间 | 2018年6月7日 20:48 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 4.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[sb_easy_image]
Custom settings:
[sb_easy_image num="1" order="random" link="lightbox"]
Template tag
The template tag is available for users who are confident in adding code to theme files, and need to display images outside of the widget areas or main content area. The following function can be added anywhere in your theme files.
Default settings:
<?php sb_easy_image(); ?>
Custom settings:
`<?php
$args = array(
"num" => "1",
"order" => "random",
"link" => "lightbox",
);
sb_easy_image( $args );
?>`
For full list of parameters see the plugin release page
Some themes handle gallery styling differently in different areas of the page. If your theme does not support multiple column galleries in a widget area you may need to add some custom CSS. Every theme is different, but if you're unfamiliar with CSS and need some help please post in the plugin support forum with a link to your site.
This border is part of the default gallery CSS generated by WordPress. To override this you can add the following CSS to your
theme, usually in style.css :
.gallery img { border: 0 !important; }
This margin is part of the default gallery CSS generated by WordPress. To override this you can add the following CSS to your
theme, usually in style.css :
.gallery-item { margin-top: 0px !important; }
This option will only take effect when filter is set to "only", as that is the only time when every image ID is specified and can therefore be ordered correctly.