The code below is for a query string named "theyear". It adds the class "customHide" if the query string contains "2019". If not, it adds the class "customHideTwo". For example, if your site URL contains this query string: https://www.yoursite.com?theyear=2019 Add the...
Web Developer Tips
Add shortcode to display WordPress Sidebars
Add the following PHP code to your child theme functions.php file. [php] // add shortcode for sidebars - use this format [get_sidebar name="Your Sidebar Name"] function sidebar_shortcode($atts,...
How to Cache Your Website for Faster Page Load
Caching In When it comes to site speed, faster is always better. Did you know that Google now includes site speed when considering page rank? It's also more likely that viewers will leave a slow page out of annoyance and impatience. As a site owner, it's in your best...
How to redirect all pages on a website
It's very easy to redirect all your old web pages to a new domain or URL using a .htaccess file. This can only be done on an Apache server which most of you should have your site hosted on anyway. Here is what you do. Download the .htaccess file in the root of your...