Home › Forums › Retail Pro › the shortcode doesn’t work properly. (categories sort)
- This topic has 8 replies, 3 voices, and was last updated 5 years, 3 months ago by
Yazmin.
-
AuthorPosts
-
July 16, 2020 at 6:44 pm #11418
Ilay
ParticipantIs there any other way to sort it?
The shortcode doesn’t work properly and it doesn’t look good and designed.It looks like I just throw the categories on homepage, while I can’t control how many in 1 line, put it in the middle, and choose the size of the square.
Also can you write me a shortcode of displaying the featured-products section?
July 16, 2020 at 8:25 pm #11419
AndyKeymasterThat’s very strange… it should look exactly the same, because the homepage categories use the same code as the shortcode.
You can control how many in 1 line with the columns part of the shortcode.
This is 4 on one line:
[product_categories ids="5,3,87,23" columns="4"]If you want 3 on one line, you would do this:
[product_categories ids="5,3,87,23" columns="3"]Do you have the shortcode on a page on your website that I can take a look at?
July 16, 2020 at 8:35 pm #11420
AndyKeymasterThe shortcode for featured products is:
[featured_products columns="4"]Some more examples;
If you want 2 lines of 4 in each line, do this:
[featured_products columns="4" limit="8"]If you want 3 lines of 3 in each line, do this:
[featured_products columns="3" limit="9"]July 18, 2020 at 8:16 pm #11449Ilay
ParticipantOk it works, But the order doesn’t change, how do I set the order of the categories?
July 19, 2020 at 10:35 am #11467
AndyKeymasterSorry, I forgot to say that to make the order the same as the order you put them in the shortcode, you need to add
orderby="include"to the shortcode.e.g.:
[product_categories ids="42,27,24,28" columns="4" orderby="include"]July 19, 2020 at 2:21 pm #11468Ilay
ParticipantHow do I put the featured products (through shortcode) in the middle.
July 21, 2020 at 1:52 pm #11490
AndyKeymasterThe shortcode for featured products is:
[featured_products columns="4"]Some more examples;
If you want 2 lines of 4 in each line, do this:
[featured_products columns="4" limit="8"]If you want 3 lines of 3 in each line, do this:
[featured_products columns="3" limit="9"]July 25, 2020 at 10:30 pm #11622Ilay
ParticipantI did it. I have only 1 and its perfect, but its on the right side and I want to put it in the middle.
https://bonimstore.comHow do I do it?
July 26, 2020 at 11:04 am #11631
YazminKeymasterYou will need to add an extra CSS class to the shortcode like so:
[featured_products columns="5" class="product-centered"]Now add this ‘Additional CSS’ to make only this product centered:
.product-centered ul.products li.product { float: none; margin-left: auto; margin-right: auto; } -
AuthorPosts
- The topic ‘the shortcode doesn’t work properly. (categories sort)’ is closed to new replies.
