In order to create the template file itself open a text editor such as Visual Studio Code and paste the following code in the editor in a new, blank file : <?php /* Template Name: Blog Template with Sidebar */ ?> then save the file with the file extension “.php”. Upload the newly created template…