Search code examples
csschild-theming

why is the Css file codes in wp child theme written as comment line?


i have style.css in the wp child theme. (Below is the sample code) and this code in the comment line. as far as I know comments have no effect on the layout of a document. well, why are these codes written in the comment line??

/*
Theme Name:     kabasakal Childtheme
Description:    
Author:         Kabasakal Reklam Ajansı
Template:       kabasakal (you must enter the name of the main theme here!!)

*/

Solution

  • I believe these lines are what Wordpress uses to get the metadata about a theme/file when allowing an admin to choose between themes