[Plugin: Breadcrumb NavXT] Home title is not changed when language changes
-
Hello,
I have Polylang plugin for multilingual website.
When I switch the language my home page title changes.
Function
get_option('page_on_front'));
shows the title in current language, but I can’t configure the breadcrumb to shows it.
I tried hacking the plugin, but I know it isn’t good idea.
I put the front page title to table opt before line 506 of breadcrumb_navxt_class.php:$this->opt['Shome_title'] = get_the_title(get_option('page_on_front')); $breadcrumb = $this->add(new bcn_breadcrumb(get_the_title($id), $this->opt['Hpost_' . $parent->post_type . '_template'], array($parent->post_type), get_permalink($id)));
Could I ask you to tell me how I should do it in a good way?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Breadcrumb NavXT] Home title is not changed when language changes’ is closed to new replies.