Home Forums WoodMart support forum Different Styling Setup per category

Different Styling Setup per category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #187637

    m0seR
    Participant

    Hello,

    I’m creating a new shop with your theme and i would like to ask a “quick” question.

    It’s a fashion store, and i would like to seperate it in two main categories: MEN & WOMEN, but in each category i would like to have a seperate styling in the header & different menu.

    e.g. in MEN section i would like to have a black header with a menu that has the subcategories of this parent category

    and in WOMEN section i would like to have pink header with a menu that has different subcategories.

    Is this possible somehow with the theme? e.g. like changing headers in pages. Or do i need to add some custom css or a function?

    If not, would you suggest a multistore plugin that is compatible with your theme?

    Thank you in advance.

    #187773

    Hello,

    Unfortunately, there is no option in theme settings available to use different headers and styles for different categories pages.

    Because the categories pages inherits from the shop page that is controlled by WooCommerce and our theme doesn’t influence this. It requires customization and this is beyond limitations and our support policy.

    Best Regards.

    #192274

    m0seR
    Participant

    Hello again,

    i found a way to do it, but i would like to ask how/or which file from, i can get the headers that i create inside the theme here : http://prntscr.com/sasdcl

    I’m posting an example below, this is for a post category, not a woocommerce, but i will modify it. The thing i’m trying to find out, is where to get the headers from, that i’ve created in the theme.

    e.g. 
    <?php
    $post = $wp_query->post;
    if ( in_category('109') ) {
    get_header('videos'); // use header-videos.php
    
    } else {
    get_header(); // use default header.php
    }
    ?>

    Thank you in advance.

    #192368

    Hello,

    We are Glad that you found the solution yourself. You are Great!!

    Your solution might be helpful for someone.

    The data for the elements we save from the dashboard are stored in the database So, i am unable to tell you about the file.

    Unfortunately, we cannot help you with this as you are asking for core file customization and this is beyond our limitations and supports policy.

    Best Regards.

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