go41

Re: Stupid Sidebar query (Arthemia) please help :: Reply by drwhom

von Joern am 4. Dez. 2009 | Keine Kommentare

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.php
Code:

<?php
/*
Template Name: pagenosidebar
*/
?>

<?php get_header(); ?>

   <div id="content" class="nosidebar">   

   <?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> &raquo; <?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 &raquo;</p>'); ?>

      <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

      </div>

   <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

   </div>

   <?php endwhile; endif; ?>

   </div>

<?php get_footer(); ?>

And I’ve updated my style.css so it now has:
Code:

/* Content Page*/

#content {
   width:590px;
   background:#fff;
   padding:10px;
   font-size:1.05em;
   line-height:1.75em;
   float:left;
   min-height:400px;
   }

#content .breadcrumbs, #content .breadcrumbs a {
   font-weight:bold;
   color:#333;
   }

#content h2.title {
   font:2.2em Georgia;
   font-weight:bold;
   letter-spacing:-0.05em;
   border-bottom:1px solid #ddd;
   border-top:3px solid #ddd;
   padding:5px 0px;
   }

#content .nosidebar {
width:900px;
}

.post {
   font-size:1.05em;
   line-height:1.75em;
   }

Can you spot what’s causing the problem? Thanks as ever for your help!

(von: drwhom)

Hier noch 10 weitere Ergebnisse dieses Threads:

Stupid Sidebar query (Arthemia) please help

3. Dez. 2009 (von: drwhom)

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…

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 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 →

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: