Return to Snippet

Revision: 45356
at May 13, 2011 20:05 by psteinweber


Updated Code
/*--------------------------------------------------*/
/* remove byline from page */
/*--------------------------------------------------*/


function custom_body_class($classes) {
if (is_page()) {
$classes[] .= 'hide_meta';
}
return $classes;
}
add_filter('thesis_body_classes', 'custom_body_class');


/*--------------------------------------------------*/
/* add to custom css */
/*--------------------------------------------------*/

.hide_meta .byline { 
		display:none; 
		}

.hide_meta .headline_area {
		margin-bottom: 4em;
		}

/* in a default thesis installation use .headline_meta instead of .byline */

Revision: 45355
at April 28, 2011 20:03 by psteinweber


Initial Code
/*--------------------------------------------------*/
/* remove byline from page */
/*--------------------------------------------------*/


function custom_body_class($classes) {
if (is_page()) {
$classes[] .= 'hide_meta';
}
return $classes;
}
add_filter('thesis_body_classes', 'custom_body_class');

Initial URL

                                

Initial Description

                                

Initial Title
Thesis: remove byline from page

Initial Tags
page, wordpress

Initial Language
PHP