Snippets: Alter Archive Entry Readmore Button Style

/**
 * Sample snippet showing how to alter the default readmore button styles
 * Change the filter where it says "blog" to match your custom post type. Example: "wpex_cpt_entry_button_args"
 *
 * You can of course also alter the button style using custom CSS, this is only if you want to use built-in styles ;)
 *
 * Style : flat, graphical, clean, three-d, outline, minimal-border, plain-tet
 * Color : orange, blue, green, purple, grey, black, yellow, teal, pink, rosy, brown, white, gold
 * Size  : small, medium, large 
 *
 * @return array
 * @since 3.1.2
 */
function myprefix_blog_readmore_button_args() {
	return array(
		'style' => 'minimal-border',
		'color' => 'purple',
		'size'  => 'medium'
	);
}
add_filter( 'wpex_blog_entry_button_args', 'myprefix_blog_readmore_button_args' );

Version Required:3.1.2+

Snippet Type: PHP

Posted Under: Core, Blog

All PHP snippets should be added via a child theme's functions.php file.