Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Masonry and Magazine – exclude current blogpost #1237742

    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!

    in reply to: Masonry and Magazine – exclude current blogpost #1236445

    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 regards

    in reply to: Masonry and Magazine – exclude current blogpost #1235646

    Hey 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!

    in reply to: Masonry element (flexible) #1218538

    Hi Jordan,
    thanks, please close this topic. Best regards

    in reply to: Masonry element (flexible) #1218502

    Hi 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
    Petra

    in reply to: Masonry element (flexible) #1217045

    Hi Nikko, yes thanks for the offer! Here it is: (in private content)

    in reply to: Portfolio Grid Category Issue #1210777

    Perfect, Victoria! That works. Thanks for your time and effort

Viewing 7 posts - 1 through 7 (of 7 total)