Site logo

[Resolved] Align Quantity and Add to Cart Buttons on Single Product Page

Home Forums Support [Resolved] Align Quantity and Add to Cart Buttons on Single Product Page

Home Forums Support Align Quantity and Add to Cart Buttons on Single Product Page

Viewing 15 posts - 31 through 45 (of 56 total)
  • Author
    Posts
  • #2261795
    Ying
    Staff
    Customer Support

    That’s perfect, so do u recommend keep using the businessbloomer code? or should we achieve this using elements hook which you had shared?

    Seem the PHP code works fine, then just use that 🙂

    #2261797
    GeneratePressUser

    Ok thanks, pls see private box

    #2261798
    Ying
    Staff
    Customer Support

    I tested 2 products, and they behave the same, I didn’t see the freezing moment.
    But I have to say, it’s not very fast.

    #2261800
    GeneratePressUser

    Was the favicon loading on ur end? or was just loading for 1st product and not 2nd?

    #2261803
    Ying
    Staff
    Customer Support

    Both were loading.

    #2261804
    GeneratePressUser

    Hey Ying,

    Ok thanks a lot.

    #2261829
    Fernando
    Customer Support

    Yes, this is the default behavior of default buttons in GP. It follows the Colors in Appearance > Customize > Colors > Buttons

    If you wish to override this for these buttons, you can try adding this CSS in Appearance > Customize > Additional CSS:

    button.plus, button.minus {
        background-color:#000;
    }
    
    button.plus:hover, button.minus:hover {
        background-color:#CC3333;
    }

    Hope this clarifies!

    #2264015
    GeneratePressUser

    Hey Fernando,

    That’s perfect, so how can I have the same for all the buttons on the website? coz after clicking certain button there is no point on having hover effect on it until somewhere else is clicked in the background.

    #2264666
    David
    Staff
    Customer Support

    Hi there,

    coz after clicking certain button there is no point on having hover effect on it until somewhere else is clicked in the background.

    Can you explain or share an example ?

    #2264977
    GeneratePressUser

    Hey David,

    Sure, without using this CSS:

    button.plus, button.minus {
        background-color:#000;
    }
    
    button.plus:hover, button.minus:hover {
        background-color:#CC3333;
    }

    When I click on any of the buttons, then that button keeps having the hover effect even after my mouse is moved, it won’t go until I click somewhere else in the background.

    For example see this image: https://prnt.sc/pbe1_jQQpVyo

    #2265007
    David
    Staff
    Customer Support

    Can you link me to another page where there is a button that is retaining its ‘hover’ color after click ?

    #2265035
    GeneratePressUser

    Hey David,

    It seems that was the only one I guess which was causing that issue, weird, I can’t find any other button now doing such a thing, btw now since button and functioning is all solved can you pls tell how can the quantity button be taken on top and the add to cart button taken below it? in short instead of current inline format how to make it stacked.

    Earlier we went to other route coz the button was causing issues but now its resolved, the main reason for opening this topic was alignment.

    #2265211
    GeneratePressUser

    Hey David,

    OK I found the button which was causing that, pls check private box

    #2265592
    David
    Staff
    Customer Support

    Do you mean this?

    [screenshot deleted]

    #2266104
    GeneratePressUser

    Hey David,

    Yes, after dragging do they retain that hover effect? or its something to do with css?

    Also after adding product to the cart and you can go to checkout page there you can see before place order button there is accept terms and conditions that too looks like that.

Viewing 15 posts - 31 through 45 (of 56 total)
  • The topic ‘Align Quantity and Add to Cart Buttons on Single Product Page’ is closed to new replies.