Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cheryl.workbooks on
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
It depends on your theme. You
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.
But another page is already full width
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
I'm not sure I understand.
I'm not sure I understand. Your full width page is being displayed at full width because of this style rule
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:
If no blocks are assigned to the sidebar for the specific page, the sidebar container will not be displayed at all.