Support » Themes and Templates » newb question: are any CSS classes or IDs required?

  • Resolved illovich

    (@illovich)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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”.

    whooami

    (@whooami)

    Member

    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.

    Sweet, thank you all for the swift replies =)

    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 =)

    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….)

    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!

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘newb question: are any CSS classes or IDs required?’ is closed to new replies.