Last active
December 28, 2015 00:19
-
-
Save shazdeh/7413003 to your computer and use it in GitHub Desktop.
Custom tile colors. Create custom colors for tile post types (Metro theme).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_themify_theme_meta_boxes($arg) { | |
array_push($arg[4]['options'][1]['meta'], array('value' => 'cyan', 'img' => 'images/layout-icons/color-cyan.png')); | |
array_push($arg[4]['options'][1]['meta'], array('value' => 'silvergrape', 'img' => 'images/layout-icons/color-silvergrape.png')); | |
return $arg; | |
}; | |
add_filter( 'themify_do_metaboxes', 'custom_themify_theme_meta_boxes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment