Title: Flex ordering changing my button
Last modified: February 23, 2022

---

# Flex ordering changing my button

 *  [shabbyrose](https://wordpress.org/support/users/shabbyrose/)
 * (@shabbyrose)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/flex-ordering-changing-my-button/)
 * Hi all,
 * I have enabled the add to cart button in my divi functions PHP file. I have also
   tried it in the editor of my child theme. They both have the same effect.
 * I have also added a subtitle function for my product display using ACF and PHP.
   My problem is without flex, the price is showing before the subtitle. I can change
   the order of this in flex and it works but it makes my add to cart button stretch
   the whole width of the space… Without flex in the css, the button is perfect,
   but adding flex ordering makes it have a heck of a lot of padding on both sides
   stretching it the full width of the product display.
 * I hope that makes sense!
    -  This topic was modified 4 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/flex-ordering-changing-my-button/#post-15393280)
 * Since that is a commercial theme, we ask that you please go to their official
   support channel, so you can get support from the people who know it best: [https://www.elegantthemes.com/contact/](https://www.elegantthemes.com/contact/)
 * Forum volunteers are not given access to commercial products, so they would not
   know why it is not working properly. Other community members who may have faced
   your issue might be able to help you but your best bet is your product’s developer.
   Keep in mind we encourage you to use the official support venues, as it allows
   the developers to be aware of issues with their code and gives back to the community
   in a more robust way.
 *  Thread Starter [shabbyrose](https://wordpress.org/support/users/shabbyrose/)
 * (@shabbyrose)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/flex-ordering-changing-my-button/#post-15394522)
 * It isn’t really about the theme though. It is about flex and why it is changing
   the size of my buttons. So it is a question about flex ordering and CSS.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Flex ordering changing my button’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [shabbyrose](https://wordpress.org/support/users/shabbyrose/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/flex-ordering-changing-my-button/#post-15394522)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
