WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] newb question: are any CSS classes or IDs required? (8 posts)

  1. illovich
    Member
    Posted 7 years ago #

    Hey everybody.

    I've decided to move my blog to WP from MT, I'm guessing I don't have to offer an explanation why on this board =)

    In the process I decided to port my old MT template to WP, and get rid of all the bad legacy HTML 3.0 code in there (I'm still doing the page layout with tables! WTH?)

    Anyway, I've been moving along and gotten most of the basic work done and I decided I'd start making an actual template instead of just a mock up layout and I just got paralyzed by a question...

    Do I have to use any of the CSS styles that seem to be fairly ubiquitous among all the templates I've looked at? (like wrapper, content, &c.?)

    It seems (and makes sense) to me that use of styles would be completely controlled by my template, but I wanted to make sure that none of the WP processes return pre-styled code.

    Could someone reassure me? =)

    Thanks much,

    ill

  2. vkaryl
    Member
    Posted 7 years ago #

    As far as I'm aware, all the "look" is controlled within the theme files in the named theme folders within wp-content/themes/. I *think* that some of the core processes do produce <li><ul> nested list code, but that's easy enough to style once you get your layout done and can see if something doesn't "fit".

  3. whooami
    Member
    Posted 7 years ago #

    your safe, have at it. The only place that might be an issue is in the wp-admin backend.

    The similarity is just for ease of use.

  4. illovich
    Member
    Posted 7 years ago #

    Sweet, thank you all for the swift replies =)

  5. illovich
    Member
    Posted 7 years ago #

    I *think* that some of the core processes do produce <li><ul> nested list code, but that's easy enough to style once you get your layout done and can see if something doesn't "fit".

    Actually, I've found at least one: the link categories style as <li id="linkcat-1"><h2>Additional Links</h2> and I haven't figured out how to change that, which is semi-unfortunate, but not the end of the world.

    There's probably a place to change it, anyway =)

  6. vkaryl
    Member
    Posted 7 years ago #

    Try adding whatever styling you want to see into #linkcat h2 in your style.css file (it might not already be there; just add it....)

  7. illovich
    Member
    Posted 7 years ago #

    Thanks for the suggestion, vkaryl. I played around with it, but had some trouble (I think I don't totally understand how selectors work) and started poking around the WP site some more.

    As I found on this page,
    http://codex.wordpress.org/Template_Tags/get_links
    you can replace the default <?php get_links_list('id'); ?> (well, it was the default on the template I copied the php code from =) ) with <?php get_links(); ?> and you can get--well--a mess (the default tag with no parameters just drops a bunch of unformatted text).

    But it's what I was looking for, so I'm happy. Just need to figure out which parameters I want.

    Thanks again!

  8. vkaryl
    Member
    Posted 7 years ago #

    Well, as long as you're happy! Best to you, have fun, post back when it gets done so we can see....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags