Tips and Tricks
A selection of WordPress tips and tricksWordPress Tips and Tricks
Some useful tips and tricks to make your life easier.
- Add Dashicons to Show File Type for Download Links - how you can use Dashicons to provide your visitors with a visual indication of the file type of the download link
- Create a Product Gallery & SEO Tip for eCommerce
- How to Use SMTP to Send Email from WordPress
- How to setup a Dev site in cPanel
Posts & Pages
- How To Import Posts & Pages From One WordPress Website To Another
- How to Share WordPress Post Drafts Using Temporary Links - this is very a useful feature
- Your WordPress WYSIWYG Editor Can Reflect Your Theme Styles - get the WordPress editor to really show your WYSIWYG
- Easy Way to Add a Link in WordPress
CSS
- A mega CSS resource list
- Strategies for Overcoming !important in CSS
- Styling for Print - if you need to print out posts etc. then a print
style sheet is a must - Using CSS to highlight a menu option
WordPress Debug Logging in wp-config.php
// Turn debugging on
define('WP_DEBUG', true);
// Tell WordPress to log everything to /wp-content/debug.log
define('WP_DEBUG_LOG', true);
// Turn off the display of error messages on your site
define('WP_DEBUG_DISPLAY', false);
// For good measure, you can also add the follow code, which will hide errors from being displayed on-screen
@ini_set('display_errors', 0);Website back-end tips
wp_actionscheduler_logs is huge: how to clean up Action Scheduler safely
https://www.roundborders.com/blog/wp-actionscheduler-logs-huge/
WordPress autoloaded options: how to find what is loading on every page, and fix it
https://www.roundborders.com/blog/wordpress-autoloaded-options/
How to reduce TTFB in WordPress (measure first, then fix)
https://www.roundborders.com/blog/how-to-reduce-ttfb-in-wordpress/