Insert Google authorship into WordPress header

This is a wild guess, because you didn’t provide (parts of) your template. Anyway, most probably (if lessons.php is a full template) there is get_header(); somewhere at the beginning of your template file. If you put the very code you posted in your question before this it will render, as the wp_head action is still … Read more

Empty lines in header, how to remove them

The blank lines are probably being generated by code that is hooked to the wp_head action. Generally speaking this is not a big deal as it won’t affect the way your page is displayed in a browser. There are some downsides like the size of the HTML document that is transmitted, but this can be … Read more

Set up description meta automatically

You can use first few lines of post content and add these to meta description tags to website head section automatically. Here is how you do that. // add meta description tag function wcs_add_meta_description_tag() { global $post; if ( is_single() ) { $meta = strip_tags( $post->post_content ); $meta = strip_shortcodes( $post->post_content ); $meta = str_replace( … Read more

Where are the contents of WP_Head

Looks like the source of my problem is a function called admin_bar_bumpin wp-includes>admin-bar.php. It’s for the admin bar and when I log out it goes away so it wasn’t effecting the style of the site for logged out users. I was able to filter it out in my functions.php file. That’s actually no better than … Read more

add_action to wp_head is added, but not called

Can we think litter bit different way: add_action(‘wp_head’,’new_wp_head’); function new_wp_head() { echo “calling wp_head”; global $civicrm_root; if ( empty( $civicrm_root ) ) { return; } $region = CRM_Core_Region::instance(‘html-header’, FALSE); if ( $region ) { echo ‘<!– CiviCRM html header –>’; echo $region->render( ” ); } } Make sure in which file you put this and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)