How can I create a website popup that displays in all pages maybe on the header without redirecting to a page in odoo 12?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I create a website popup that displays in all pages maybe on the header without redirecting to a page in odoo 12?
Hi,
Update your HTML to include a menu item or button that will trigger the popup when clicked
<!DOCTYPE html>
<html>
<head>
<!-- Your other head content here -->
</head>
<body>
<header>
<!-- Your website header content here -->
<!-- Popup container -->
<div id="popup" class="popup">
<span class="popup-content">This is your popup content.</span>
<button id="closePopup" class="close-button">Close</bu
</div>
</header>
<nav>
<ul>
<li><a id="showPopupButton" href="#">Show Popup</a></li>
<!-- Other menu items -->
</ul>
</nav>
<!-- The rest of your website content here -->
<script src="popup.js"></script>
</body>
</html>
Modify the JavaScript code to display the popup when the menu item is clicked.
document.addEventListener("DOMContentLoaded", function () { |
Hope it helps
Thank you for your response. How can I do this in odoo 12. Sorry I didn't specify it was for odoo 12 earlier
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 6 16
|
7784 | ||
|
2
thg 12 22
|
6135 | ||
|
1
thg 6 21
|
11536 | ||
|
0
thg 12 24
|
1189 | ||
|
0
thg 11 24
|
1412 |