WordPress.org

Ready to get started?Download WordPress

Forums

I'm new to this, and really confused! (12 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    Hi everyone!
    I'm am completely new to WordPress and I'm having loads of trouble trying to figure out how you change the template. I already have a design in mind, which you can see at http://cute-crazy.diaryland.com . Thats my current blog, I'm not copying someone else, lol! But I just can't figure out how I change the WordPress template to make it look like that! I know this is probably one of the most simple things, and I feel really stupid, but could anyone give me a clue?

  2. Cena
    Member
    Posted 10 years ago #

    It's as 'simple' as going through your index.php/wp-layout.css files. I think what you'd need to do is replace any diaryland tags with the appropriate WordPress ones (found in readme.html). I say 'simple' because in theory it sounds that way, but I haven't been able to do it myself (taking an existing template and converting it.) But you seem to have more knowledge than I do about such things if you've made your own diaryland template, so it should be relatively easy for you to do so.

  3. arthuc01
    Member
    Posted 10 years ago #

    Hi Amy
    Love the site, as Cena says It is just a matter of inserting the tags for wordpress into your current design or changing the design to use the wordpress default template.
    I took the liberty of demonstrating....
    http://www.lineages.co.uk/chris/sweet_nothing/index.htm
    If the design of your website slapped onto the default wordpress template - I.e just upload the images and wp-layout.css and it'll look like this with the normal index.php - if you want your side bar as it is at the moment move everything from your dairyland div#content to wordpress div#menu
    The search box goes a bit wrong as I've used ul li as your div#divider and hid the text and as the search box isn't listed as ul ul li as the rest of the menu text but ul li it disappears too....sorry
    ZIP File containing the images and CSS :
    http://www.lineages.co.uk/chris/sweet_nothing/sweet.zip
    Anyway its not finished but hopefully you'll be able to pick it apart and see how it was done and learn a few bits and pieces by doing so.
    Also I've checked it in IE6.0 and Mozilla Firebird 0.7
    As an aside you may want to reduce the size of reese.gif - 70k is quite ig and for us poor dial up users it takes a while to come down.
    McChris

  4. notthatugly
    Member
    Posted 10 years ago #

    As Cena says, probably the quickest thing to do would be to cut and paste the WordPress code into the html you're currently using for diaryland, replacing the diaryland variables with WordPress ones. (The readme.html in your WP zip file has a list of most of the major tags).
    You also need to remember that a WordPress template uses a bit of extra code that diaryland ones don't. This code needs to go at the very top of your template:

    < ?php /* Don't remove these lines, they call the b2 function files ! */
    $blog = 1;
    require_once('blog.header.php');
    require_once($abspath.'wp-links/links.php');
    require_once($abspath.'wp-links/links.weblogs.com.php');
    ?>

    You also need to use the start and end codes at the beginning and end of each entry block. So to replicate the effect you've got at the moment, you'd replace %%entries%% in your diaryland template with this:

    <?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
    <?php permalink_anchor('id') ?>
    <?php the_content() ?>
    <br/><br/>
    Amy ranted at "><?php the_time( 'g:i a') ?> on <?php the_time('F j, Y') ?><br/>
    <?php comments_popup_link('No-one ranted back', 'One ranted back!', '% ranted back! '); ?>
    <?php trackback_rdf() ?>
    <?php include($abspath . 'b2comments.php'); ?>
    <?php } } // end foreach, end if any posts
    ?>

    You'd probably want to mess around with that and your sidebars to incorporate other features such as categories, entry titles and the links manager; have fun experimenting!

  5. amy
    Member
    Posted 10 years ago #

    Wow! I wasn't expecting so much help! You've all been really incredibly useful and I have a much clearer idea of what to do now!! Thanks so much everyone!
    I'll certainly be back here soon! =)

  6. amy
    Member
    Posted 10 years ago #

    Ooh, one more thing, notthatugly, you say to put that first piece of code at the very top of my template. Where exactly do you mean? Is it in between two tags or something?

  7. notthatugly
    Member
    Posted 10 years ago #

    No, it's at the very top, before the <html> tag. I forgot one other thing; somewhere inbetween <head> and </head> you need < ? php comments_popup_script (); ?>, or the pop-up window for the comments won't work.
    (This is why some people find it easier to edit index.php or the CSS, rather than trying to insert all this stuff into a pre-made page...)

  8. amy
    Member
    Posted 10 years ago #

    Hmm, for some reason its not working for me, I'm not sure why.

  9. Cena
    Member
    Posted 10 years ago #

    Amy, one thing you might want to try is making sure that first line at the top of your template is <?php (no spaces)..looks like you've got that as < ? php (spaces in between everything) and that might be screwing it up.

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    its soooooooooooooooooooooooooooooooooooo hard, i dont get it. i mean i can design my own site, but i dont get this css stuff. if i replace all the code what will happen? everything will be gone of course! i wish i can pay sumone to make one for me

  11. Nom
    Member
    Posted 10 years ago #

    "I'm new to this, and really confused!"
    winter vacation is over and Amy has a new place - http://amy.silver-linings.net
    It's a little wide for 800, but worth the look. Problems solved? One entry seems to indicate sooooooooooooooo.

  12. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Congrats.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.