Wordpress and Webdesign Forum go41 » WordPress Code Snippets

  1. Blogchick
    Member

    Hey Joern

    Quick question. Is it possible to have the category bar show only 3 sections instead of 5?

    Basically, what I would like to do is delete 2 categories and have the three take up the width of the screen - here's an example picture.

    Is that possible?

    Posted 2 years ago #
  2. that's very easy, just take off 2 of the 5 Category IDs you entered once in index.php
    these are the numbers behind

    <?php $display_categories = array( ....

    It should look like this then

    <?php $display_categories = array(3,5,6); $i = 1;

    you will see now only three categories, I think you did that already.

    So now you just have to set the width for each category to a wider value, done in style.css here:

    .category {
    ..
    ..
    width:286px;
    }

    It should be 286.66, that's not to do so only if you are good you will see the last bar something like nothing short of the end.

    Thank's for asking here - I want to get some traffic too..

    Posted 2 years ago #
  3. Blogchick
    Member

    Hi Joern,

    Thanks for the tip. I actually haven't touched the template at all yet. All I did was adjusted an image of the theme to show what I meant. I'll try that now and let you know how everything goes.

    And about coming here mit die frage - sehr gerne :)

    Posted 2 years ago #
  4. Blogchick
    Member

    I just went into my dashboard and made those changes - it worked out perfectly!

    Vielen dank!

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):