diff --git a/admin-dashboard.html b/admin-dashboard.html
index 435168a..8d5f59c 100644
--- a/admin-dashboard.html
+++ b/admin-dashboard.html
@@ -1432,9 +1432,6 @@ function updateBannerPreview() {
bannerPreview.classList.remove('with-image');
}
- // Update the banner content with the generated HTML
- bannerPreviewContent.innerHTML = bannerContent;
-
// Apply additional styles from the template
if (template) {
// Update banner preview container styles
@@ -1452,6 +1449,9 @@ function updateBannerPreview() {
});
}
+ // Update the banner content with the generated HTML
+ bannerPreviewContent.innerHTML = bannerContent;
+
// Add event listeners for width/height changes
const imageWidthInput = document.getElementById('bannerImageWidth');
const imageHeightInput = document.getElementById('bannerImageHeight');
@@ -1463,16 +1463,6 @@ function updateBannerPreview() {
imageHeightInput.addEventListener('input', updateBannerPreview);
}
- // Wrap in link if provided - exactly match index.html but prevent clicks
- if (bannerLink) {
- content = `${content}`;
- }
-
- // Update content
- bannerPreviewContent.innerHTML = content;
-
// Make sure the preview is visible
bannerPreview.style.visibility = 'visible';