go41

Display category bar on every page in Arthemia free theme

von Joern am 29. Apr. 2009 | Keine Kommentare

To display the category bar of Arthemia WordPress Theme free version on all pages you can try this:
At the end of header.php the last line should be: <div id="page" class="clearfloat">
below this put:

Code:

<?php /* If this is not home because index.php shows this */ if ( !is_home() || is_paged() ) { ?>
   <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,11); $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"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
      <a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
   </div>

   <?php $i++; ?>
       <?php } ?>
<?php wp_reset_query(); ?>
   </div>
<?php } //end categories not on home ?>

This will display category bar just below header in case you are not on first page in index.php.
You could also exclude other views in the first line of this code:
Code:

<?php /* If this is not home because index.php shows this */ if ( (!is_home() || is_paged()) && !is_page() ) { ?>

Use above to exclude the category bar from sowing on pages
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 31 weitere Ergebnisse dieses Threads:

Modify Arthemia WP Theme

1. Nov. 2010 (von: ambermck)

Hi everyone!I recently installed Arthemia on my WP site, and need to make a couple of changes. Can anyone help with this:1.) How do I move the category bar up so that it is below the nav bar? I have…

Re: Modify Arthemia WP Theme :: Reply by f-t-cat

1. Nov. 2010 (von: f-t-cat)

to move the category bar up you have to edit index.php in your arthemia theme folder.It looks now something like this:Code:<?php get_header(); ?>   <?php if(!is_paged()) { ?>   <div id="top" class="clearfloat">      <div id="headline">here is a lot of stuff for headline........ …

Re: Modify Arthemia WP Theme :: Reply by f-t-cat

1. Nov. 2010 (von: f-t-cat)

I just realize that your site is loading quite slow, minimum 10 seconds, sometimes 25 seconds or more.On frontpage you load the addtoany script more than 10 times, to put this on single file with the full content of that…

Font size and letter spacing displaying differently in IE than Firefox

6. Nov. 2010 (von: omerkhan01)

Hi there, My site can be found hereIf you go to the home page in internet explorer you will see that the seminar schedule at the bottom(Actually put into the excerpt)in FF has a smaller font as opposed to in…

HOw can I delete the blog features like comments/date from my WP Arthemia page

6. Nov. 2010 (von: omerkhan01)

Hi there, My site is hereJust wondering how I can remove the dates and comment text from from my front pagewithout effecting any div's or the code in index.php. Also on a page at the bottom it says comments are…

I floated a div, but that disrupted my main container.

7. Nov. 2010 (von: omerkhan01)

Hi there, My site is here. As you can see in IE that I tried to put a banner to the left of my banner in the black space and in IE it screws up my site. I put the…

Re: Font size and letter spacing displaying differently in IE than Firefox :: Reply by Joern

7. Nov. 2010 (von: Joern)

hard to analyze this because your html markup is not valid at all.A website has to start with a DOCTYPE Declaration on top of everything.You put an image div into your header.php above all - that's bad.Everything in header.php from…

Re: HOw can I delete the blog features like comments/date from my WP Arthemia page :: Reply by Joern

7. Nov. 2010 (von: Joern)

on your frontpage these entries are only in the featured section I think.frontpage is index.php, here you have to remove some lines below <div id="featured"> the following line which is the complete div class="meta" ... /divCode:<div class="meta">[<?php the_time('j M Y')…

Re: I floated a div, but that disrupted my main container. :: Reply by Joern

7. Nov. 2010 (von: Joern)

read this answer as the problem starts here:viewtopic.php?f=1&t=202____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Re: I floated a div, but that disrupted my main container. :: Reply by omerkhan01

7. Nov. 2010 (von: omerkhan01)

Joern, I did go into header file and put the div class below body and now it is not showing up on my site it all. The banner dissappeard!I simply want to know1) Where would i put a div to…

Re: I floated a div, but that disrupted my main container. :: Reply by Joern

7. Nov. 2010 (von: Joern)

before you had on top of your header.php this:Code:<div class="datingimg"><img src="http://www.maaximumseduction.com/dating.jpg" height="160" width="139"></img></div>these lines are gone from there, that's good, but I can't find them anywhere anymore...?anyway, it should read like this:Code:<div id="datingimg"><img src="http://www.maaximumseduction.com/dating.jpg" height="160" width="139" alt="" /></div>you could put…

Re: I floated a div, but that disrupted my main container. :: Reply by omerkhan01

7. Nov. 2010 (von: omerkhan01)

It works perfectly. Thanks man! Weiterlesen →

Unlimited Master Reseller Plan

8. Nov. 2010 (von: rajib10)

Create Unlimited Reseller (cPanel/WHM) AccountsSet own prices as an independent hosting companyUnlimited Bandwidth, Private Name Servers, Daily Backup12GB RAM, Xenon Core CPU, 99.9% Uptime GuaranteeLINK DELETED! pls advertise some where else, the admin Weiterlesen →

s2 member 404 problem

24. Nov. 2010 (von: simbee1)

Hi, I am building a site with wordpress and s2member. I have configured s2member as per guide but have a problem with the welcome/login page. After a user has registered, the set up should direct the user to the "Members…

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…

Changing sidebar ad size on certain pages

30. Nov. 2010 (von: drwhom)

Hello Joern and nearly a happy Christmas from the UK. Just wondering if you could see where I'm going wrong with changing the sidebar on certain pages to include an ad that's 300x400 as opposed to 300x250?I'm using OIO publisher…

Re: Changing sidebar ad size on certain pages :: Reply by Joern

30. Nov. 2010 (von: Joern)

nearly a happy Christmas from the Germany..I clicked through your site but didn't come along any add 300x400anyway, in your style.css you set only the width of this space #sidebar-ads width: 300px; and no fixed height. all images I came…

Re: Changing sidebar ad size on certain pages :: Reply by drwhom

30. Nov. 2010 (von: drwhom)

You're the king Joern. It actually wasn't wrong at all - it was just that the iframe needed some text inbetween the iframe and /iframe tags. You're spot on about the stretching it automatically runs the rest of the sidebar…

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 raf_79

30. Nov. 2010 (von: raf_79)

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…

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()) {…

Autor:

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

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: