Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Clause

    (@johnclause)

    Hi, @blackravendc42: You would have to find the place in the code where the string goes out and see if there is a filter around which you could use to translate that string. If there is none, you can create a child theme and override this piece, or contact the theme to put filter in, or direct call to __() translation function.

    If there is filter, then enter its name into “Custom Filters” option.
    I hope this helps?

    I don’t know if this info will help you, but I am using a theme (Nirvana) that has breadcrumbs built in. I noticed that the page/post’s parent title was not being translated properly for some pages (attachment pages in particular). The parent title would include all language versions side-by-side.

    I inspected the theme’s breadcrumb function and noticed that, for attachments, the function retrieves the parent post/page’s info as follows:

    $parent = get_post($post->post_parent);

    Later, the parent title is added to the output string using the following:

    $parent->post_title

    Other titles are retrieved using WP’s get_the_title() function and they are translated normally.

    So I added a replacement function to my child theme’s functions.php file that replaces

    $parent->post_title

    with

    get_the_title($parent->ID)

    This solved the problem for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Headway Breadcrumbs’ is closed to new replies.