Tagged: archive page
-
AuthorPosts
-
November 8, 2022 at 9:58 pm #1371827
Hello,
I have a couple issues I cannot figure out.I would like to make some adjustments to the Archives template, but I’m not sure the best way to do that. The template files are very dynamic, beyond my coding knowledge and I haven’t been able to find a solution in the support so far, or general googling.
Right now on the archives pages, if you go to a tags archive, the header at the top of the page that lists the Tag Archive is an h3, I would like to change that to an H2.
If you click on a category, or sort by month, there’s no header at all on the archive page that is brought up, just the grid of posts. I’d like a H2 header to show up that is the category name, or the month. Such as Past Events, or June Archive, pulling from the name of the category or month being shown.
Second issue is that we’re using Polylang to make the site bilingual. It seems like the plugin has the language as a custom taxonomy. Not all the posts, but at least some of them are pulling English as a category in the post’s meta. But since it’s not an actual post category, when you click it, takes you back to the home page which is just confusing. Is there a way to get the advanced builder’s meta to ignore the language taxonomies as categories? Since there’s legitimate categories on the posts, I can’t just hide with styles because the styles are the same on both categories.
Thank you for your help
November 9, 2022 at 6:26 pm #1371973Hello,
I did want to mention I had found this page https://kriesi.at/documentation/enfold/blog-post/#toggle-id-13 and I had read through it. I wasn’t sure if there was a way to modify the function for changing the archive style :
add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘single-small’;
return $layout;
}
to adding a header/changing the tag header. I just am uncertain what exactly I would change to use that, or if that would work.For the language showing up as a category, if there isn’t a good way to exclude it, is there a way to get the meta element in the advanced page builder to put a unique class or id on each category that gets listed? Then I could at least hide the language with styles, without hiding the other categories.
Thank you,
November 10, 2022 at 5:13 pm #1372091Hello,
Wondering if anyone has had a chance to look at this yet. Usually posts get answered within a day or so.
Thank youNovember 11, 2022 at 8:25 pm #1372260Hi,
Thanks for your patience, the function you posted above is for changing the layout of the archive page, so instead of the grid layout you would have the single small layout, that is a small image like your post page that you linked to, did you want to change from a grid layout?
We can change the h3 to h2 with some javascript, but if you want to change the layout please add the function first.
We can also remove the word “English” from the category link, but for the post linked I didn’t find a French translated post, has this not been created yet, or can you link to it?
I ask because I wanted the javascript solution for removing the word “English” from the category link to also work the assumed word “French” in the translated posts.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.