Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
function THEMENAME_preprocess_node(&$vars, $hook) {
$vars['content'] = preg_replace('/<p>(?!<img)/','<p class="first">', $vars['body'], 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment