Grow your CSS skills. Land your dream job.

How do I style Pages in WP

  • # January 5, 2009 at 10:46 pm

    OK so I am really starting to catch on making a WP website but there is one place I am stumped and I dont know where to look to learn about what to do. I made my new pages in the WP panel right. Where do I go to write up the HTML code and apply my styling. Is there a PHP file new pages are under?

    For example.. on my site http://www.linkcreativedesign.com
    I have an about page, I have text in there from where I typed it in in the WP admin panel, but where do I go to start applying my styling for my about page? I was able to style the background and stuff that I want to be the same on all pages by adding my styling to my page.php file but what about when I want to do different stuff on different pages.

    Any resources on where I can learn about this or information you can share would be great! thanks

    # January 5, 2009 at 11:08 pm

    If you want to do different stuff on different pages, you need to use different page templates. One way to do this is to duplicate that page.php file and call it something else, like page-custom.php. Then at the top, put this:

    Code:
    < ?php
    /*
    Template Name: Snarfer
    */
    ?>

    When you are editing the page in WordPress, there now will be an option "Page Template" which you can select this new template from.

    # January 6, 2009 at 3:24 pm

    Oh ok.

    Basically when I make my real site, Im going to have about 4 pages, About, Blog, Portfolio, and Contact

    for the about, blog, and contact, I dont think Ill need a separate template, but for portfolio I plan on using lightbox or something like that for displaying my work.. I guess I just dont know where I will plug the lightbox stuff in. Would that be the one that I would make a separate page in or, would I just plug that in through WP.

    pab
    # January 6, 2009 at 3:32 pm

    hi Lin,

    For lightbox you can use a wp plugin that will let you add a simple line to your anchor in your post to display in a lightbox.

    # January 6, 2009 at 4:00 pm

    I was just looking into that. The plugin search on WP is being kinda funny right now and I havent found it yet.

    might be a dumb question but… what is an Anchor? Is it a line of code?

    Rob
    # January 6, 2009 at 5:41 pm

    An anchor is a refering to something inside the "document" basically an internal link. a link is external. Its just jargon for domestic and international flights lol

    Some good examples here: http://www.w3schools.com/HTML/html_links.asp

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".