badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Child theme problems

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6120
    jmccaleb
    Participant

    I have created a child theme and made a new style.css for it that only contains the lines changes in my previous iteration. (I’m preparing to upgrade, so need to capture my changes)

    I’m running in to 2 issues:

    1. The Appearance options in my child theme when doing a Live Preview no longer contains “Header Image”

    2. When I activate my child theme, much of the css is malformed. I’m assuming this is probably because I added only the changed lines in my child’s style.css, but I’m not sure how much/little to include. Below is my current chile style.css:

    /*
    Theme Name: Attitude Child Theme
    Theme URI: https://www.themehorse.com/themes/attitude
    Template: attitude
    Author: Theme Horse
    Author URI: https://www.themehorse.com
    Attitude WordPress Theme, Copyright 2013 Theme Horse
    Attitude is distributed under the terms of the GNU GPL
    */
    
    @import url("../attitude/style.css");
    
    /* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
    -------------------------------------------------------------- */
    
    /* Theme Modifications Start Here */
    
    /* No Border/Margin/Padding */
    
    .no-margin-left {
    	margin-left:10px !important;
    }
    
    /* Forms */
    
    input.s {
    	background: url(images/search.png) no-repeat right 5px #fff;
    	padding: 0px 33px 0px 0;
    
    }
    
    /* =Header
    ----------------------------------------------- */
    #branding {
    	margin-top: 0px;	
    }
    .hgroup-wrap {
    	padding-top: 10px;
    	padding-bottom: 0px;
    }
    site-logo {
      	margin-top: 0px;
    }
    
    .hgroup-right {
    	margin-top: 0px;
    }
    
    /* Social Profiles */
    
    .social-profiles ul li {
    	margin-top: 7px;
    }
    
    /* =Menu
    -------------------------------------------------------------- */
    
    /* Dropdown */
    
    #access ul li ul {
    	top: 45px;
    }
    

    Any help would be appreciated. Doing my best to help my friend out, and apparently know just enough to be dangerous. 😉

    #6134
    Sanjip Shah
    Participant

    @jmccaleb The approach that you have followed looks perfectly fine to me. Make sure the style.css that you imported is not altered one.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.