How to Add Cookie Based Subscribe to Unlock Content in Blogger

 

Hi to all, here I am going to tell you all about how to add cookie based subscribe to unlock content in blogger website easily in just ew minutes by using CSS and JavaScript.


By adding this cookie based subscribe button, you can increase your subscribers in YouTube or any other social media platform by adding your social media platform URL.


And also by adding this subscribe button, users might feel discomfort, for that I have used script based on cookie, once you click on subscribe then it won't appear again and again when you refresh the page and when you remove cookie then you will see the subscribe to unlock banner again.


By adding this CSS and JavaScript in your blogger website, will not effect your post speed or ranking or SEO, so you can use it any blogger website template.


How to Add Cookie Based Subscribe to Unlock Content in Blogger by tial wizards

Read the below provided steps carefully and completely, if you leave any one strep then you may face errors while saving the pasted code in your blogger theme editor, so read the article till end.




Steps to Add Cookie Based Subscribe to Unlock



Step-1: First of all you need to login to your blogger website dashboard by using your login credentials.





Step-2: Go to blogger dashboard -> Click on Theme section -> Click on Arrow Icon -> Click on Backup -> Click on Download -> Download your website Theme.





Step-3: Go to blogger dashboard -> Click on Theme section -> Click on Arrow Icon -> Click on Edit HTML -> Theme Editor.





Step-4: Copy the below provided CSS and JavaScript code.





Step-5:  Paste the copied CSS and JavaScript code above closing body tag or </body> tag.


Step-6: After adding the code you need to replace the URL of your YouTube channel with the present YouTube channel link from the JavaScript.


Step-7: Now after replacing the URL click on save button.


Step-8: You have successfully added cookie based subscribe to unlock content in your blogger website easily in just few minutes.




Note



If you will get any error or issue while saving the code then you need to restore your backup code again and follow the same process as provided in the above steps carefully.


If you want to change the color and style of the buttons, you need to modify CSS code for it, for changing changing colors you need HTML color codes, you can get color codes from google color picker.


This code will not work in blog posts, so you need to add this in your blogger theme section and above </body> tag only.


Be careful while adding the code, because if you add code in different place then it will not work properly, so read the steps carefully and add the code and don't forget to replace your YouTube URL from the JavaScript .




Conclusion


I hope that you have understood about how to add cookie based subscribe to unlock content in blogger website easily in just few minutes by using CSS and JavaScript.





Next Post Previous Post

Cookies Consent

This website uses cookies to analyze traffic and offer you a better Browsing Experience. By using our website.

Learn More