wordpress-plugin
wordpress-plugin copied to clipboard
Add CSS Tag to Dynamic Wrappers
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');