Fixed Bottom Menu Live

This site shows an example of customization with the filter of the “Fixed Bottom Menu” plugin. Using a “Twenty Twenty-Four” theme.

Customization of this page and the entire site

/** ==================================================
 * Filter of Fixed Bottom Menu
 *
 *
 * @param int $minwidth  minwidth.
 */
add_filter( 'fbm_minwidth', function(){ return 5120; }, 10, 1 );

The maximum display width is 1300px by default. It is changed to 5120px so that it can be displayed even if the browser is maximized on the PC.


Whole site customization for multiple languages

/** ==================================================
 * Filte Fixed Bottom Menu
 *
 * fbm_column_value_
 * @param array $column_value  column_value.
 */
function fixed_bottom_menu_column_value_1( $column_value ) {
	$locale = get_locale();
	if ( 'ja' == $locale ) {
		$column_value['url'] = 'https://fbm.riverforest-wp.info/ja/fixed-bottom-menu-%e3%83%a9%e3%82%a4%e3%83%96/';
		$column_value['text'] = 'ホーム';
	}
	return $column_value;
}
add_filter( 'fbm_column_value_1', 'fixed_bottom_menu_column_value_1', 10, 1 );

/** ==================================================
 * Filte Fixed Bottom Menu
 *
 * fbm_column_value_
 * @param array $column_value  column_value.
 */
function fixed_bottom_menu_column_value_2( $column_value ) {
	$locale = get_locale();
	if ( 'ja' == $locale ) {
		$column_value['url'] = 'https://fbm.riverforest-wp.info/ja/fixed-bottom-menu-%e3%83%a9%e3%82%a4%e3%83%96/%e5%a4%96%e8%a6%b3%e3%81%ae%e5%a4%89%e6%9b%b4/';
		$column_value['text'] = '外観';
	}
	return $column_value;
}
add_filter( 'fbm_column_value_2', 'fixed_bottom_menu_column_value_2', 10, 1 );

/** ==================================================
 * Filte Fixed Bottom Menu
 *
 * fbm_column_value_
 * @param array $column_value  column_value.
 */
function fixed_bottom_menu_column_value_3( $column_value ) {
	$locale = get_locale();
	if ( 'ja' == $locale ) {
		$column_value['url'] = 'https://fbm.riverforest-wp.info/ja/fixed-bottom-menu-%e3%83%a9%e3%82%a4%e3%83%96/%e5%88%97%e8%bf%bd%e5%8a%a0/';
		$column_value['text'] = '列追加';
	}
	return $column_value;
}
add_filter( 'fbm_column_value_3', 'fixed_bottom_menu_column_value_3', 10, 1 );

/** ==================================================
 * Filte Fixed Bottom Menu
 *
 * fbm_column_value_
 * @param array $column_value  column_value.
 */
function fixed_bottom_menu_column_value_4( $column_value ) {
	$locale = get_locale();
	if ( 'ja' == $locale ) {
		$column_value['url'] = 'https://fbm.riverforest-wp.info/ja/fixed-bottom-menu-%e3%83%a9%e3%82%a4%e3%83%96/%e5%88%97%e5%89%8a%e9%99%a4/';
		$column_value['text'] = '列削除';
	}
	return $column_value;
}
add_filter( 'fbm_column_value_4', 'fixed_bottom_menu_column_value_4', 10, 1 );

/** ==================================================
 * Filte Fixed Bottom Menu
 *
 * fbm_column_value_
 * @param array $column_value  column_value.
 */
function fixed_bottom_menu_column_value_5( $column_value ) {
	$locale = get_locale();
	if ( 'ja' == $locale ) {
		$column_value['url'] = 'https://fbm.riverforest-wp.info/ja/fixed-bottom-menu-%e3%83%a9%e3%82%a4%e3%83%96/%e3%82%a2%e3%83%89%e3%82%aa%e3%83%b3/';
		$column_value['text'] = 'アドオン';
	}
	return $column_value;
}
add_filter( 'fbm_column_value_5', 'fixed_bottom_menu_column_value_5', 10, 1 );