This topic has 8 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #37933
     ellos
    Participant

    Hi guys, setting up the theme and need to fogure put how to change the order of category columns on the home page.
    Here – http://seventhqueen.com/themes/kleo/default-shop/ in the Shop by category section you have 4 coluns that represent categories.
    Let’s say I want to reshuffle them and change the order in which they are displayed, how would I do that?

    Thanks a lot.

    #37981
     sharmstr
    Moderator

    Hello. That’s a woocommerce shortcode. Documentation on it is here: http://docs.woothemes.com/document/woocommerce-shortcodes/#section-13

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #38002
     ellos
    Participant

    Sorry, you are not talking to a guy with strong Woo background…
    According to the link it tlooks like whatever is under ‘array’ can be used as a setting in a shortcode, but I still need a bit of help.

    For example, can I use [product_categories number=”12″ parent=”0″ ids=”1,2,3″] ?
    But even if I can, which order they will be displayed in?

    I underestand there is an ASC and DSC order – those are the only options?

    Bottom line – thanks for the link but I still can’t really figure out if I can display categories in the specific order, that I set
    Thanks.
    Elijah

    #38004
     sharmstr
    Moderator

    Sorry. My point was that its a function of woocommerce and not kleo. Did you search for an answer on the woocommerce forum? Looks like instead of sort by ‘name’ you can sort by ‘category order’.

    https://support.woothemes.com/hc/communities/public/questions/202745676-Sort-categories?locale=en-us

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #38008
     sharmstr
    Moderator

    Hmmmmm, maybe not. Looks like only name and date are valid. I wonder if there is a plugin for that?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #38009
     sharmstr
    Moderator

    I just thought of a hack that might work if you can’t figure it out via the shortcode. You could possibly use a 4 column row, then in each column, add the product_category shortcode, but set it to display 1 category and specify the category id.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #38011
     sharmstr
    Moderator

    I just tested the hack and it works. Here’s the VC code. Just change all occurances of “42” to whatever category you want.

    COPY CODE
    
    
    [vc_row][vc_column width="1/4"][product_categories number="1" columns="1" ids="42"][/vc_column][vc_column width="1/4"][product_categories number="1" columns="1" ids="42"][/vc_column][vc_column width="1/4"][product_categories number="1" columns="1" ids="42"][/vc_column][vc_column width="1/4"][product_categories number="1" columns="1" ids="42"][/vc_column][/vc_row]
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #38061
     ellos
    Participant

    I was actually thinking int he same direction too – 4 columns and specify which id to display, just wasn’t sure how to achieve that. Thank you, I will give it a try.

    #38065
     sharmstr
    Moderator

    Cool. The code I gave you might be difficult to use since you’ll have to insert into existing code using text view. But since you understand the concept, you can easily do it in VC by adding a row, chsosing 4 columns, add a text field to each column and paste [product_categories number=”1″ columns=”1″ ids=”42″] into each text field.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?