# Changing the color theme in php/js in Podlove Publisher

**URL:** <https://community.podlove.org/t/changing-the-color-theme-in-php-js-in-podlove-publisher/1405>\
**Category:** Podlove Publisher\
**Created:** [April 19, 2018, 8:12am UTC](https://community.podlove.org/t/changing-the-color-theme-in-php-js-in-podlove-publisher/1405 "2018-04-19T08:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonid.lezner](https://community.podlove.org/user_avatar/community.podlove.org/leonid.lezner/32/935_2.png) [@leonid.lezner](https://community.podlove.org/u/leonid.lezner)\
**Post date:** [April 19, 2018, 8:12am UTC](https://community.podlove.org/t/changing-the-color-theme-in-php-js-in-podlove-publisher/1405/1 "2018-04-19T08:12:03Z")

</div>

Hello! I would like to set the color theme of the Player v4 from the API, so it can be set accordingly to the Wordpress Theme. How can I do that? It there any API for changing the theme programmatically?

---

<div class="post-metadata">

**Author:** ![ericteubert](https://community.podlove.org/user_avatar/community.podlove.org/ericteubert/32/1568_2.png) [@ericteubert](https://community.podlove.org/u/ericteubert)\
**Post date:** [April 19, 2018, 9:45am UTC](https://community.podlove.org/t/changing-the-color-theme-in-php-js-in-podlove-publisher/1405/2 "2018-04-19T09:45:47Z")

</div>

This should work:

```php
<?php
add_filter('podlove_player4_config', function ($config) {

	$config['theme']['main'] = '#FFF';
	$config['theme']['highlight'] = '#000';

	return $config;
});

```

---

<div class="post-metadata">

**Author:** ![leonid.lezner](https://community.podlove.org/user_avatar/community.podlove.org/leonid.lezner/32/935_2.png) [@leonid.lezner](https://community.podlove.org/u/leonid.lezner)\
**Post date:** [April 19, 2018, 12:59pm UTC](https://community.podlove.org/t/changing-the-color-theme-in-php-js-in-podlove-publisher/1405/3 "2018-04-19T12:59:22Z")

</div>

Great! Thank you very much! 😀
