Support

Account

Home Forums Front-end Issues Output custom page CSS to header Reply To: Output custom page CSS to header

  • the_field() always echos the value of the field.

    
    $customCss = get_field('custom_page_css');
    if($customCss) {
       echo '<style type="text/css" media="screen">' . $customCss . '</style>';
    }