Grrrr, sidebars.
Hi Joern, just stuck at the moment on getting a page to run full width with no sidebar. I’ve followed the advice that you had about creating forum pages and made a new template like this (ignore the backticks obv!):
Code:
<?php
/*
Template Name: pagenosidebar
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="content" style="width: 900px;">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post_<?php the_ID(); ?>">
<span class="breadcrumbs"><a href="<?php echo get_option('home'); ?>/">Home</a> » <?php the_title(); ?></span>
<h2 class="title"><?php the_title(); ?></h2>
<div class="entry clearfloat">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php endwhile; endif; ?>
</div>
<?php get_footer(); ?>
This is the result (password is joern) – http://www.iamstaggered.com/shop/personalised-cards
You can see that the iframe is still limited by width – any chance you can tell me how to run it across the whole page, I would be so grateful.
Best wishes,
drwhom.
(von: drwhom)
Hier noch 10 weitere Ergebnisse dieses Threads:
Re: Stupid Sidebar query (Arthemia) please help :: Reply by Joern
3. Dez. 2009 (von: Joern)
the iframe you load in there is set to width 550:iframe scrolling="auto" height="800" frameborder="0" width="550"if you can edit this set to 900px or 100%the whole thing you load is 640px widethanks for asking here in my 'sleeping' forum ____________________you find…
Re: Stupid Sidebar query (Arthemia) please help :: Reply by drwhom
3. Dez. 2009 (von: drwhom)
Legend - that seems to be working well - it's only a very minor issue but do you know what causes the slight bump on the white boxes at the top? E.G. just under "About" there's a ridge, where it…
Re: Stupid Sidebar query (Arthemia) please help :: Reply by Joern
3. Dez. 2009 (von: Joern)
The iframe is set to height=800, it needs only 624pxand set the width not! to 1200, 900px is more than enough and is just the size of anything fitting in your content with 900pxthe bump: that's your <div id="content"> set…
Re: Stupid Sidebar query (Arthemia) please help :: Reply by drwhom
4. Dez. 2009 (von: drwhom)
Right - nearly there! The only thing is that now the iframe is much wider than the page, which seems to be back to 590px?This is the code I've got - in pagenosidebar.phpCode:<?php/*Template Name: pagenosidebar*/?><?php get_header(); ?> <div id="content" class="nosidebar"> …
Re: Stupid Sidebar query (Arthemia) please help :: Reply by Joern
4. Dez. 2009 (von: Joern)
somehow it doesn't take #content .nosidebartry:div#content .nosidebaror#content div.nosidebar____________________you find me on Google+, Twitter and Facebook Weiterlesen →
Re: Stupid Sidebar query (Arthemia) please help :: Reply by drwhom
4. Dez. 2009 (von: drwhom)
Hmmm, nope, neither of those worked. Any other thoughts? Weiterlesen →
Re: Stupid Sidebar query (Arthemia) please help :: Reply by Joern
4. Dez. 2009 (von: Joern)
you could use a div inside <div id="content"> as before, just not id=content again but now id=contentwidebackdraw: the bump..or replace <div id="content"> with a new <div id="contentwide"> and style this to the new widthbackdraw: you have to style also #content…
Re: Stupid Sidebar query (Arthemia) please help :: Reply by drwhom
4. Dez. 2009 (von: drwhom)
No way - I switched it toCode:<div id="content" style="width: 900px;"> And it worked a charm - no bump either! Weird!The dev theme looks good - been considering adding in a slideshow for the front page - that's tomorrow's headache though!Thanks…
need help on /CSS issue. Urgent please!
7. Apr. 2012 (von: omerkhan01)
Hi there, My site is hereAs you can see I created a div called "woman" and it is supposed to be positioned on the left hand side of my Featured slide show. This is what my CSS looks like#woman (line…
Re: need help on /CSS issue. Urgent please! :: Reply by omerkhan01
7. Apr. 2012 (von: omerkhan01)
I figured it out. HAHA! Weiterlesen →