This guide helps you troubleshoot problems with how landing pages display on your website.
Landing Page Shows Theme Layout
Symptom
Your landing page displays inside your WordPress theme with header, sidebar, and footer instead of showing the clean design you imported.
Solutions
Solution 1: Change Template to Canvas Mode
Canvas Mode removes all theme elements for a clean, isolated landing page.
Steps:
- Go to Landing Pages in WordPress admin
- Edit the problematic landing page
- In the right sidebar, find Template section
- Select Canvas (Full Isolated)
- Click Update
- View the landing page – it should now display without theme elements
- Edit landing page
- Template section → Select Minimal (Header/Footer Only)
- Update and check
- Create file in your theme:
single-shahi-landing.php - Add this code:
- Save and upload to your theme
- Landing pages now use this template automatically
- Edit landing page in WordPress admin
- Click on HTML tab in editor
- Check if
section includes: - If missing, add it to the top of your HTML (inside
tags) - Save and check on mobile
- Edit landing page → CSS tab
- Find fixed width declarations like:
- Change to responsive widths:
- Test on different screen sizes
- Verify media queries use correct syntax:
- Ensure viewport meta tag is present (see above)
- Test by resizing browser window or using browser DevTools (F12) device emulator
- Add to CSS tab:
- For specific images:
- Change template to Canvas (Full Isolated)
- This prevents theme CSS interference
- Clear browser cache:
- Clear plugin cache (if using caching plugin):
- Clear CDN cache (if using CDN like Cloudflare):
- Disable CSS optimization temporarily:
- Check for common syntax errors:
- Use CSS validator: https://jigsaw.w3.org/css-validator/
- Check browser Console (F12) for CSS errors
- Fix errors and save again
expression()behavior:@importfrom untrusted domains- Use safe alternatives
- Contact support to whitelist specific properties
- Use inline styles for specific elements (less secure)
- Edit landing page → HTML tab
- Add jQuery before other scripts:
- Place in
section or before closingtag - Ensure your scripts load AFTER jQuery
- Check script order in HTML
- Dependencies must load first:
- Check browser Console for CORS or security errors
- Verify script URLs are HTTPS (not HTTP)
- Use correct CDN links:
- Add Google Fonts link in HTML
: - Use in CSS:
- Clear cache and test
- Upload font files to WordPress Media Library
- Get file URLs from Media Library
- Update CSS with correct paths:
- Right-click on broken image → Inspect Element
- Check the
srcattribute URL - Verify URL is accessible (copy and paste in browser)
- Update to correct URL in HTML editor
- Use absolute URLs:
- Verify image uploaded successfully
- Get correct URL from Media Library:
- Use that URL in your HTML
- Check if lazy loading is enabled
- Ensure images have correct lazy load attributes:
- Or disable lazy loading in Settings → Performance
- Download images to your computer
- Upload to WordPress Media Library
- Use WordPress URLs instead of external URLs
- Or get permission from image host to embed
- Optimize images before uploading:
- Upload optimized versions to Media Library
- Update image URLs
- Check for conflicting position properties:
- Adjust positioning:
- Check for negative margins:
- Check for default margins:
- Inspect elements with browser DevTools (F12):
- Use consistent box-sizing:
- {
- Use Canvas template – Removes all theme elements
- Use full-width page template if Canvas not desired
- Override with CSS:
- Check CSS specificity:
- Ensure element has height:
- Verify image URL is correct and accessible
- Check CSS syntax:
- Ensure image path uses absolute URL
- Check browser compatibility (add vendor prefixes):
- Verify animation library is loaded (GSAP, Anime.js, etc.)
- Check for JavaScript errors in Console (F12)
- Ensure animations trigger after DOM is ready
- ShahiLandin doesn’t officially support IE11 or Edge Legacy
- Add polyfills for older browsers:
- Recommend users upgrade to modern browsers
- Add
-webkit-prefixes for CSS properties: - Test in Safari or Browser Stack
- Provide screenshots of the problem
- Share the URL (if public)
- Specify device/browser where issue occurs
- Check Console (F12) for errors
- Try Canvas Mode first before reporting issues
- Clear all caches before testing
- HTML Import Issues
- Performance Issues
- Cache and Plugin Conflicts
When to use: Best for marketing pages, sales pages, and lead capture pages where you want complete control.
Solution 2: Use Minimal Template
Minimal Template keeps basic header and footer but removes sidebars and extra theme elements.
Steps:
When to use: When you want to maintain site navigation but remove other theme distractions.
Solution 3: Override Template File
For advanced users who want custom control:
Steps:
`php
postmeta(gettheID(), ‘shahilandinhtml’, true);
$css = getpostmeta(gettheID(), ‘shahilandincss’, true);
if ($css) {
echo ‘
‘;
}
echo ‘
‘;
}
get_footer(); // Optional – remove for no footer
?>
`
Responsive Design Not Working
Symptom
Landing page looks good on desktop but breaks on mobile devices (or vice versa).
Solutions
Problem 1: Missing Viewport Meta Tag
Symptom: Page appears zoomed out on mobile, very small text.
Solution:
`html
`
Problem 2: Fixed Widths
Symptom: Horizontal scrolling on mobile, content cut off.
Solution:
`css
.container { width: 1200px; }
`
`css
.container {
width: 100%;
max-width: 1200px;
padding: 0 15px;
}
`
Problem 3: Media Queries Not Working
Symptom: CSS breakpoints don’t trigger on mobile devices.
Solution:
`css
/ Correct /
@media (max-width: 768px) {
.container { width: 100%; }
}
/ Also correct /
@media screen and (max-width: 768px) {
.container { width: 100%; }
}
`
Problem 4: Images Not Responsive
Symptom: Images overflow container on mobile.
Solution:
`css
img {
max-width: 100%;
height: auto;
display: block;
}
`
`css
.landing-image {
width: 100%;
height: auto;
}
`
CSS Not Applying
Symptom
Your custom CSS doesn’t appear to affect the landing page.
Solutions
Problem 1: WordPress Theme Overriding Styles
Symptom: Theme CSS has higher specificity.
Solution A – Increase specificity:
`css
/ Instead of /
.button { background: blue; }
/ Use more specific selector /
.shahilandin-content .button { background: blue; }
/ Or use !important as last resort /
.button { background: blue !important; }
`
Solution B – Use Canvas Mode:
Problem 2: CSS Cached
Symptom: Changes don’t appear even after saving.
Solution:
– Chrome: Ctrl+Shift+Delete (Cmd+Shift+Delete on Mac)
– Or do hard refresh: Ctrl+F5 (Cmd+Shift+R on Mac)
– WP Super Cache: Settings → Delete Cache
– W3 Total Cache: Performance → Empty All Caches
– WP Rocket: Clear Cache button in admin bar
– Log into CDN dashboard
– Purge cache for specific page or entire site
– Go to ShahiLandin → Settings → Performance
– Uncheck “Minify CSS”
– Save and test
Problem 3: CSS Syntax Error
Symptom: CSS after a certain point doesn’t apply.
Solution:
– Missing closing braces }
– Missing semicolons ;
– Incorrect property names
Problem 4: CSS Being Stripped for Security
Symptom: Certain CSS properties removed automatically.
Solution:
ShahiLandin sanitizes CSS for security. Potentially dangerous properties are removed:
Workaround:
JavaScript Not Working
Symptom
Interactive elements like sliders, popups, forms, or animations don’t work.
Solutions
Problem 1: jQuery Not Loaded
Symptom: Console shows $ is not defined or jQuery is not defined.
Solution:
`html
`
Problem 2: Scripts Load in Wrong Order
Symptom: Some features work, others don’t. Console shows dependency errors.
Solution:
`html
`
Problem 3: DOM Not Ready
Symptom: Scripts try to manipulate elements before page loads.
Solution:
Wrap your JavaScript in document ready:
`html
`
Problem 4: WordPress Conflicts
Symptom: Scripts work in original HTML but not in ShahiLandin.
Solution:
WordPress loads jQuery in “no conflict” mode. Update your scripts:
`html
`
Problem 5: External Scripts Blocked
Symptom: Scripts from external domains don’t load.
Solution:
`html
`
Fonts Not Loading
Symptom
Text displays in default system font instead of your custom font.
Solutions
Problem 1: Google Fonts Not Loading
Solution:
`html`
`css
body {
font-family: ‘Roboto’, sans-serif;
}
`
Problem 2: Custom Font Files Not Found
Symptom: Using @font-face but fonts don’t load.
Solution:
`css
@font-face {
font-family: ‘MyCustomFont’;
src: url(‘https://yoursite.com/wp-content/uploads/fonts/custom-font.woff2’) format(‘woff2’),
url(‘https://yoursite.com/wp-content/uploads/fonts/custom-font.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
font-display: swap;
}
body {
font-family: ‘MyCustomFont’, Arial, sans-serif;
}
`
Problem 3: CORS Issues with Font Files
Symptom: Console shows CORS error for fonts.
Solution:
Add to .htaccess file:
`apache
Header set Access-Control-Allow-Origin “*”
`
Problem 4: Font-Display Issues
Symptom: Text invisible until font loads (FOIT – Flash of Invisible Text).
Solution:
Add font-display: swap to @font-face rules:
`css
@font-face {
font-family: ‘MyFont’;
src: url(‘myfont.woff2’) format(‘woff2’);
font-display: swap; / Shows fallback font while loading /
}
`
Images Not Displaying
Symptom
Image placeholders show but images don’t load, or broken image icons appear.
Solutions
Problem 1: Incorrect Image URLs
Solution:
`html



`
Problem 2: Images in WordPress Media Library Not Showing
Solution:
– Go to Media → Click image → Copy URL
Problem 3: Lazy Loading Issues
Symptom: Images below the fold don’t load when scrolling.
Solution:
`html

`
Problem 4: Hotlink Protection
Symptom: Images from external sites don’t display.
Solution:
Problem 5: Large Images Not Loading
Symptom: Some images load, but very large ones don’t.
Solution:
– Use tools like TinyPNG, ImageOptim
– Resize to appropriate dimensions
– Target under 200KB per image
Layout and Positioning Problems
Problem 1: Elements Overlapping
Symptom: Text or images overlap each other.
Solution:
`css
/ Common culprits /
.element {
position: absolute; / Removes from document flow /
z-index: 999; / May overlap other content /
}
`
`css
.element {
position: relative; / or static /
z-index: auto;
}
`
`css
/ Can cause overlap /
.element {
margin-top: -50px; / Remove or adjust /
}
`
Problem 2: Unexpected Spacing
Symptom: Extra space above, below, or between elements.
Solution:
`css
/ Reset margins /
h1, h2, h3, p {
margin: 0;
padding: 0;
}
`
– Right-click element → Inspect
– Check box model in DevTools
– Identify which element adds spacing
`css
box-sizing: border-box;
}
`
Problem 3: Sidebar Appears on Landing Page
Symptom: WordPress theme sidebar shows alongside landing content.
Solution:
`css
/ Hide sidebar /
.sidebar,
.widget-area {
display: none !important;
}
/ Make content full width /
.content-area,
.site-content {
width: 100% !important;
margin: 0 !important;
}
`
Colors and Backgrounds
Problem 1: Background Color Not Showing
Symptom: Background stays white despite CSS.
Solution:
`css
/ More specific selector /
body.shahi-landing {
background-color: #f5f5f5 !important;
}
`
`css
.section {
background-color: blue;
min-height: 100vh; / or specific height /
}
`
Problem 2: Background Image Not Displaying
Solution:
`css
.hero {
background-image: url(‘https://yoursite.com/image.jpg’);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 500px; / Element needs height /
}
`
Problem 3: Transparent Backgrounds
Symptom: Background is transparent, showing theme underneath.
Solution:
Add solid background:
`css
body,
.shahilandin-content {
background-color: #ffffff; / or any color /
}
`
Animation and Transition Issues
Problem 1: CSS Animations Not Working
Solution:
`css
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
.element {
animation: slideIn 0.5s ease;
-webkit-animation: slideIn 0.5s ease; / Safari /
}
`
Problem 2: JavaScript Animations Not Running
Solution:
Canvas vs Theme Rendering
Understanding rendering modes helps prevent display issues:
| Rendering Mode | Description | Best For | Potential Issues |
|—————|————-|———-|——————|
| Canvas (Full Isolated) | No theme elements at all | Marketing pages, landing pages | Loss of site navigation |
| Minimal (Header/Footer) | Keep header and footer only | Landing pages needing navigation | Some theme CSS may interfere |
| Theme (Full Integration) | Normal WordPress template | Blog posts, standard pages | Theme CSS may conflict |
Recommendation: For imported HTML landing pages, always use Canvas Mode unless you specifically need site navigation.
Browser-Specific Issues
Internet Explorer / Edge Legacy
Problem: Page looks broken in IE/Old Edge.
Solution:
`html
`
Safari-Specific Issues
Problem: Layout works everywhere except Safari.
Solution:
`css
.element {
display: flex;
display: -webkit-flex;
}
`
Getting Help
If display issues persist:
—
Related Articles:
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.