开发者 |
2bc_jason
2bc_aron |
---|---|
更新时间 | 2015年5月30日 07:23 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 4.2.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
To manually apply tags to images, click Media and edit an image. The Galleries text box will appear in the right sidebar. Enter a comma separated list of galleries to add to this image. The galleries may appear in lower-case letters, but will save according to what is entered. If the image is opened in the post editor, then the familiar tag editor will appear instead of the text box. To automatically apply calendar-based galleries to uploaded images, click Settings > 2BC Image Gallery, check Add Calendar Based Galleries, then click Save Changes.
Setting a custom thumbnail
There is currently one default style. The recommend method to apply custom styling is to access the 2BC Image Gallery settings page, and enable Hide Default Styling. It should then be possible to write custom rules in the themes CSS files.
We have included filters to allow for customizing just about everything. In this case, there are two filters: one for the year gallery title, and one for the month gallery title. To change the year section title, include the following in your themes functions.php
file:
add_filter('twobc_image_gallery_year_title', 'my_custom_year_title_function'); function my_custom_year_title_function($year_title) { $year_title = 'A New Custom Title For The Years Gallery Section'; return $year_title; }
For the month section title, include the following in your themes functions.php
file:
add_filter('twobc_image_gallery_month_title', 'my_custom_month_title_function'); function my_custom_month_title_function($month_title) { $month_title = 'A New Custom Title For The Months Gallery Section'; return $month_title; }
For the custom section title, include the following in your themes functions.php
file:
add_filter('twobc_image_gallery_custom_title', 'my_custom_gallery_title_function'); function my_custom_gallery_title_function($custom_title) { $custom_title = 'A New Title For The Custom Gallery Section'; return $custom_title; }
Include the following in your themes functions.php
file:
add_filter('twobc_image_gallery_button_back', 'my_custom_back_gallery_function'); function my_custom_back_gallery_function($button_text) { // default text = « Back to galleries $button_text = 'New Back To Gallery Button Text'; return $button_text; }
Include the following in your themes functions.php
file:
Previous page button:
add_filter('twobc_image_gallery_previous_page_button', 'my_custom_previous_button_function'); function my_custom_previous_button_function($button_text) { // default text = « $button_text = 'New Previous Page Button Text'; return $button_text; }
Next page button:
add_filter('twobc_image_gallery_next_page_button', 'my_custom_next_button_function'); function my_custom_next_button_function($button_text) { // default text = » $button_text = 'New Next Page Button Text'; return $button_text; }