Hello @hannahlincoln,
One of the custom PHP codes added in your child theme’s functions.php file is causing the issue.
// RSS Functions
// =============================================================================
function add_media_namespace() {
echo 'xmlns:media="http://search.yahoo.com/mrss/"'."\n";
}
add_action( 'rss2_ns', 'add_media_namespace' );
function add_rss_image(){
global $post;
$output = '';
if ( has_post_thumbnail( $post->ID ) ) {
$thumbnail_ID = get_post_thumbnail_id( $post->ID );
$thumbnail = wp_get_attachment_image_src( $thumbnail_ID, array(640, 9999) );
$output .= '<media:thumbnail';
$output .= ' url="'. $thumbnail[0] .'"';
$output .= ' width="'. $thumbnail[1] .'"';
$output .= ' height="'. $thumbnail[2] .'"';
$output .= ' />';
}
echo $output;
}
add_action( 'rss2_item', 'add_rss_image' );
// Additional Functions
// =============================================================================
/*
* Yoast SEO Disable Automatic Redirects for
* Posts And Pages
* Credit: Yoast Development Team
* Last Tested: May 09 2017 using Yoast SEO Premium 4.7.1 on WordPress 4.7.4
*/
add_filter('wpseo_premium_post_redirect_slug_change', '__return_true' );
/*
* Yoast SEO Disable Automatic Redirects for
* Taxonomies (Category, Tags, Etc)
* Credit: Yoast Development Team
* Last Tested: May 09 2017 using Yoast SEO Premium 4.7.1 on WordPress 4.7.4
*/
add_filter('wpseo_premium_term_redirect_slug_change', '__return_true' );
// add blog title
function add_blog_title() {
if(is_home()) {
?>
<header class="x-header-landmark x-container max width">
<h1 class="h-landmark"><span>Sage Blog</span></h1>
<p class="p-landmark-sub"><span>Sage 200cloud, Sage Intacct, Sage 50cloud and Business Processes</span></p>
</header>
<?php
} else if ( is_archive() ) { ?>
<header class="x-header-landmark x-container max width">
<h1 class="h-landmark"><span><?php echo single_cat_title("", false); ?></span></h1>
<p class="p-landmark-sub"><?php echo category_description(); ?></p>
</header>
<?php }
}
add_action('x_after_view_global__slider-below', 'add_blog_title');
// make hubspot forms work by not being previewed in the builder //
add_shortcode( 'cs_no_preview', function( $atts, $content = '') {
return did_action( 'cs_element_rendering' ) || did_action( 'cs_before_preview_frame' ) ? '' : $content;
});
You may need to contact the creators of these codes or that you remove the PHP one by one to figure out which PHP code block is causing the issue.
Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third-party developer.
Kindly let us know how it goes.