go41

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by raf_79

von Joern am 30. Nov. 2010 | Keine Kommentare

Alright… I await your outcome.
Also as I said, I have no problem giving you the direct link to the site privately if this is possible. It just hasn’t been released to the general public yet. Let me know.
This is what my footer area looks like after the changes: see here
My ‚Main Index‘ coding with the changes:
Code:

<?php get_header(); ?>
   <?php if(!is_paged()) { ?>
   <div id="top" class="clearfloat">
      <div id="headline">
                <?php dynamic_content_gallery(); ?>
      </div>
   <div id="featured">
   <?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>
         <?php while (have_posts()) : the_post(); ?>

   <div class="clearfloat">

   <?php $values = get_post_custom_values("Image");

   if (isset($values[0])) { ?>

      " rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

   <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php

$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"

alt="<?php the_title(); ?>" class="left" width="100px" height="65px"  />

      <?php } ?>

   <div class="info">" rel="bookmark" class="title"><?php the_title(); ?>

<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>   
</div>

       </div>
      <?php endwhile; ?>
   </div>
</div>
   <div id="bottom" class="clearfloat">

   <div id="middle" class="clearfloat">

   <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />

   <?php $display_categories = array(5,6,7,8,9,15); $i = 1;

   foreach ($display_categories as $category) { ?>
   <div id="cat-<?php echo $i; ?>" class="category">

      <?php query_posts("showposts=1&cat=$category")?>

      <span class="cat_title">"><?php single_cat_title(); ?></span>

      "><?php echo category_description($category); ?>

   </div>
   <?php $i++; ?>

       <?php } ?>
   </div>
   <?php } ?>
   <div id="bottom" class="clearfloat">
   <div id="front-list">   
   <?php if(is_paged()) { ?><div id="bottom" class="clearfloat"><?php } ?>   
   <?php

      $page = (get_query_var('paged')) ? get_query_var('paged') : 1;

      query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>
   <?php while (have_posts()) : the_post(); ?>      
   <div class="clearfloat">

   <h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>

   <div class="title">" rel="bookmark"><?php the_title(); ?></div>

   <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>   
   <div class="spoiler">

   <?php   $values = get_post_custom_values("Image");

   if (isset($values[0])) { ?>

      " rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

   <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php

$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"

alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  />

      <?php } ?>
   <?php the_excerpt(); ?>

   </div>
   </div>
      <?php endwhile; ?>
   <div class="navigation">

      <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }

         else { ?>
         <div class="right"><?php next_posts_link('Next Page »') ?></div>

         <div class="left"><?php previous_posts_link('« Previous Page') ?></div>

         <?php } ?>
   </div>   
   </div>
   <?php get_sidebar(); ?>
   </div>   
<?php get_footer(); ?>

My ‚StyleSheet‘ has this for #middle:
#middle {

width: 590px;

background:#fff;

float:left;

padding:10px;

margin:10px 0;

}
Hope this helps…

(von: raf_79)

Hier noch 13 weitere Ergebnisse dieses Threads:

Move Sidebar Up After ‚Featured‘ Section

29. Nov. 2010 (von: raf_79)

Hello,I have reduced the width of the category bar in Arthemia so that it is now the same width as the 'Headline' section (590px). I would like for the sidebar to move up and fill the vacant space and start…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

29. Nov. 2010 (von: Joern)

can be done, actually you have to move the category bar into thediv id="bottom" class="clearfloat"to be just abovediv id="front-list"BUT STOP, do not forget the switch on top if(!is_paged()) !!!pls give me time until tomorrow, it's quite late here in Germany…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by raf_79

30. Nov. 2010 (von: raf_79)

Great Joern! I await your response... Weiterlesen →

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

30. Nov. 2010 (von: Joern)

I thought you won't come back,okay, make a backup of your index.php first!!now in index.php find the line<div id="bottom" class="clearfloat">copy this line and paste it just above this line (about 18lines higher):<div id="middle" class="clearfloat">you should have there now:div id="bottom" class="clearfloat"div…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by raf_79

30. Nov. 2010 (von: raf_79)

Joern, I've been refreshing this page for hours awaiting your reply... - I'd love to give you a live link, but the site is not public yet. How can I do this?- I made the changes you listed with the…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

30. Nov. 2010 (von: Joern)

I am going to try it herehttp://themes.go41.de/?wptheme=arthemia-testopen index.php and look myself firstmade changes as explained above, still looks the same,now I set in style.css#middle { background: none repeat scroll 0 0 #FFFFFF; float: left... Weiterlesen →

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

30. Nov. 2010 (von: Joern)

I put on my test site now! like this:copied <div id="front-list"> also up, looks like this there:</div> <div id="bottom" class="clearfloat"> <div id="front-list"> <div id="middle"> <img src="<?php echo get_opt......and put the div id="front-list" also in the condition like this<?php if(is_paged()) {…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

30. Nov. 2010 (von: Joern)

are we coming close to what you mean?on following pages we get a double padding under the navbar, and the bottom border of the smaller category bar doesn't go to the ends, there is a gap.____________________you find me on Google+,…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

30. Nov. 2010 (von: Joern)

above you gave me your index.phpthis is wrong<?php } ?><div id="bottom" class="clearfloat"><div id="front-list"><?php if(is_paged()) { ?><div id="bottom" class="clearfloat"><?php } ?><?php$page = (get_query_var('paged')) ? get_query_var('paged') : 1;query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>it should have looked like this:<?php } ?><?php if(is_paged()) { ?><div id="bottom" class="clearfloat"><?php }…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by raf_79

30. Nov. 2010 (von: raf_79)

Hey Joern, Thanks for your patience and working through this with me.This is what I want to achieve: see hereAs per your earlier instructions, you said:"now in index.php find the line<div id="bottom" class="clearfloat">copy this line and paste it just above…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

30. Nov. 2010 (von: Joern)

had a look at your site, this gap where I came to when I startet trying.as explained in the post under your index.php I copied div id="front-list" also up just between bottom and middleI also moved that div id="front-list" into…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by raf_79

30. Nov. 2010 (von: raf_79)

Joern, Looked at your test site and it shows what I'm trying to achieve on my site with the sidebar. So far I still cannot get it to work - don't know what I'm doing wrong - but will keep…

Re: Move Sidebar Up After ‚Featured‘ Section :: Reply by Joern

1. Dez. 2010 (von: Joern)

this is correct as the upper part:</div><div id="bottom" class="clearfloat"><div id="front-list"><div id="middle"><img src="<?php echo ge....in the lower part you have in the script you give above:<?php } ?><?php if(is_paged()) { ?><div id="bottom" class="clearfloat"><?php } ?><div id="front-list"><?php$page = (ge.....the div id="front-list" should…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: