For us, the display looks even better with center alignment like:
Screenshot 2024-01-02 054956.png
with the addition of:
Code: Select all
.card.h-100.is-product {text-align: center!important;}
to the css:
Code: Select all
/*product listing - center contents & hide buttons & align prices to bottom of card*/
.card.h-100.is-product {text-align: center!important;}
.card.h-100.is-product .card-footer {display: none !important;}
.card.h-100.is-product .card-body {flex-direction: column !important; display: flex !important;}
.card.h-100.is-product .card-subtitle {margin-top: auto !important;}
A quick explainer:
.card.h-100.is-product (note there are no spaces between the classes) targets an element (in this case, a
<div>) that has all 3 of those classes,
.card and
.h-100 and
.is-product
.card.h-100.is-product .card-footer (note the space between
.card.h-100.is-product and
.card-footer) targets an element that has the class
.card-footer that is a child of an element that has all 3 of the classes,
.card and
.h-100 and
.is-product
It can be much quicker/easier to find targets and their classes using "Dev Tools" in your browser than looking in files.(using Chrome, on a live webpage, either click the top-right kebab menu>More tools>Developer tools or right click and click Inspect or Ctrl+Shift+I)
css can also be tested before applying.
See
Identify Elements for a gif with a simple example of use in the User Guide here:
https://phoenixcart.org/phoenixcartwiki ... and_Colour
You do not have the required permissions to view the files attached to this post.