WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] child throws off formatting (7 posts)

  1. migueldemaria
    Member
    Posted 1 year ago #

    I have made an ifeature child theme, but when I install it, it throws the formatting off. The menus look weird, in the blog page the pictures are displaced and some of other text just in the wrong place.

    Here is the code.

    /*
    Theme Name:     ifeature child
    Theme URI:      http://example.com/
    Description:    Child theme for the ifeature 
    
    theme
    Author:         Miguel de Maria
    Author URI:     http://migueldemaria.com
    Template:       ifeature
    Version:        0.1.0
    */

    I have also used the code, but added the following line:
    @import url("../ifeature/style.css");
    When that didn't work, I tried:
    @import url("public_html/blog/wp-content/themes/ifeature/style.css");

    My hunch is that the style.css of the parent is not being linked properly? Would appreciate some help!

    properly formatted:
    http://www.migueldemaria.com/blog/
    a screenshot of after the child install (bad):
    http://www.migueldemaria.com/blog/uncategorized/bad-formatting/

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You MUST have this line:

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

    If that does not work, your theme may not be child-theme friendly.

    Can you add that back and switch to the child theme?

  3. migueldemaria
    Member
    Posted 1 year ago #

    Thanks WPyogi,
    I just added it to my ifeature-child folder, now it looks like this:

    /*
    Theme Name:     ifeature child
    Theme URI:      http://example.com/
    Description:    Child theme for the ifeature 
    
    theme
    Author:         Miguel de Maria
    Author URI:     http://migueldemaria.com
    Template:       ifeature
    Version:        0.1.0
    */
    
     @import url("../ifeature/style.css");

    And the bad formatting is there:
    http://www.migueldemaria.com/blog/

    I will have to check out the ifeature support, but in the code it explicitly discourages messing with the code and directs me to make a child.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It's working fine now - clear your browser cache.

  5. migueldemaria
    Member
    Posted 1 year ago #

    Interesting, it looks like someone else is having the identical problem and posted on ifeature support yesterday!

    http://cyberchimps.com/forum-topic/minimum-requirement-for-child-theme/

    I asked here because I assumed I was doing something wrong.

  6. migueldemaria
    Member
    Posted 1 year ago #

    Oops--so it is! Thank you! I guess that's a "is your computer plugged in" kind of thing...

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Browsers cache stylesheets and sites, so when you make a change, you may need to refresh the browser or clear the cache manually. But it seems to be working just fine now :)!

Topic Closed

This topic has been closed to new replies.

About this Topic