WordPress.org

Ready to get started?Download WordPress

Forums

A couple of questions . . . (5 posts)

  1. aestar
    Member
    Posted 10 years ago #

    http://www.thirtysilverpieces.net
    Okay. Is there a way without overhauling the site to make the index.php page originally show a specified length, and then put a link that allows people to read further if they would like? I have the settings at 5 posts per day but I tend to write lengthy posts and clear the bottom margins of my menus pretty quickly.
    Secondly, I'd like to put buttons on my categories. I think this should be possible but I have no idea where to start. If someone knows a good resource on this question specifically, I'd be more than willing to check it out.
    Thanks again.

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    2. You need to link a list style with your list cats.
    The list cats are menu ul li elements, so this should work:
    menu ul il {
    list style: url('button.gif');
    }
    That will put a button next to each element that is menu ul li, but it will be the same button each time.
    If you want a different button, you'll need to further define that statement to distinguish the id of each li - do a 'View Source' of your page and look at the links, you'll see li id="Links" and such for each cat. That'll mean multiple statements.
    1. Isn't that 'posts paged' ? I don't use it so I'm not entirely sure..

  3. aestar
    Member
    Posted 10 years ago #

    I guess I was more wondering what should I do to tweak this in case categories get added through the admin panel and I don't feel like making a button?
    <?php list_cats(0, 'All', 'name'); ?>
    I viewed the source from my page after it loaded. Copied the codes of the categories listed and plugged in images for their text and pasted them in. I assume that's how I need to do it if I want actual individual buttons for my categories. Unless there's an easier way. :|
    However, what do I do to that up there to allow future categories made through the panel to be seen?

  4. aestar
    Member
    Posted 10 years ago #

    *bumps hopefully*

  5. junesix
    Member
    Posted 10 years ago #

    Ah, here is where CSS shines. Instead of using premade buttons, you can style your category list to look like buttons. Instead of a unique button image for each category, output the category names as a list and style them with your button's background.
    Reference the last section of ALA's Taming Lists:
    http://www.alistapart.com/articles/taminglists/
    and ALA's Sliding Doors of CSS
    http://www.alistapart.com/articles/slidingdoors/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.