Works marvelously once you hack the relevant child theme
-
Just need to edit category.php and tag.php in child theme to put the relevant HTML and PHP code.
<div class="archive-meta" style="background-image: url(<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>);"><?php echo category_description(); ?></div>
in my taxonomy templates.Some CSS wouldn’t hurt.
.archive-meta { padding: 11px 0 11px; /* background-image: url(set via php in category.php or tag.php); */ background-size: cover;} .archive-meta p{ margin: 2em 0; color: #000; background: rgba(255,255,255,.7); box-shadow: rgba(255,255,255,.7) 0 0 3em 2em;}
in my child theme style.css file.
Don’t forget the functions.php necessary for child themes to enqueue styles correctly.
- The topic ‘Works marvelously once you hack the relevant child theme’ is closed to new replies.