Site logo

Archived topic

Support for setting a Block Element location to a specific taxonomy archive?

3 replies · Started by Nome on September 21, 2021

Viewing posts 1–4 of 4

I was wondering if there was a way I am unaware of or a workaround to set the location for a Block Element to all term archives for a specific taxonomy. If not, I think this would be a great capability to support in the future.

Example:
Say I have a custom taxonomy, genre, on my site. The slug for the taxonomy term archives would be at www.mysite.com/genre/term. As far as I am aware, the only way I currently have to handle styling that page and its sidebar would either be to create a layout that applies to all archives in GeneratePress Elements, or to create taxonomy-genre.php in a child theme, with the custom layout I like.

So, in the ideal world, the locations selection drop down would have something like:
Taxonomy Archives
- Category
- Tag
- Genre

Let me know if there is a hook or something in the code to change this behavior in the meantime, but I think this would be a useful ability to have.

Hi Nome,

If the taxonomy is registered correctly, you should be able to find post genre archive in the location dropdown menu.

Let me know if you need further assistance :)

Thank you! I was just coming here to remove my question/request. I just realized that I had has_archive set to false somehow in a CPT. Sorry about the trouble!

No worries :)

Glad you figured it out, we are all learning!

This archived topic is closed to new replies.