WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Am I going about editing the stylesheet the right way? (5 posts)

  1. MegWi
    Member
    Posted 2 years ago #

    Hi all,

    I am very new to this.
    I would like to be able to change the font color and size of my post title in the theme Origami. My blog-in-progress is here: http://www.blog.megwilsonphotography.com

    I have been searching the forums, and reading in the wordpress codex about how to do it, but no matter what I do nothing seems to change.

    Here is my process:
    in the dashboard I go to appearance>editor>stylesheet (there is another option- 'visual editor stylesheet?)

    then I search through the code for something about title, or post title, and font color: #

    I change what I find to the color I want, and click "update file". Then I open a new tab and create a test post and click "preview" and nothing ever changes.

    Here is one example of code:

    /* =Post  : Entry Title
    -------------------------------------------------------------- */
    
    h1.entry-title,
    h1.archive-title {
    	color: #333;
    	font-family: "Dosis", Arial, Helvetica, Geneva, sans-serif;
    	font-size: 2.2em;
    	font-size: 28px;
    	font-weight: 200;
    	line-height: 1.25em;
    	margin: 1em 0 0.4em 0;
    	text-align: center;
    }
    
    h1.entry-title.noinfo {
    	margin-bottom: 30px;
    }
    
    h1.entry-title a {
    	color: #262626;
    	text-decoration: none;
    }
    
    .post:last-child {
    	margin-bottom: 0;
    }
    
    .post .post-info {
    	color: #A6A6A6;
    	font-size: 11.5px;
    	margin-bottom: 30px;
    	text-align: center;
    }
    
    .post .post-info strong,
    .post .post-info a {
    	color: #808080;
    	font-weight: 500;
    	text-decoration: none;

    I tried changing the `h1.entry-title a {
    color: #262626;` to CC3333, just to see if it would change. No luck.
    I also tried changing it in the first bit h1.archive title color. Nothing.

    Can someone tell me where I'm going wrong? Thanks!

  2. When you say, you tried changing the colour - no luck.
    What do you mean? Do you mean that when you go back to your style.css, the colour didn't change?

    I can see now that the colours are #262626 and #333... did you change them back or did the changes not stick?

    Normally once you hit save, that changes the css.

    You could also update your css via ftp. You can download a copy of your theme on your computer and then re-upload the style.css once you've made changes.

  3. MegWi
    Member
    Posted 2 years ago #

    I changed them back after I saw no change so that I didn't inadvertently mess something up.

    What I mean by 'no luck' is, after I click "update file", and make a new post and preview it, the color is still the original black.

    Should editing the file on my computer and uploading via ftp give me a different result than editing the style sheet in my dashboard?

    thanks...

  4. If you didn't see the changes, then it means that either the old style.css was stuck in your cache and didn't display the new changes or that the style you changed was the wrong one. Using a tool like firebug allows you to inspect elements and see which styles need to be changed.

    You can either do it as you were doing it, or via FTP. The benefit of using FTP is that I can then use my text editor (I use textmate) and it gives me different colours, which I find it easier to read.

    You should also make a child theme that way if your theme has an update, you won't lose the changes you made.

  5. MegWi
    Member
    Posted 2 years ago #

    Thank you! Firebug is great!

Topic Closed

This topic has been closed to new replies.

About this Topic