hi guys, is there a way to have the full width banner / slider shown on a per category basis? or based on page parent so that all child pages would share same slider / featured image?
Thanks!
Hey!
As far as i know, Pages can not be categorised by default. Can you post a link to your website so we can get a better context?
Cheers!
Josue
Hey!
Yeah, you’re correct. This will require custom modifications. You can edit loop-index.php file manually if you want to add a slider or an image inside a post within a certain category. Use the has_category function. https://codex.wordpress.org/Function_Reference/has_category
The code will look something like this:
if(has_category('video')) {
// Video slider here
}
elseif(has_category('image')) {
// Image slider here
} else {
// Else slider here
}
Regards,
Ismael