Hello
I made the changes described above to my child theme but now I am encountering the errors described below, did I somehow implement them incorrectly? Everything seemed to function perfectly after I pasted the code provided into the functions.php file – any idea how to fix this?
When I save my front page I am suddenly getting the following errors
Warning: Cannot modify header information - headers already sent by (output started at /home3/r8vrjjo8/public_html/motherculture.love/wp-content/themes/x-child/functions.php:1) in /home3/r8vrjjo8/public_html/motherculture.love/wp-admin/includes/misc.php on line 1116
Warning: Cannot modify header information - headers already sent by (output started at /home3/r8vrjjo8/public_html/motherculture.love/wp-content/themes/x-child/functions.php:1) in /home3/r8vrjjo8/public_html/motherculture.love/wp-includes/pluggable.php on line 1216
do you know what this could mean/how to fix it?
Login info attached below
also- here is the contents of my functions.php file currently
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to X in this file.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Enqueue Parent Stylesheet
// 02. Additional Functions
// =============================================================================
// Enqueue Parent Stylesheet
// =============================================================================
add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );
// Additional Functions
// =============================================================================
function x_wp_title( $title ) {
if ( is_front_page() ) {
return get_bloginfo( 'name' );
} elseif ( is_feed() ) {
return ' | RSS Feed';
} else {
return trim( $title ) . ' | ' . get_bloginfo( 'name' );
}
}
add_filter( ‘wp_title’, ‘x_wp_title’ );
add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
function change_graphic_lib($array) {
return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
}
add_action(‘woocommerce_before_shop_loop’, ‘custom_cartlink’, 9);
function custom_cartlink() { ?>
<?php
}