Forums

Removing the date from posts, changing link color (5 posts)

  1. nitch
    Member
    Posted 3 years ago #

    Hi,

    I'm using wordpress 2.7, my theme is Decimus and my URL is nitch.ca.

    I have two issues in customizing:

    1.
    There is a date tag on every page (including static) that I'd like to remove. This is the only code I can locate (in the style sheet) that seems to deal with it:
    .post .date {
    margin: -46px 25px 15px 0;
    text-align: right;
    color: #FF3333;

    When I remove this code, it simply moves the date to a right justified location. I'd like to know how to remove the date posting entirely.

    2.
    I'd also like to change the color of my links but can't seem to find any code that deals with the links in the body of the post. Any guidance would be appreciated here.

    ***

    Hopefully these are simple requests. I'd very much appreciate some help.
    Andrew

  2. Saurus
    Member
    Posted 3 years ago #

    You need to edit the page.php file - not your stylesheet.

  3. 1. If you mean http://www.codigogeek.com/2007/07/31/decimus-otro-theme-mas-para-wordpress/ then backup your theme files and change line 11 of decimus/page.php from this

    <h3 class="date"><?php the_time('F jS, Y') ?></h3>

    to this

    <!-- h3 class="date"><?php the_time('F jS, Y') ?></h3 -->

    This will cause the date to not be displayed. You could delete that line if you want, but this way if you change your mind then no big deal.

    2. That's a CSS issue, try adding the lines under .post .entry in your style.css

    .post .entry a {
    	color: #c00;
    }

    Replace #c00 with the color of your choice.

  4. nitch
    Member
    Posted 3 years ago #

    jdembowski - thanks a bunch.

    The tip for #1 totally got rid of dates on static pages but they remain on the posts. I don't mind this terribly if there was a way I could change the color on them - any tips there?

    For #2, your code worked to change the color but there was another line there that I didn't know how to treat and the way I did (well, a couple ways) just ended up destroying the spacing/formatting. How do I integrate your code into:

    .post .entry {
            padding-left: 32px;
    
    }

    Thanks again.

  5. nitch
    Member
    Posted 3 years ago #

    So I fixed that problem but there's still a lot of links that weren't affected. Links to newer or older posts, as well as the links to post a comment and the site info at the bottom - I'd like to change them all.

    Any idea where the code is for this?

Topic Closed

This topic has been closed to new replies.

About this Topic