If you look at this website and look at the bottom, you'll see a link saying "This link should open the ask the expert box.". When you click that you'll see it opens a link in a new lightbox window. The problem I have is that it's displaying the page with all of the content (i.e. the header and footer) and I just want it to display the ask the expert box.
Any suggestions on how this can be achieved? Thanks.
You can create a template
which will not include header and footer.
<?php
/*
Template Name: Some Name
*/
?>
and assign this template to ask-the-expert-home-ask-box
page from admin site of wordpress.
Checkout this for more info
Alternately, You can also use the custom field
feature of wordpress.
You can create a custom field with ask-the-expert-home-ask-box
this page.
Lets says field name is include_header
and value is set to false
and then you can check this field in the single.php
file if it is set to false do't include header and footer.