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*

abc

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Child theme CSS no recognised #51412
    abc
    Participant

    Okay I found the solution myself:

    The problem was the version number in the CSS file. When I used 1.0.0 (see example above), as per the WordPress reference page, my style.css was ignored by WordPress. As soon as I aligned the version number with the one from Ambition’s parent CSS (currently 1.3), it started taking the child CSS into account.

    I think this should be mentioned somewhere either on Theme Horse’s site or here https://codex.wordpress.org/Child_Themes. Not sure who to contact there but will give it a shot.

    in reply to: Child theme CSS no recognised #51411
    abc
    Participant

    Here’s my child CSS:

    /*
     Theme Name:   Ambition Child
     Theme URI:    http://example.com/ambition-child/
     Description:  Ambition Child Theme
     Author:       Authorname
     Author URI:   https://www.myURL.com
     Template:     ambition
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:  http://www.gnu.org/licenses/gpl-2.0.html
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  ambition-child
    */
    
    .page-title-wrap {
    	background-color: #ffffff;
    	padding: 60px 0 0 80px;
    	text-align: left;
    }
    
    .page-title {
    	color: #89a452;
            font-weight: 700;
    }
    
    .page-title a {
    	color: #89a452;
    }

    Could this be a file permissions issue? I saw that the child CSS file has different permissions from the original one.

Viewing 2 posts - 1 through 2 (of 2 total)