WordPress.org

Ready to get started?Download WordPress

Forums

Can someone please add a <div class="sidetitle"> (4 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I already modified my code locally, but I dont want to have to do it every version. I am looking for basically all the titles on a menu to have a <div> container around them that lets me do things like give them a border-bottom etc.

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

    In your css:
    .sidetitle {
    border-top: 2px solid;
    border-bottom: 2px solid;
    background-color: #ff0000;
    }
    In your template (index.php):
    <li id="archives"><div class="sidetitle"><?php _e('Archives:'); ?></div>
    You should be able to see enough there to start playing with the css.
    What I've not yet figured out is how to make it work with Link Category headings as they are controlled by the Link Manager.

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    What I mean those is anything with a "title" type heading on the menu. So each of my link category titles, the actual category titles, the "Search:", the "Archives", the calender title ("may 2004" right now), "Other:" and "Meta:" should all be incased in the same tag of some sort.

  4. davidchait
    Member
    Posted 10 years ago #

    Yes, they probably/likely should, for more semantic meaning.
    However, index.php is meant to be modified to suit your needs. Tweak it to your liking; don't depend upon tags/wrappering being inserted in all cases, or in the way that you want them...
    Just as an example, to do super-cool sidebar backgrounds, with the 4-way 'sliding doors' method, I needed to add three or four extra divs/spans to wrapper around each sideblock. I just wrote a start/end sideblock function for myself, which makes it easy to modify, and easy to adapt changes in index.php if there are 'good' core changes that do occur.
    -d
    CHAITGEAR

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.