Support » Theme: OceanWP » Move position of woocommerce product meta

  • leonliang



    I’m trying to change the position of “Linked Products” before the “Add to cart button”. I’m using Linked Product Variations Plugin and it supports to achieve that by some code like this:

     * Move linked variation options.
    function iconic_move_linked_variation_options() {
    	remove_action( 'woocommerce_single_product_summary', array( 'Iconic_WLV_Product', 'output_linked_variations' ), 25 );
    	$priority = 10;
    	add_action( 'woocommerce_single_product_summary', array( 'Iconic_WLV_Product', 'output_linked_variations' ), $priority );
    add_action( 'init', 'iconic_move_linked_variation_options' );

    By chaging the value of $priority, the position will move up or down. However, this works with the default Storefront theme, but not with OceanWP.

    I contacted their support and this is the result from theme:

    went ahead and installed a Woocommerce default theme(Storefront), and it seems that the code snippet provided to you by my colleague works properly from there, here’s the screenshot from my end after applying it: – in this way we can conclude that this was due to the theme’s structure which does not allow the ‘priority’ to take effect properly.

    I would suggest contacting your theme developer/provider regarding this as to why does the ‘priority’ is not taking effect properly unlike in the tested default theme, as they also have further insight over this.

    Could you please help me have a look into it?

    Login details can be provided.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Please avoid sharing login details here. It is against the forum guidelines.

    Please link to your site so that I can check it. Try to check the oceanwp/woocommerce/content-single-product.php file to understand the structure.
    Can you tell me the steps to replicate the issue so that I can check it on my end?



    Hello Amit,

    Thank you for your quick support.

    I’m developing on the staging site, here is the link to check the result:

    Here is what I did:
    1. created product groups that will be linked together by “Linked Product Variations”
    2, the linked products will display the group of products (like variations)on single product page.
    3, The code I posted in previous post was used to move the section of grouped products up or down
    4, When I change the $priority to a smaller number (move up the section), it will actually move all the way up above the product title.

    The best position will be after the short description and before the add to cart button.

    Thank you


    Try to use priority 20 or 25 and see it works or not.




    It doesn’t work. It does work with storefront theme though.

    Any other idea please?



    Can you please activate OceanWP theme so that I can check it. If the above code is not working, then you can do it by using some css.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Move position of woocommerce product meta’ is closed to new replies.