Drupal 7 with Omega version 3 theme generates a username class for the article tag in the HTML code, something like :
class="node node-page node-published node-not-promoted node-not-sticky author-USERNAME odd clearfix".
I'd like to avoid having the username displayed in the code for security reasons.
After investigating, this comes from the code
"omega_alpha_preprocess_node()" in the
"sites/all/themes/omega/omega/template.php" where you find the following line:
"$vars['attributes_array']['class'] = drupal_html_class('author-' . $vars['node']->name); "
I copied the code of
"omega_alpha_preprocess_node()" to the "template.php" of my Omega subtheme, I renamed the "
omega_alpha_preprocess_node()" to "
MYTHEME_alpha_preprocess_node" and removed the line "
$vars['attributes_array']['class']". Unfortunatly, it does not work.
As of today, the solution I found is to remove the line "
$vars['attributes_array']['class']" from the initial Omega template.php file, which is not the best practice, but it works and the username output as a class of an article tag is no longer displayed.
Can someone help me find a more elegant solution, as I'm not a very experienced Omega developer and I need guidance? Thank you.