编辑:
我想要做的是将css代码添加到我现有的css文件中。我不知道" c" fopen的模式是好的,我不知道我是否需要添加或删除任何其他内容,但我已经读过" c"只需将代码添加到文件的开头,而不删除其中的所有内容。
$handle = fopen("mt_custom_services.css", "r");
.mt--custom_services:hover {
background-color: '.esc_attr($custom_service_background).' !important;
}
.mt--custom_services .hover_container .hover_container_holder .custom_service_second_title {
color: '.esc_attr($custom_service_title_color).';
}
.mt--custom_services .hover_container .hover_container_holder .custom_service_description {
color: '.esc_attr($custom_service_description_color).';
}
.mt--custom_services .hover_container .more-link {
color: '.esc_attr($custom_service_button_color).';
}
.mt--custom_services .hover_container {
background-color: rgba(35, 35, 49, 0.7);
}