The output for the above function would then be something like
function ridizain_general_css(){
if ( get_post_meta(get_the_ID(), '_fourteenxt_true_fullwidth', true )) {
if ( is_page_template( 'template-location/template-name.php' )) :
?>
<style>
.full-width .archive-header,
.full-width .comments-area,
.full-width .image-navigation,
.full-width .page-header,
.full-width .page-content,
.full-width .post-navigation,
.full-width .site-content .entry-header,
.full-width .site-content .entry-content,
.full-width .site-content .entry-summary,
.full-width .site-content footer.entry-meta {
max-width: 1200px;
width: 100%;
}
.site:before,#secondary{width:0;display:none;}.ie8 .site:before,.ie8 #secondary{width:0px;display:none;}.featured-content{padding-left:0;}.site-content,.site-main .widecolumn{margin-left:0;}.ie8 .site-content,.ie8 .site-main .widecolumn{margin-left:0;}
@media screen and (min-width: 1008px) {.search-box-wrapper{padding-left:0;}}@media screen and (min-width: 1080px) {.search-box-wrapper,.featured-content{padding-left:0;}}
</style>
<?php endif; }
}
add_action( 'wp_head', 'ridizain_general_css' );
You’d add this code in your functions.php