Support » Plugin: WooCommerce » Move Product Title on Single Product Page above Images on Mobile Only (woocommer

  • Resolved waseemaslam

    (@waseemaslam)


    I’m using Woocommerce I just want to know How can I move the product title above the images for Mobile only?

    https://i.imgur.com/1fUfOJC.png

    I tried the following code but not working.

    ——

    jQuery( function($) {

    mobile = $(window).width();
    if ( mobile <= 480 ){
    jQuery( “.product_title.entry-title” ).insertBefore( “.woocommerce-product-gallery” );
    }

    } );

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Class woocommerce-product-gallery doesn’t exist, so:

    jQuery( document ).ready( function ($) {
      var mobile = $(window).width();
      if ( mobile <= 480 ){
        $( ".product_title.entry-title" ).insertBefore( ".woocommerce-product-gallery__image" );
      }
    } );

    Tried but not working.

    Do you have any other solution?

    Sorry no. Works for me on your site using TamperMonkey.

    Check console for any errors.

    I can’t find the code in the page. Where did you put it? If you have taken it out, please put it back in so I can try to find out why its not working.

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