How Can We Use WordPress Author Box Without Plugin AND Leverage Browser Caching For Google Analytics

0
3539
Credit: pauthorbox.com

The wordpress site has become popular among readers as it offers more data and important as in the past years they have struggled so hard to strengthen their credibility and allows the audience to identify the writer of the wordpress article. And if you alone is the author of your WordPress article then, what you have to do is simply just add your author page after your work is done. And it is required for you to add your author bio below or above every post if you are posting along with multiple authors.

The wordpress author box without plugin helps the audience to know or to reach the authors and. And for authors it is a benefit as they can reach their audience easily and which will help them to have their own following fan base. The sites that contain author bio boxes get more views than the sites without author bio.

Step by step instructions to add Author Box in WordPress without a Plugin:

  • The initial step is to make a child theme.
  • Utilize our instructional exercise to make a child theme.
  • After that in your child theme folder create a new single.php.
  • Presently duplicate the code given-beneath in the single.php document of your child theme, and snap here to duplicate the Author Box code from Github.
  • Make sure that you add that code in between the div tags of the author post.
  • Now add style.css file to the child theme.
  • Finally, you have your own customized author box which is available in the word press theme.
  • Configure your author box by going to the Dashboard then select the user and then profile and add your details such as about, name, and contact info.
  • Click update user and clear your cache and now get and check your customized author box.

What is leverage browser caching how to leverage browser caching for google analytics

The leverage browser caching is mostly seen by the web developers, because when they test their pages for speed test they could have come across this warning. This warning means the instruction on the browser to deal with cache static assets from the web server. If your browser has no caching rules then the expiry time will be set to a very minute number and this can also trigger this warning.

If you have defined all your entire browser caching headers on your main server and yet receive this “leverage browser caching” warning then it is more likely related to Google’s own analytics.js script. And it’s really funny that their  own website optimization tools are giving us warnings. This warning is due to low script cache time, the reason is to make people update as there will be a new script launch. Google Analytics is one of the best tools of choice for every google user who wants to look into their website’s daily traffic. There are many scripts which can cause more problems than solving them. The main goal of this is to optimize your website to reach the 100 points Speed from Google.

To solve the problem the best cure is adding the script locally. And this script can be updated. The steps to follow while adding scripts are given below:-

  1. a) Download this script that is used in the Google Analytics code. From the below link
  2. b) https://www.google-analytics.com/analytics.js
  3. c) Now replace the old script with this new script and Create a Script that Keeps all your local script up-to-date.

Conclusion:-

Use the above method to connect with your audience and start improving your site traffic in your word press by adding your customized author box to it.

Google page insight is still the best indicator to improving your score by solving warnings under the “cache policy” can help you make your website faster and more viable to visitors. If you see this warning again in Google PageSpeed Insights.

Try resolving it by:

  1. Add cache control to the site.
  2. Use Leveraging browser caching for Google Analytics.
  3. Reduce using 3rd party script.