Hello Nimue,
Thanks for the details.
I have checked your site and found what was causing the issue. It is the single.php that has this file content:
<!-- Damit werden die Bilder pinable fuer Pinterest -->
<script
type="text/javascript"
async defer
src="//assets.pinterest.com/js/pinit.js"
data-pin-hover="doit"
data-pin-tall="true"
></script>
<?php
// =============================================================================
// SINGLE.PHP
// -----------------------------------------------------------------------------
// Handles output of individual posts.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's posts, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-single.php," where you'll be able to find the
// appropriate output.
// =============================================================================
x_get_view( x_get_stack(), 'wp', 'single' );
From the looks of it, you are trying to load the JS code below for single posts:
<!-- Damit werden die Bilder pinable fuer Pinterest -->
<script
type="text/javascript"
async defer
src="//assets.pinterest.com/js/pinit.js"
data-pin-hover="doit"
data-pin-tall="true"
></script>
A better and more efficient way to do it is to load the file in the functions.php through the wp_head
hook.
As I have checked you already have this code :
add_action('wp_head', 'add_header_code');
function add_header_code(){
?>
<meta name="p:domain_verify" content="837ef79328a6334fb1df86739ce5065e"/>
<?php }
So what you can do is load the pinterest JS in the same area and make use of the is_single()
Wordpress conditional so that it will only be loaded in single posts like this:
add_action('wp_head', 'add_header_code');
function add_header_code(){
if( is_single() ) { ?>
<!-- Damit werden die Bilder pinable fuer Pinterest -->
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js" data-pin-hover="doit" data-pin-tall="true"></script>
<?php
}
?>
<meta name="p:domain_verify" content="837ef79328a6334fb1df86739ce5065e"/>
<?php }
Then you may delete the single.php file.
Hope this helps.