• Resolved kbarcza

    (@kbarcza)


    Hello,

    Latest version 2.8.16, 21 December 2017 with the following:
    -> Fix: Changing span elements for div elements for schema markup.

    This upgrade kill the my page structure (mediaphase theme).
    I can put back from backup and page look great again.
    The part of probelm is:

    --- easy-digital-downloads.old/includes/template-functions.php  2017-12-20 15:55:31.000000000 +0100
    +++ easy-digital-downloads/includes/template-functions.php      2017-12-28 00:57:54.000000000 +0100
    @@ -831,7 +831,7 @@
    
            if ( $query && ! empty( $query->query['post_type'] ) && $query->query['post_type'] == 'download' && is_singular( 'download' ) && $query->is_main_query() ) {
                    $microdata_open = true;
    -               echo '<span itemscope itemtype="https://schema.org/Product">';
    +               echo '<div itemscope itemtype="https://schema.org/Product">';
            }
    
     }
    @@ -856,7 +856,7 @@
    
            if ( $post && $post->post_type == 'download' && is_singular( 'download' ) && is_main_query() ) {
                    $microdata_close = true;
    -               echo '</span>';
    +               echo '</div>';
            }
     }
     add_action( 'loop_end', 'edd_microdata_wrapper_close', 10 );
    
    • This topic was modified 6 years, 11 months ago by kbarcza.
    • This topic was modified 6 years, 11 months ago by kbarcza.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Span change kill theme’ is closed to new replies.