Hey,

I've just removed some blocks from a basic page which has an iFrame embedded.

How do I get the iFrame to spread the full width of the page instead of just starting where the blocks ended?

Thanks,

Sam

Comments

gkom’s picture

It depends on your theme. You might have to remove the sidebar altogether from your theme's .tpl files or add a conditional in the code.
You could even create a completely different page template specifically for your iframe page.

FYI, this question should have been posted in theme development.

cheryl.workbooks’s picture

I already have another page which is running at full width, so I believe editing the stylesheet is unnecessary.

The full width page is found here,

Thanks,

Sam

gkom’s picture

I'm not sure I understand. Your full width page is being displayed at full width because of this style rule

.page-node-1493 #left {
    display: none;
}

The sidebars are still there, but hidden from view.

The 1493 is the node's id. You can add another css rule using the id of the other page you don't want sidebars on.
The other way to do it would be to add conditionals in your theme's template files (i.e. page.tpl.php ).

Example from Bartik's page.tpl.php file:

<?php if ($page['sidebar_first']): ?>
    <div id="sidebar-first" class="column sidebar"><div class="section">
        <?php print render($page['sidebar_first']); ?>
    </div></div> <!-- /.section, /#sidebar-first -->
<?php endif; ?>

If no blocks are assigned to the sidebar for the specific page, the sidebar container will not be displayed at all.