WordPress.org

Ready to get started?Download WordPress

Forums

How to add an image into the header (1) margin issues (2) (10 posts)

  1. Amir Rahbaran
    Member
    Posted 7 months ago #

    Hello together,

    I'm using the twenty-twelve theme. Link: http://new.shiva-rahbaran.org/wordpress/ I have two questions:

    1. What's the best way to add an image above the navigation "of interest" in the right - like here:
    http://shiva-rahbaran.org/

    2. I want to you add some margin to each link of the "of-interest" navigation (btw, talking about the first link). Currently, I'm doing this horrible (!) thing:

    li#menu-item-20, li#menu-item-31, li#menu-item-73, li#menu-item-74, li#menu-item-75, li#menu-item-76, li#menu-item-77, li#menu-item-78, li#menu-item-79 {
    	margin-top: 15px;
    }

    I know, I know. Hey, it worked for a while, but what is the proper way to handle that?

    Best,
    Amir

  2. esmi
    Forum Moderator
    Posted 7 months ago #

    Do not edit the theme itself. First create a child theme for your changes.

  3. Amir Rahbaran
    Member
    Posted 7 months ago #

    Thy, for the fast answer. Yes, I'm definitely going to do that, I just wanted solve my two issues (these are my only two modifications of the style.css). Any ideas esmi?

    Best,
    Amir

  4. esmi
    Forum Moderator
    Posted 7 months ago #

    You need to create a child theme before you make any changes - not after.

  5. Amir Rahbaran
    Member
    Posted 7 months ago #

    Alright. But what is the next step?

  6. esmi
    Forum Moderator
    Posted 7 months ago #

    Have you created & activated a child theme? If so, can we see it on your site?

  7. Amir Rahbaran
    Member
    Posted 7 months ago #

    Yes, I activated it now.
    Thanks again,
    Amir

  8. esmi
    Forum Moderator
    Posted 7 months ago #

    can we see it on your site?

  9. Amir Rahbaran
    Member
    Posted 7 months ago #

    Sorry, I don't understand? Link is the same:

    http://new.shiva-rahbaran.org/wordpress/

    Or is there anything I have to do, so you can see it?

    [ No bumping please. ]

  10. Amir Rahbaran
    Member
    Posted 7 months ago #

    I got my answers. So it's a bit of own Q&A here. But I thought this might be of interest for other people, too.

    Aibrean beautifully explains how to add an image for wordpress-novices:
    http://stackoverflow.com/a/24767483/1240203

    Codenathan does the same for the margin issue:
    http://stackoverflow.com/a/24762881/1240203

    Cheers,
    Amir
    P.S.: I didn't bump the thread, I just politely replied to each comment

Reply

You must log in to post.

About this Topic