Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #838858

    Hi There,

    Not sure if this is an Enfold thing, or a WooCommerce thing, but any help would be appreciated.

    I would like to hide the date and “similar post” of the related products. Currently it shows:

    Related Products:
    Name of Product (keep)
    Date of Publication (remove)
    “Similar Post” (remove)

    Thanks!

    #839010

    Hey rosewoodva,

    I’m not seeing the date text. Were you able to remove it? If not please screenshot me the area I should be viewing.

    Best regards,
    Jordan Shannon

    #839023

    Hi Jordan,

    Thanks for following up! With some more digging, I found out it was related products being generated by JetPack plugin. Here are some fixes for anyone else looking:

    CSS to hide Related Posts Date:
    span.jp-relatedposts-post-date {
    visibility: hidden;
    }

    To hide Jetpack related items all together:
    function exclude_jetpack_related_from_products( $options ) {
    if ( is_product() ) {
    $options[‘enabled’] = false;
    }

    return $options;
    }

    add_filter( ‘jetpack_relatedposts_filter_options’, ‘exclude_jetpack_related_from_products’ );

    #839184

    Hi,

    Great, glad you found the problem and thanks for sharing your solution. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.