WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] child theme header (20 posts)

  1. dsoundguy0361
    Member
    Posted 1 year ago #

    I have created a Twenty Eleven child theme and have basic functionality. The problem is the header in the child has reverted back to default size, and images of street cars and the like. The custom header in the parent still looks the same. If I try to upload the needed images into the child header, or point to them from the media library, they don't work. Just shows the little box it shows when the link to an image is broken. I can't seem to use any images in the child that are already in the parent. The child theme seems to be working except for the header and using the same images that are already in the parent..

    Any advice on this? Ready to activate the child if I can fix the header and image problem.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Theme options / settings don't carry over to other themes, including child themes, so you need to redo them in your child theme. Is that what you have tried? You do need to have the child theme active in order to do that.

  3. dsoundguy0361
    Member
    Posted 1 year ago #

    Thanks for responding. When I activate the child, and try to upload, or insert images from the media library into the header, they don't work. just get the generic "graphic not found" box. The files I have in the child theme are: style.css, and rtl.css. I edited the parent header to look the way I wanted, but how do I do that to the child with just those two files.

    below is the beginning code in my child style.css..the rest of the code in the child style.css was copied from the parent folder.

    /*
    Theme Name:     Twenty Eleven Child
    Description:    Child theme for Twenty Eleven
    Author:         DW
    Template:       twentyeleven
    Version: 1.5
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
    Text Domain: twentyeleven
    */
    @import url("http://lonesomepineknives.com/themes/twentyeleven/style.css");
  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Ah, looks like your @import line is wrong -- it should be this:

    @import url("../twentyeleven/style.css");

    You also shouldn't have any CSS code in the new stylesheet except changes that you are making - i.e. don't copy the stylesheet contents from the parent one.

    See if these changes fix the problem.

  5. dsoundguy0361
    Member
    Posted 1 year ago #

    everything is ok now except the header images. still shows default twenty eleven images.

    On the Header options page.."Choose an image from your computer" and "Or choose an image from your media library" go thru the process but don't display in admin or the front end. I get the black box.

    i will be good to go if we can fix this WPyogi.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to your site? Also try deactivating any plugins.

  7. dsoundguy0361
    Member
    Posted 1 year ago #

    i have the child activated now. will leave it up till uu respond.
    the only plugins i have active are NeaxtGEN Gallery and WP e-commerce.

  8. dsoundguy0361
    Member
    Posted 1 year ago #

  9. dsoundguy0361
    Member
    Posted 1 year ago #

    I cleaned the style.css in the child. Wiped everything after import command.

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay, that looks good -- though you do have a stray bracket in the stylesheet - be sure to get rid of that - it will cause problems if you add styles there.

    So, are you adding the custom header from the custom header screen? (Sorry to sound redundant...just making sure we cover things :). )

    Probably a good idea to deactivate those plugins just in case. Also, do you have any caching on?

  11. dsoundguy0361
    Member
    Posted 1 year ago #

    just going to "appearance-header" where you change header stuff. Can't change, upload, or retrieve from "media library".

    not sure about the "caching thing"

  12. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Hm, that's definitely weird. So turn off those plugins and then via FTP, reset the plugins folder:

    http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F

    They can sometimes be cranky and not fully deactivate and still cause problems. Do you have the most current versions of those plugins and WP?

  13. dsoundguy0361
    Member
    Posted 1 year ago #

    de-activated wp e-commerce plugin. nextGen gallery plugin runs the gallery pages. they wont work without it.

  14. dsoundguy0361
    Member
    Posted 1 year ago #

    yes have current versions of both plugins

  15. dsoundguy0361
    Member
    Posted 1 year ago #

    will the nextgen gallery plugin cause the header to screw up?

  16. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Seems unlikely as it's widely used, but these are the standard troubleshooting steps. And sometimes plugins can just be weird.

  17. dsoundguy0361
    Member
    Posted 1 year ago #

    i will try the ftp method.

  18. dsoundguy0361
    Member
    Posted 1 year ago #

    de-activating plugins did not work. i can use the default images that come with twenty eleven but cant upload or use any others. they just show up blank.

  19. dsoundguy0361
    Member
    Posted 1 year ago #

    I fixed it WPyogi. The was problem was this. The original parent was created on different server, then migrated to it's current host. The url in "settings-media" had to be changed to reflect the current server. Images were being uploaded to one server and pointing to another. Problem solved! Thanks for your help man!

  20. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    GOOD for you!! Smart thinking / checking :). And BTW, it's woman (no biggie)!

Topic Closed

This topic has been closed to new replies.

About this Topic