WordPress.org

Ready to get started?Download WordPress

Forums

What am I supposed to copy? (2 posts)

  1. JJ5678
    Member
    Posted 10 months ago #

    Hi,

    I am trying to learn how to do this web design thing properly instead of just having pretty sites that I have no clue to how they work.

    I have been reading a lot of these forum and there is ne thing I don't understand. It's when people say the you should have a 'child theme' and instead of modifying the actual theme I should copy what I need to the child theme.
    Now I get confused, it all looks like alphebet soup to me. What do I copy and when some one says to copy the whole page and 'leave out such and such pieces' - I try but nothing ever happens?

    Perfect example is that I am trying to modify Twenty Eleven and I am trying to 'hack' the page titles so they aren't seen.
    The thread reads that there is one particular line of code that I must extract. But instead I should copy the whole file to my childs style.css and then remove the offending line of code. I have done it so many times and it NEVER works unless I remove it in the main style.css.

    So what am I doing wrong? What does it mean when someone says copy the whole page? Does it mean all the pjp characters and punctuation around the words or do I just copy everything or do you leave out some sections???

    Here is my website, http://facebook.mdtc.com.au

    http://

  2. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    You need to start by setting up your child theme correctly - it needs this at the top of the style.css file:

    /*
    Theme Name:     Twenty Eleven Child
    Template:       twentyeleven
    */
    
    @import url("../twentyeleven/style.css");

    You have a bunch of other non-CSS code in there so remove it all for now.

    Once you have that set up, post back so someone can make sure it's set up correctly, and help you with the changes you want to make.

    You'll also need start learning how CSS works - this is a good reference site :

    http://www.w3schools.com/css/default.asp

    Also download and install Firebug - good info on their site here:

    http://getfirebug.com

Reply

You must log in to post.

About this Topic