Products stacking in Wordpress

Topic summary

A user is experiencing a layout issue when adding buy buttons to a WordPress site using the Cornerstone builder.

The Problem:

  • Three-column layout works correctly with text
  • When buy button code is inserted, the two side columns stack to the left instead of maintaining proper spacing
  • Screenshots show the layout breaking after button implementation

Technical Context:
The user has shared their button configuration code, which includes:

  • Product styling with media queries for responsive design
  • Custom button styling (colors, padding, border-radius)
  • Cart and modal product settings

The code snippet appears partially corrupted or reversed in the latter portion, which may indicate a formatting or encoding issue. The discussion remains open with no solutions or responses yet provided.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

I am adding buy buttons to my WordPress site using the Cornerstone builder.

I have three columns, buttons on the sides with text in the middle. If I place text in the columns everything is correct in the layout once published. Once I add the button code the two columns stack to the left.

Thoughts?

options: {
“product”: {
“styles”: {
“product”: {
@media (min-width: 601px)”: {
“max-width”: “calc(25% - 20px)”,
“margin-left”: “20px”,
“margin-bottom”: “50px”
}
},
“title”: {
“color”: “#ffffff
},
“button”: {
“:hover”: {
“background-color”: “#ff0024
},
“background-color”: “#b10015”,
“:focus”: {
“background-color”: “#ff0024
},
“border-radius”: “18px”,
“padding-left”: “65px”,
“padding-right”: “65px”
},
“price”: {
“color”: “#ffffff
},
“compareAt”: {
“color”: “#ffffff
},
“unitPrice”: {
“color”: “#ffffff
},
“description”: {
“color”: “#ffffff
}
},
“contents”: {
“button”: false,
“buttonWithQuantity”: true
},
“width”: “380px”,
“text”: {
“button”: “Add to cart”
}
},
“productSet”: {
“styles”: {
“products”: {
@media (min-width: 601px)”: {
“margin-left”: “-20px”
}
}
}
},
“modalProduct”: {
“contents”: {
“img”: false,
“imgWithCarousel”: true,
“button”: false,
“buttonWithQuantity”: true
},
“styles”: {
“product”: {
@media (min-width: 601px)”: {
“max-width”: “100%”,
“margin-left”: “0px”,
“margin-bottom”: “0px”
}
},
“button”: {
“:hover”: {
“background-color”: “#ff0024
},
“background-color”: “#b10015”,
“:focus”: {
“background-color”: “#ff0024
},
“border-radius”: “18px”,
“padding-left”: “65px”,
“padding-right”: “65px”
},
“title”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “bold”,
“font-size”: “26px”,
“color”: “#4c4c4c
},
“price”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “normal”,
“font-size”: “18px”,
“color”: “#4c4c4c
},
“compareAt”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “normal”,
“font-size”: “15.299999999999999px”,
“color”: “#4c4c4c
},
“unitPrice”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “normal”,
“font-size”: “15.299999999999999px”,
“color”: “#4c4c4c
},
“description”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “normal”,
“font-size”: “14px”,
“color”: “#4c4c4c
}
},
“text”: {
“button”: “Add to cart”
}
},
“option”: {},
“cart”: {
“styles”: {
“button”: {
“:hover”: {
“background-color”: “#ff0024
},
“background-color”: “#b10015”,
“:focus”: {
“background-color”: “#ff0024
},
“border-radius”: “18px”
}
},
“text”: {
“total”: “Subtotal”,
“button”: “Checkout”
},
“contents”: {
“note”: true
},
“popup”: false
},
“toggle”: {
“styles”: {
“toggle”: {
“background-color”: “#b10015”,
“:hover”: {
“background-color”: “#ff0024
},
“:focus”: {
“background-color”: “#ff0024
}
}
}
}
},
});
});
}
})();
/]]>/