Help With Customizing Template Pages

Community Forums Forums Design Tips and Tricks Help With Customizing Template Pages

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  John 1 year, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4173

    Kent
    Participant
    Post count: 58

    I’ve used the tutorial here (http://my.studiopress.com/tutorials/category-blog-page/) to create a custom archive page, but now I’d like to stylize that page differently than other archive pages, i.e. change post title styles and the order in which they appear – where/how can I do that?

    Thanks,
    -Kent


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    #4190

    John
    Participant
    Post count: 153

    Hey Kent,

    If you provide a link to the site, and the specific page, that will help us help you.

    The post title style can be changed in your style.css file, but the order in which the posts appear is modified in your page template.

    John


    John Sundberg | blackhillswebworks.com
    A WordPress developer’s toolbox: Firebug | WordPress Codex | Google ;)

    #4193

    Kent
    Participant
    Post count: 58

    John,

    Thanks. Sorry, I always forget that part. The site is here: http://www.ibsltd.ca/pub/fredericton_royals/.

    What I’m hoping to do is create individual posts for players past and present and then create archive pages for each letter of the alphabet. I don’t want the player archives to show the post titles as H1 – I’d prefer something much smaller, and I’m unsure how/where to set styles to be unique to a specific archive template.

    Do I need to create a 2nd template other than ‘Blog’ perhaps called ‘Players’ for example and style accordingly?

    -Kent


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    #4201

    John
    Participant
    Post count: 153

    I’m thinking that creating a custom post type called ‘player’ is going to be your best bet, and then use a page template(s) that queries that CPT.

    Styling will be easier to figure out once you actually have some posts in place and then you can figure out the specific class or classes you need to use.

    That’s an interesting use of WP-Table Reloaded on your Player Stats Archive. Are you going to manually link each one of those cells to the archive for that letter?


    John Sundberg | blackhillswebworks.com
    A WordPress developer’s toolbox: Firebug | WordPress Codex | Google ;)

    #4203

    Kent
    Participant
    Post count: 58

    John,

    Thanks for the scoop. I’ve never created custom post types before, but no time like the present to learn, right? :)

    Yes, I was going to link those letters in the table to player archives – I’m using the Tables Reloaded Plugin for all the stats tables on the site so figured it was the easiest way to accomplish that – unless you have better suggestion?

    -Kent


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    #4215

    John
    Participant
    Post count: 153

    Kent,

    Once you start using CPTs your WordPress possibility horizons will expand considerably – I highly recommend using them.

    I’ve had good experiences with a plugin called Taxonomy Picker and using the provided widget in a sidebar. Here’s one example of that: http://aheartforjustice.com/organizations/ (it’s the “Search Organizations” widget)

    When you create your CPT you’d need to create one or more taxonomies to go with it, and one taxonomy could be “name” or something similar, and then you’d add terms (just like tags or categories), with each term being a letter of the alphabet. From then on it’s dynamic and does the filtering for you, as long as you “tag” a post with the right term.

    Once you wrap your brain around how CPTs, taxonomies, and page templates all work together, you can do all kinds of cool WordPress stuff.

    John


    John Sundberg | blackhillswebworks.com
    A WordPress developer’s toolbox: Firebug | WordPress Codex | Google ;)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.