• I have a self hosted wordpress blog and am using a very simple theme that I created, and I would REALLY appreciate it if someone with more experience w/ WordPress could take a second to help me out…

    I’ll just give all the info and then hopefully someone could shed some light on this for me because as simple as it may be, I am extremely confused and frustrated lol…

    First off, my blog is located at: http://ryancallahan.com/blog/

    And here is the format (pretty simple) that I am trying to get my posts to appear in upon being published:

    DATE
    -Format – April 10, 2010
    -Font – Arial, Helevetica, Sans-Serif
    -Font Size – 10pt
    -Font Color – #696969

    POST
    -Font – Arial, Helevetica, Sans-Serif
    -Font Size – 10pt
    -Font Color – #ffffff

    That’s it, that’s the only content from each post that I’d like to appear on my blog…and then have a div that i already uploaded to my current theme’s images folder that I want to appear in between each post (the divider i want is located at: http://www.ryancallahan.com/blog/wp-content/themes/default/images/blogdiv.jpg)

    THANK YOU SO MUCH IN ADVANCE TO ANYBODY THAT CAN HELP ME ACHIEVE THIS!

Viewing 3 replies - 1 through 3 (of 3 total)
  • i supose that you have read these:

    http://codex.wordpress.org/The_Loop_in_Action

    http://codex.wordpress.org/Template_Tags/the_time
    http://codex.wordpress.org/Formatting_Date_and_Time

    and that you had a look into the code of the default theme.

    both resources are always good if you want to know how it is done.

    with this information you should be able to do what you are planning.

    here is a general idea what i would have in the loop:

    <div class="post post-<?php the_ID(); ?>">
    <div class="date"><?php the_time('F j, Y'); ?></div>
    <h2><?php the_title(); ?></h2>
    <div class="entry"><?php the_content('read more..'); ?></div>
    </div> <!-- closes .post -->
    <div class="divider"><img src="<?php bloginfo('template_url'); ?>/images/blogdiv.jpg" /></div>

    surely you can figure out yourself how to do the css.

    Thread Starter ryancallahan

    (@ryancallahan)

    thank you..i plugged the loop you gave me in my index.php and it worked great…But i still can’t edit the css and i think it’s because when creating the theme, i somehow lost the link between my blog and my stylesheet

    For example, when I go in and edit my style sheet, none of the changes appear on the blog…

    I guess i need to know what to add to/include in my index.php that would create a link between my theme and my stylesheet, right?…any suggestions?

    what to add to/include in my index.php that would create a link between my theme and my stylesheet

    as before, i would like to point to the default theme as a source of inspiration and code snippets.

    following line is in header.php of most themes:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    http://codex.wordpress.org/Function_Reference/bloginfo

    also, changes in the style.css sometimes don’t get visible in the browser, without clearing the browser cache by pressing ‘reload’ button, or by pressing CTRL and F5 at the same time.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to style posts on custom made theme?’ is closed to new replies.