Im trying to replace the Metaslider with an iframe. I have succeeded in doing this with the code below (from header.php).
The thing is… I only want my iframe to show up on certain pages, but for some reason the code below shows my iframe on all pages. Has this something to do with other theme settings?
(I disable the metaslider from the themesettings)
————————————————————————
if(is_page(‘About’)) {
echo ‘
frameborder=”0″>
‘;
}
Hi wizlore
Just at a glance it looks like your statement needs to be wrapped in PHP tags and you might be closing your iFrame too early. So this is how it might look instead:
To confirm, this isn’t tested, but those two issues I’ve raised would stop this from working.
Works as a charm..
Thanks
Awesome, glad to hear that helped. All the best.