• Resolved richardsw16

    (@richardsw16)


    How can I replace the site title in the breadcrumbs with the text “Home”?

    My site title is quite long, and makes the breadcrumbs look messy.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Havlik

    (@mtekk)

    In the Breadcrumb NavXT settings page, under the General tab, look for the “Home Template” and “Home Template (unlinked)” settings. In these two settings replace instances of %title% an %htitle% with Home. After you have completed making your changes, remember to press the “Save Changes” button at the bottom of the screen.

    How to do it dynamically for different languages?

    Thread Starter richardsw16

    (@richardsw16)

    Thx John. That worked!

    Plugin Author John Havlik

    (@mtekk)

    @mario62rus: If you’re using Polylang or WPML there are extension plugins that aid in this. Otherwise, you can write a filter to hook into the bcn_breadcrumb_title and change it programmatically.

    As a small note, this can be done relative easily with Code Snippets. It is not necessary to cread child themes at all. It is fast to test because if something fails, simple deactive the code, fix errors and activate the code again. I just write this if you currently happens to use child themes.

    I might also need corresponding changes to the title behaviors concerning rendering blog posts categories. bcn_breadcrumb_title is apparently in the functions.php?

    We can’t duplicate the function. Can you give some examples how we could change the functionality programmatically using the hook.

    You apparently mean something like this (this concerns the basic content area):

    /* loppukoonnit */
    add_filter( ‘the_content’, ‘change_the_content’,10);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Replace site title with “Home”’ is closed to new replies.