-
AuthorPosts
-
June 18, 2021 at 4:28 pm #1306411
HI,
On this templates page (archive), the h1 is the title of the last post. Why ?
I want somethings like “Catégorie ; Interview staff”thanks
June 19, 2021 at 8:06 am #1306497Hey Luc,
Please provide a link to the site/page in question so I can understand what you mean.
Best regards,
Jordan ShannonJune 21, 2021 at 10:44 am #1306692Hi, scuses me I forgot the url : ) : https://www.footbreizhacademie.com/fil-info/
June 22, 2021 at 6:25 am #1306864Hi,
Thank you for the info.
Did you add or use the avf_which_archive_output filter in the functions.php file? By default, the name of the category should display in the archive pages, not the title of the first post.
Best regards,
IsmaelJune 22, 2021 at 9:18 am #1306885Hi,
I’ve not add this filter in functions.php. I’ve the default archive.php templates. Do you have a solution for me ?
thanks
June 23, 2021 at 8:12 am #1307087Hi,
Thank you for the update.
We may need to access to the dashboard in order to check the issue further. Please post the login details in the private field and make sure that the Appearance > Editor panel is accessible.
Best regards,
IsmaelJune 23, 2021 at 3:47 pm #1307171Hi, thanks, here the login in private.
June 25, 2021 at 7:08 am #1307401Hi,
Thank you for the info.
It works correctly when we disable the avf_title_args filter in the functions.php file. Try to add a condition so that the filter is only applied on single posts.
function fix_single_post_title($args,$id) { if(!is_single()) return; $args['title'] = get_the_title($id); $args['link'] = ""; $args['heading'] = 'h1'; return $args; } add_filter('avf_title_args', 'fix_single_post_title', 10, 2);Best regards,
IsmaelJune 25, 2021 at 10:31 am #1307420Hi, You have change somethings ? it’s correct now
June 26, 2021 at 6:37 pm #1307527Hi,
It seems Ismael’s explanation of the fix is above. It could also have been a caching issue if it did not work initially.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.
