WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I may have edited my parent theme - should i start again (9 posts)

  1. niklar
    Member
    Posted 1 year ago #

    Hi guys, apols for being a numpty. Just started using wordpress and activated twenty eleven them. Played around a bit before knowing anything anout child themes. So I created a child theme but I'm now not sure if i should unistall and reinstall and start from scratch. I havent done much yet so its not a problem but i dont want to continue trying if i've already ruined my chances!

    Im encountering 2 problems - one is that when i give the frontpage a title it appears on screen and i dont want it to. second i want to turn the white text box background black. i have tried codes in the style.css file in the child theme but nothing is happening. Any help appreciated please. site is culturedcarpbaits.co.uk

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Did you modify any theme files (not Dashboard settings or options ) - like .php files or style.css ?

    It looks like your child theme is set up fine, although I would suggest moving the @import line below the commented section:

    /*
    Theme Name:     Twenty Eleven Child
    Theme URI:      http://culturedcarpbaits.co.uk/
    Description:    Child theme for the Twenty Eleven theme
    Author:         Nik
    Author URI:     http://culturedcarpbaits.co.uk/about/
    Template:       twentyeleven
    Version:        1.5
    */
    @import url("../twentyeleven/style.css");
    
    #site-title, #site-description { text-indent: -9999px; }

    To hide the titles, try adding this:

    .singular .entry-title, .singular .entry-header .entry-meta {
        display: none;
    }

    and this for background:

    #primary {
        background: none repeat scroll 0 0 black;
    }
  3. niklar
    Member
    Posted 1 year ago #

    Hi WPyogi,

    Thank you! I didn't touch any files other than create the style.css - I only found where I could access them today and that's all I've done, which is a relief after ur reply!!

    I'll do what u say when I'm back on my machine tomorrow and let u know how it goes!

    Thanks again!

  4. niklar
    Member
    Posted 1 year ago #

    I have moved the @import url line down as suggested and i added the above code to the style.css file but nothing has changed. does the style.css file instantly update when it is saved and closed or is there a step in between that im missing?

    any help appreciated..

  5. niklar
    Member
    Posted 1 year ago #

    Ok, i think the reason nothing changed was that i was logged in on a different machine at the time. I have now gone back to my machine and the changes have appeared - thank you!!

    If you look at the site you will see that the text box is a little out of sync, can i change this?

    Also, how do i make the bottom of the page black also or to just show the background image?

    thanks

  6. niklar
    Member
    Posted 1 year ago #

    In an ideal world i would like my front page to be black with just the background image around the edges with the banner as it appears, the home menu not there so that you click on the eye to enter the site.. is that possible?

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try adding this:

    .home #access {
        display: none;
    }
    #page {
        background: none repeat scroll 0 0 black;
        border: 0 none;
    }
  8. niklar
    Member
    Posted 1 year ago #

    Thanks, that has done a job in terms of colour, there is a small white line at the bottom but i can cope with that.. But the main area or the post area is still a bit off to the left and not falling neatly into alignment - although the white has disappeared.

  9. niklar
    Member
    Posted 1 year ago #

    done

Topic Closed

This topic has been closed to new replies.

About this Topic