Custom WordPress themes and plugins

banner for 2BC Image Gallery frequently asked questions

2BC Image Gallery Frequently Asked Questions

We’ll update these 2BC Image Gallery frequently asked questions as we receive them through support requests. We’ll also update the 2BC Image Gallery frequently asked questions in the readme.txt file.

How do I add images to galleries?

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.

How do I customize the image that displays for the gallery thumbnail?

Setting a custom thumbnail

  1. Click Media > Galleries
  2. Click the title of the gallery that should be modified
  3. Scroll down to Gallery Featured Image and click Choose or Upload an image
  4. Click an image from the media library or upload a file, and click Use this image
  5. Click the Update button

Change default thumbnails

  1. Click Settings > 2BC Image Gallery
  2. Click the Gallery Thumb Source and choose to get the Last image added to the gallery (default), First image added, or Random

How can I change the styling of the gallery

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.

How can I change the month, year, or custom section titles?

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;
}

How can I change the « Back to galleries button text?

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;
}

How can I change the previous («) or next (») page buttons?

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;
}