Shortcodes to display products on homepage

This topic has 6 replies, 2 voices, and was last updated 5 years, 8 months ago ago by Rose Tyler

  • Avatar: strangehaven
    strangehaven
    Participant
    March 21, 2019 at 03:31

    Hi!

    I was wondering how I could display products within a certain category on the homepage.

    I was trying to use the short code [etheme_products category="22" limit="8" desktop="4" notebook="4" tablet="3" phones="2"]
    which seems like it should work, but its not pulling from the specific category I want.

    I was also wondering if it would be possible to hide the “add to cart button” if possible.

    Any help would be amazing!
    Thanks!

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 21, 2019 at 07:09

    Hello,

    Try to change categories="22" to category="22"
    Also, please see screenshots – https://prnt.sc/n0tiv6 > http://prntscr.com/n0tj4f http://prntscr.com/n0tjcc
    If you need any further assistance, please provide temporary wp-admin access.

    Regards

    Avatar: strangehaven
    strangehaven
    Participant
    March 21, 2019 at 19:08

    Thank you! that worked for me to edit it within the WPBakery. I can now display just the products within a category. Is there a way to display them with out the add to cart button?

    Avatar: strangehaven
    strangehaven
    Participant
    March 21, 2019 at 22:09

    Would you be able to provide the code for the Victoria static block? I accidentally erased part of the code by accident. =| And I really like the footer page!

    Thank you so much for your help!!

    Avatar: strangehaven
    strangehaven
    Participant
    March 21, 2019 at 22:37

    I actually was able to fix it however I am having an alignment issue with the headers in my footer…do you see what I am missing?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 22, 2019 at 08:17

    Hello,

    1) To disable the button, please add this code in Theme Options > Styling > Custom CSS > Global Custom CSS:

    .disable-add-to-cart .etheme_add_to_cart_button {
        display:  none;
    }

    and add this custom class for a column with the Products element – http://prntscr.com/n1b90w
    2) http://prntscr.com/n1bas7 http://prntscr.com/n1baw7 http://prntscr.com/n1bb59

    [vc_row css=".vc_custom_1432200112830{margin-bottom: 0px !important;padding-top: 60px !important;}"][vc_column width="1/4" css=".vc_custom_1432121593331{margin-bottom: 30px !important;}"][vc_single_image image="174" img_size="216x31" onclick="custom_link" link="#" css=".vc_custom_1467962801042{margin-bottom: 15px !important;}"][vc_column_text css=".vc_custom_1431946438374{margin-bottom: 30px !important;}"]Lorem ipsum dolor sit amet, consect etur adipisic ing elit, sed.[/vc_column_text][vc_column_text]
    <h5>Classico Ecommerce</h5>
    30 South Avenue San Francisco
    Phone: +78 123 456 789
    Email: Support@classico.com
    <a class="active" style="color: #dc4348;" href="#">www.classico.com</a>[/vc_column_text][/vc_column][vc_column width="1/4" css=".vc_custom_1432121601312{margin-bottom: 30px !important;}"][vc_wp_posts number="3" show_date="1"][/vc_column][vc_column width="1/4" css=".vc_custom_1432121608500{margin-bottom: 30px !important;}"][vc_column_text]
    <h2 class="widgettitle">Useful Links</h2>
    <ul class="footer-list">
     	<li><a href="https://www.8theme.com/demo/classico/variant1/track-orders/">Track You Order</a></li>
     	<li><a href="https://www.8theme.com/demo/classico/variant1/contact-us/">Contact Us</a></li>
     	<li><a href="https://www.8theme.com/demo/classico/variant1/faq/">Frequently Asked Questions</a></li>
     	<li><a href="https://www.8theme.com/demo/classico/variant1/my-account/">My Account</a></li>
     	<li><a href="https://www.8theme.com/demo/classico/variant1/shipping-delivery/">Terms and Conditions</a></li>
     	<li><a href="https://www.8theme.com/demo/classico/variant1/wishlist/">Wishlist</a></li>
    </ul>
    [/vc_column_text][/vc_column][vc_column width="1/4" css=".vc_custom_1432121616516{margin-bottom: 30px !important;}"][twitter title="Twitter"][/vc_column][/vc_row][vc_row css=".vc_custom_1432199358458{margin-bottom: 0px !important;border-top-width: 1px !important;padding-top: 30px !important;padding-right: 0px !important;padding-bottom: 30px !important;padding-left: 0px !important;border-top-color: #444444 !important;border-top-style: solid !important;}"][vc_column width="1/2"][vc_column_text]Created with <i class="fa fa-heart"></i> by <a style="color: #dc4348;" href="https://www.8theme.com">8theme</a>. All rights reserved[/vc_column_text][/vc_column][vc_column width="1/2"][vc_column_text el_class="text-right"][share][/vc_column_text][/vc_column][/vc_row]

    3) Provide temporary wp-admin acccess so I can take a closer look.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.