https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
you have possibly a invalid character before the first or after the last line of functions.php of the child theme
I’m not able to find any, however, this file is saved with UTF-8 encoding. Could that be the problem?
HI @kennethrjonesstem ,
Hi, the usual culprit is the php closing tag in your child theme functions.php file, which should be omitted. See:
http://php.net/basic-syntax.instruction-separation
It could actually be in either file, as they will be calling on each other. It may even be in a different .php file altogether.
I assume your functions.php is somewhat modified as it sits in the child-theme so take a look there.
Assuming you have not modified functions.php then the culprit is most likely a plug-in – so check pluggable.php. If the file ends with ‘?>’ then simply remove that and any white spaces after the last line of code in the file.
Regards
I’m not able to find the issue. I would assume that my code is correct (the closing tag) because I copied and pasted the code directly from the help file that I linked in the initial post.
I’ll keep working on it in the mean time. I’ll post back if I figure it out.
Update: I’ve posted this question again in the support forum for the Ultra Framework theme. Maybe the author can help.
Hello,
I’ll try to help.
1. If you need make changes in CSS just occasionally, maybe better solution is Additional CSS in Customizer. This is new handy feature in WordPress 4.7 (Dashboard: Appearance > Customize).
2. I checked out my local Ultra Framework installation and everything looks ok. Child theme works fine. Code in your child theme functions.php looks good as well, but I do it in little bit different way. Maybe code below will be helpful. Just paste it in your child theme functions.php (not use closing PHP tag at the bottom). Let me notice Ultra Framework has built upon UIkit CSS Framework, so need enqueue UIkit file and local custom fonts as well.
<?php
if ( !function_exists( 'example_enqueue_styles' ) ):
function example_enqueue_styles() {
wp_enqueue_style( 'parent-theme', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'uikit','ultra_framework-custom-fonts' ) );
}
endif;
add_action( 'wp_enqueue_scripts', 'example_enqueue_styles', 10 );
Thanks,
@epress24
Hi,
You want me to paste that in, without any modifications? Even with the ‘example_enqueue_styles’ function name? It doesn’t appear to be a real function name, but if I’m understanding you correctly, that’s what you wanted me to use.
Thanks.
Hi,
Yes, just paste it in. This is example function name, but it doesn’t matter now. If code will work, you can change that name for more intuitive then.
Regards,
@epress24
I’m still not able to get it working… I’ve tried what you said… As soon as I switch to the child theme it includes a skip intro link at the top, some formatting is off, and the pagination at the bottom is misaligned.
Can you take a look at it and see if you can help? I really need to get this working so I can finish my AdSense application.
http://kennethrjones.com
Thanks.
EDIT: And for some reason apparently I have two accounts on here… Didn’t know that…
EDIT AGAIN:
These are my files.
/*
Theme Name: Ultra Framework Child
Theme URI: http://kennethrjones.com
Description: Ultra Framework Child Theme
Author: Kenneth R. Jones
Author URI: http://kennethrjones.com
Template: ultra-framework
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: minimalized
Text Domain: ultra-framework-child
*/
<?php
if ( !function_exists( 'example_enqueue_styles' ) ):
function example_enqueue_styles() {
wp_enqueue_style( 'parent-theme', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'uikit','ultra_framework-custom-fonts' ) );
}
endif;
add_action( 'wp_enqueue_scripts', 'example_enqueue_styles', 10 );
-
This reply was modified 9 years, 3 months ago by
KJ82.
-
This reply was modified 9 years, 3 months ago by
KJ82.
Hi,
For me everything is working properly. I do not know what’s wrong with yours installation. If for some reason you have problems with child theme implementation, use plugin. This one is handy: https://wordpress.org/plugins/child-theme-configurator/
Regards,
@epress24
It is working fine now because I switched themes. I couldn’t get the Ultra Framework theme to work.
I will check out the plugin and see if it helps.
Thanks.