• Resolved thuijssoon

    (@thuijssoon)


    Hi there,

    Thanks for writing this plugin. Would it be possible to support more post types? I have a number of custom post types that would benefit from having some custom css injected.

    Having looked at your code quickly, I think changing line 60 in the main plugin file to:

    $post_types = apply_filters( 'wp-add-custom-css-supported-post-types', array( 'post', 'page' ) );

    would do the trick…

    Thanks,

    Thijs

    https://wordpress.org/plugins/wp-add-custom-css/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniele De Santis

    (@danieledesantis)

    Hi, thanks for your feedback!
    Support for custom post types has been added in the new release (it can be enabled from the plugin’s settings page).

    Best,
    Daniele

    Aziz

    (@azizpbrimah)

    It doesn’t work though. All it ever shows is the one default box. Also, I saw you mention about screen options, but that’s not available on your plugin page.

    Aziz

    (@azizpbrimah)

    Once the plugin is installed and activated, from your dashboard navigate to “Add custom CSS”, check the desired custom post types and save. You will find a new box called “Custom CSS” in your custom post type editing area.

    This does not work.

    Plugin Author Daniele De Santis

    (@danieledesantis)

    Are you using the latest version?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Support for custom post types’ is closed to new replies.