Badge placement
Rupali
Last Update 19 วันที่แล้ว
Note: This is for advanced users who can work with Shopify liquid code and CSS styling language.
Badges can be placed at virtually any location on pages having products, including product details page, collection page, search page, etc. The badge position can be manipulated by:
1. Changing the integration code location
2. Passing appropriate parameters in the integration code
There are two helpful integration parameters to manage the badge placement:
1. primebOuterClass: CSS classes passed using this parameter will be applied to the DIV containing the badges.
We have the following in-built classes that can be used to manage the badge placement:
| Class Name | Resultant CSS |
| prime-d-block | display:block; |
| prime-d-inline-block | display:inline-block; |
| prime-mr-1 | margin-right: .25rem; |
| prime-ml-1 | margin-left: .25rem; |
| prime-mt-1 | margin-top: .25rem; |
| prime-mb-1 | margin-bottom: .25rem; |
Example integration code:
2. primebOuterStyle: Pass any custom CSS elements using this parameter and they will be applied to the badge container.
Example integration code:
