Add a button to your website to allow visitors to save pages to YouHomepage
Click the button below to try the widget in action!
Add this script tag to your website, preferably before the closing
tag:
<script src="https://youhomepage.com/assets/js/widget.js"></script>
Add this JavaScript code to initialize the widget:
<script>
// Basic initialization
YouHomepageWidget.init();
// Or with custom config
YouHomepageWidget.init({
buttonText: '⭐ Save to YouHomepage',
position: 'bottom-right' // bottom-right, bottom-left, top-right, top-left
});
</script>
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>Welcome to my site</h1>
<!-- YouHomepage Widget -->
<script src="https://youhomepage.com/assets/js/widget.js"></script>
<script>
YouHomepageWidget.init();
</script>
</body>
</html>