Categories
QuickTip

How Help Scout Docs hacks “Getting Started”

Help Scout Docs makes it hard to organize content on the home page, so Help Scout are using categories that redirect to articles. This looks like a category in Help Scout: The link points to a category page: https://docs.helpscout.com/category/832-getting-started And the category even shows there are 8 articles! But when you click the Getting Started […]

Categories
QuickTip WordPress

Passing parameters from PHP to Javascripts in plugins » Otto on WordPress

Much cleaner. One static and unchanging JS file to cache. Parameters get put into your HTML itself as a one-liner. You can deal with the parameters using a normal PHP array before passing them over. No need to screw around with generating Javascript from PHP or looking for wp-load or even messing with tricky actions. […]

Categories
QuickTip Web Development

How to Add www. – or Remove www. – From Your URL

This has been done many times by others, but just a quick tip on how to add or remove www. from your website’s address. This is helpful for URL canonicalization and user experience consistency. You can also achieve SEO-friendly canonicalization using rel=”canonical”. Oh boy, I’m getting too technical 🙂 Here’s the juicy part: Add the […]

Categories
Code QuickTip WordPress

How to Prevent Loading WP-DownloadManager's CSS File

If you want to disable the WordPress plugin WP-DownloadManager‘s download-css.css file from being loaded, add the following code to your functions.php file: remove_action(‘wp_print_styles’, ‘downloads_stylesheets’); Alternatively, if you would just like to use your own stylesheet, you can add a file named download-css.css to your theme’s directory, and the plugin will automatically load your stylesheet instead.