I am making this tutorial to show how to add View non-AMP and other things in Header.
So, let’s dig into it.
First, create a Custom plugin, you can just copy this code as well.
After creating a custom plugin, add the code in the header using the hook.
You can copy this code as well(only if you are using Design 2)
Note: Don’t forget to change the hook name if you are using a different design. You can check the hooks name here: Hooks in Header
You can add other things like text, images etc., as well.
Isn’t it easy? you can do it while having your morning coffee as well.
If you have any queries regarding this feel free to ask.
And don’t forget to leave the feedback if it helps you. 🙂