Home>Support>How to remove custom meta on single product pages

How to remove custom meta on single product pages

Hi,

I have just switched my client to the Vantage theme and it is working well except for certain custom meta items being added to single product pages. This is either ’embed’ or ‘vantage_panels_no_legacy: true’.

I have tried using the following css to remove custom_meta but this is not working:

.custom-meta {
display:none !important;
}

The single product page starts off with just ’embed’ showing and I have tried deleting the metadata ’embed’ on the product page itself but it comes back after saving the page as ‘vantage_panels_no_legacy: true’. If I delete this it just comes back again after saving.
My client is using WP eCommerce.

Can you help please?.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Margaret,

    Do you have a public URL where we can take a look at what’s outputting this data on the frontend?

  2. 6 years, 1 month ago Margaret Broadley

    Hi Alex,

    Thank you for the fast response. I have already removed the meta data showing on the single product pages from the data base. It is added to anything new though and I have created a new product to illustrate this:

    http://www.blastsfromthepast.co.uk/products-page/board-games-and-table-games/blasts-domino-building-game/

    You will see the meta data added: vantage_panels_no_legacy: true.

    Hope you can help with this.

  3. 6 years, 1 month ago Margaret Broadley

    Hi Alex,

    Since I replied I have managed to find the right css code to remove the meta data:

    div.custom_meta{display:none!important;}

    The original code I tried was incorrect:

    .custom-meta {display:none !important;}

    Have removed the code temporarily so that you can see the meta added.

  4. 6 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Margaret,

    Great to hear you managed to hide the meta.

    vantage_panels_no_legacy is added to allow for the modern SiteOrigin Page Builder interface. It is avoidable, but it’s not something we would recommend removing as it may result in issues.

    Regardless, you can remove it by adding some PHP to your website. If you don’t have a method of adding PHP, please install Code Snippets. Please navigate to WP AdminSnippetsAdd New and add the following PHP:

    function vantage_remove_legacy_row_theme() {
    	remove_filter( 'siteorigin_panels_row_style_fields', 'vantage_panels_row_style_fields', 11 );
    	remove_action( 'save_post', 'vantage_panels_save_post', 5, 2 );
    }
    add_action( 'init', 'vantage_remove_legacy_row_theme' );

    Click Save Changes & Activate. This PHP isn’t retroactive so you’ll need to update all previously created pages and manually remove the meta. This PHP will prevent this meta from being added to future posts and allow for removal of the meta.

  5. 6 years, 1 month ago Margaret Broadley

    Thank you so much for the PHP code Alex but I think just hiding the meta is the safest option.

  6. 6 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Margaret,

    I agree. Let me know if you run into any issues with hiding the meta in the future.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More