Forum Replies Created
-
AuthorPosts
-
Sorry Ismael, maybe it was a broser issue, but when I copied the code, I had some “#39” in it. Now I can’t see it either. So please close this thread and THANK YOU for your great support!
Thanks a lot, Ismael!
When I inserted this, I received an error:add_filter( ‘avia_breadcrumbs_trail’, ‘mmx_remove_element_from_trail’, 50, 2 );
function mmx_remove_element_from_trail( $trail, $args ) {
if ( is_single() || is_archive() ) {
unset ($trail[1]);
}
return $trail;
}When inserting this (without #39), it worked fine:
add_filter( ‘avia_breadcrumbs_trail’, ‘mmx_remove_element_from_trail’, 50, 2 );
function mmx_remove_element_from_trail( $trail, $args ) {
if ( is_single() || is_archive() ) {
unset ($trail[1]);
}
return $trail;
}Do you think the code without #39 is okay too and won’t cause trouble in future theme updates?
Kind regardsHey Ismael,
sorry and thank you for the effort! I implemented the code mentioned in here https://kriesi.at/support/topic/exclude-post-from-post-slider/#post-1232100 and it worked perfectly!May I add one more question? Is there a way to remove “Archive” from the breadcrumb of the category pages? So that “Home/ Category” is displayed instead of “Home/Archive/Category”? I managed to remove the “Archive” in the posts using the code mentioned in here https://kriesi.at/support/topic/remove-category-from-breadcrumb/#post-426142
add_filter( ‘avia_breadcrumbs_trail’, ‘mmx_remove_element_from_trail’, 50, 2 );
function mmx_remove_element_from_trail( $trail, $args ) {
if ( is_single() ) {
unset ($trail[1]);
}
return $trail;
}It worked out just fine for the blog posts. However, “Archive” is still displayed in the breadcrumb on the category pages. Is there a way to solve this?
Kind regards!
Hi Jordan,
thanks, please close this topic. Best regardsHi Mike,
we followed your instructions, deactivated the plugins and identified the lazy load option of Smush as the one causing the issue.
Thanks for your support!!
Best regards
PetraHi Nikko, yes thanks for the offer! Here it is: (in private content)
Perfect, Victoria! That works. Thanks for your time and effort
-
AuthorPosts