New Landing How can we help? Themeforest Theme Support Neighborhood Structured data question – missing description

Viewing 4 posts - 1 through 4 (of 4 total)
  • #294661
    MarcusRG
    Member
    Post count: 69

    Hi

    We’re using Shopping Ads a lot for our shop. Unfortunately the description isn’t fetched correctly as it’s not even defined on our shop.

    Example of a test result where both descriptions are filled out: https://search.google.com/structured-data/testing-tool?hl=da#url=https%3A%2F%2Frejsegear.dk%2Funiversal-rejseadapter%2F

    Furthermore the price isn’t tagged correctly with schema.org markup.

    Do you have a fix for the description? I can handle the price myself.

    #295104
    David Martin – Support
    Moderator
    Post count: 20834

    Are you sure you are using the latest version?

    All pricing has structured micro data, ex:

    /neighborhood/woocommerce/content-single-product.php

    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>
    <meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" />

    Currently it looks like the description micro data is not present, if you install and activate the supplied child theme I can help you with this.

    #295323
    MarcusRG
    Member
    Post count: 69

    Yeah well.. Parent theme is the new one. My content-single-product.php is still not updated completely. Can you tell me what to replace in content-single-product.php and I’ll take care of it?

    Would it otherwise be simple for a WordPress developer to update our child theme files to the newest file in parent theme without erasing our edits?

    #295562
    David Martin – Support
    Moderator
    Post count: 20834

    1) Open this file: content-single-product.php

    Locate these:

    	
    			<?php if ($product_short_description != "") { ?>
    				<div class="product-short">
    					<?php echo do_shortcode($product_short_description); ?>
    
    				</div>
    			<?php } else { ?>
    				<div class="product-short">
    					<?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ); ?>
    				</div>
    			<?php } ?>

    and change to this:

    	
    			<?php if ($product_short_description != "") { ?>
    				<div class="product-short" itemprop="description">
    					<?php echo do_shortcode($product_short_description); ?>
    
    				</div>
    			<?php } else { ?>
    				<div class="product-short" itemprop="description">
    					<?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ); ?>
    				</div>
    			<?php } ?>

    2) If you disclose all the changes you have made, then a developer can help you keep updated with the latest theme changes. Something like this would still require time and is not a copy/paste quick job as such.

    Hope that helps!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register