How to Change Host Files on Windows

Sometimes we need to change host files in windows because the domain name is not publicly pointing to the correct server. So how does it work? When we type and go to a domain name in browser, let’s say codinghelphq.com, your browser does not reach the server right away. There are the (simplified) steps: the…

How to create local business schema creation and adding to plugin & wordpress

Go to https://technicalseo.com/tools/schema-markup-generator/ Select Local Business for the schema markup Add business details Copy schema script once adding of the business details is done To add schema for service area that doesnt have address we need to Go to https://technicalseo.com/tools/schema-markup-generator/ Select Local Business for the schema markup Add business details Copy the schema code generated on the…

Add header / footer in wordpress

Add this to the functions.php function function_name() { ?> whatever you want to print <?php } add_action( ‘wp_footer’, ‘function_name’ ); function function_name() { ?> whatever you want to print <?php } add_action( ‘wp_head’, ‘function_name’ );

How to use javascript to autoloop a video within a certain time range?

HTML portion for video: <video muted=”true” autoplay=”true” class=”vid” id=”someVidName” > <source src=”[replace]” type=”video/mp4″> </video> Javascript to make loop. Note that the movie will start from beginning and play until 3.5 sec, then will loop around 1.99 and 3.5 perpetually. (function () { var vidElem = document.getElementById(‘someVidName’); console.log(vidElem); vidElem.addEventListener(“timeupdate”, function () { if (vidElem.currentTime > 3.5)…