---
title: Filter Local Business widget inline CSS
url: "https://www.seopress.org/support/hooks/filter-local-business-widget-inline-css/"
lang: en-US
updated: 2021-09-29
hook_name: seopress_lb_widget_css
required_version: 4.0
---

# Filter Local Business widget inline CSS

- **Hook name:** `seopress_lb_widget_css`
- **Required version:** 4.0

```php
add_filter('seopress_lb_widget_css','sp_lb_widget_css');
function sp_lb_widget_css($css) {
	//default: '<style>.widget_seopress_pro_lb_widget span{display:inline-block;width:100%}.widget_seopress_pro_lb_widget span.sp-city,.widget_seopress_pro_lb_widget span.sp-code{width:auto}</style>';

	$css = '<style>put your custom CSS here</style>'; 
	
	return $css;
}
```

Source: [https://gist.github.com/wp-seopress/009c85f4c73a5b47ff9051591ea38a2e](https://gist.github.com/wp-seopress/009c85f4c73a5b47ff9051591ea38a2e)



