Last active
September 3, 2024 16:37
-
-
Save ajaydsouza/45547fe3b18e1e0af1dfccdb1ce2cb6b to your computer and use it in GitHub Desktop.
Add styles to Contextual Related Posts output
This file contains 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 add_classes_to_crp_post_class( $classes ) { | |
$classes .= ' alignwide'; | |
return $classes; | |
} | |
add_filter( 'crp_post_class', 'add_classes_to_crp_post_class' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment