wordpress-plugin icon indicating copy to clipboard operation
wordpress-plugin copied to clipboard

Add CSS Tag to Dynamic Wrappers

Open bhubbard opened this issue 9 years ago • 0 comments

Once dynamic wrappers are done as a custom post type we should load the tag to trigger the IDX Broker css with the rest of the WordPress css links.

function idxbroker_dynamic_wrapper_css_tag() {
  if ( 'idx-wrapper' == get_post_type() ) {
    echo "\n<!-- IDX CSS -->\n\n"; // IDX Broker detection comment
  }
}
add_action('wp_print_scripts', 'idxbroker_dynamic_wrapper_css_tag');

bhubbard avatar Nov 04 '15 23:11 bhubbard