0
10
4K
0
30 May 2015
25 November 2014
Based on 0 on WordPress.org
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
Change default thumbnails
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;
}
The 2BC Image Gallery can be installed via the WordPress plugin repository (automatic), or by uploading the files directly to the web server (manual).
Visit the 2BC Image Gallery documentation page for instructions on how to configure the settings and display galleries once the installation is complete.