Adding Custom Scripts and Styles

You can add custom stylesheets and scripts to ProjectHuddle. However, the plugin automatically dequeues all non-plugin scripts and styles on the project front end page. The reason for this is to prevent conflicts from plugin stylesheets or scripts that aren't needed on ProjectHuddle pages. For instance, it's not necessary to have your SEO plugin and Social Sharing plugin scripts on the project page since it's a much more private page. This helps with privacy and loading speed for your ProjectHuddle pages.

In This Article

How To Add A Custom Stylesheet

The way to add your own stylesheet to the ProjectHuddle project page is to first enqueue it, then also add the handle to the allowed styles filter. Here's an example:

How To Quickly Add Inline Styles

You can also add inline styles to your project page if you only have a few style changes. You can do that by attaching your inline styles to the project-huddle stylesheet with wp_add_inline_style. Here's an example:

How To Add A Custom Script

The way to add your own script to the ProjectHuddle project page is to first enqueue it, then also add the handle to the allowed scripts filter. Here's an example:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us