[Resolved] replace miniptures with dots

Home Forums Support [Resolved] replace miniptures with dots

Home Forums Support replace miniptures with dots

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #900030
    Любомир

    how to make points instead of thumbnails of photos. amazon example

    #900236
    David
    Staff
    Customer Support

    Hi there,

    do you want this just on mobile?

    #900256
    Любомир

    Not.Everywhere.

    #900259
    Любомир

    If there are difficulties, then the mobile version is enough.

    #900280
    David
    Staff
    Customer Support

    Can do it for everywhere.
    So first off we need to add this PHP filter function:

    add_filter( 'woocommerce_single_product_carousel_options', function( $options ) {
    	$options['controlNav'] = "paging";
    	return $options;
    } );

    Then this CSS:

    .flex-control-paging {
    	list-style: none;
    	display: flex;
    	justify-content: center;
    	width: auto;
    	margin: 0;
    }
    
    .flex-control-paging a {
    	font-size: 0;
    	padding: 8px; /* Size of dot */
    	border-radius: 20px;
    	background-color: black; /* Dot Color */
    	margin: 0 8px; /* Space between dots */
    }
    .flex-control-paging a.flex-active {
    	background-color: green; /* Active Dot Color */
    }
    #900383
    Любомир

    Bravo! You are a wizard !!!

    #900415
    David
    Staff
    Customer Support

    Awesome – glad to be of help 🙂

    #900439
    Любомир

    Does not work on variable goods.

    #900443
    Любомир

    Now it works on a regular product: Ordinary goods
    Variable goods: Variable goods

    #900479
    David
    Staff
    Customer Support

    Are you using any plugins or additional code for the Variable goods?

    I tried on this test site and it works:

    https://merch.assemblewp.com/product/happy-ninja/

    #900554
    Любомир

    Sir, I figured it out! The problem was that I installed this code)))
    thank you very much for your mind and time!

    add_action( ‘template_redirect’, function() {
    remove_theme_support( ‘wc-product-gallery-zoom’ );
    remove_theme_support( ‘wc-product-gallery-lightbox’ );
    remove_theme_support( ‘wc-product-gallery-slider’ );
    }, 100 );

    #900564
    David
    Staff
    Customer Support

    Awesome – glad to be of help, glad you found the solution.

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