Home Forums WoodMart support forum Different Styling Setup per category Reply To: Different Styling Setup per category

#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.