Snippet: 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' );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
We recommend Code Snippets (100% Free) or WPCode (sponsored)