Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update function names and possible duplicate code #17

Open
benorgan opened this issue Jun 19, 2019 · 0 comments
Open

Update function names and possible duplicate code #17

benorgan opened this issue Jun 19, 2019 · 0 comments

Comments

@benorgan
Copy link

function red_starter_body_classes($classes)
{
// Adds a class of group-blog to blogs with more than 1 published author.
if (is_multi_author()) {
$classes[] = 'group-blog';
}
return $classes;
}
add_filter('body_class', 'red_starter_body_classes');
// Code to add specific classes per page to body in WP
function qod_body_class_for_pages($classes)

You should update the function names to reference the name of your theme (you currently have references to red_starter and qod). Also these two functions are doing almost the same thing, consider combining them together into a single function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant