• Hi,
    i want to know how i can change that the breadcrumb belongs to the menu headlines instead of the site headlines. I changed my site headlines so that they are a bit longer but the consequence is that the breadcrumb gets to long. How can i change this?
    Thanks for support!

    Best Regards,
    Matthias

    • This topic was modified 3 years, 11 months ago by Steven Stern (sterndata). Reason: removed modlook and spam tag "best electric smoker 2021"
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Havlik

    (@mtekk)

    Breadcrumb NaxXT has the bcn_breadcrumb_title filter that allows you to control (via code) the title used in the breadcrumb trail. In your case, you will need to search the menu for the menu item that represents the same resource that the breadcrumb represents to then use the menu item’s title. If you don’t want to write code to achieve this, there are premium add-on plugins that provide methods to specify alternative titles (Menu Magic will use the menu title and structure/hierarchy).

    Thread Starter matze112

    (@matze112)

    Hi John,

    is there no easy possibility to change some settings, for example changing a word in the HTML-Code. I use the Menu Plugin Mega Max. Does this Plugin support your way

    Regards Matthias

    Plugin Author John Havlik

    (@mtekk)

    I have not tested against Menu Plugin Mega Max, yet, so I can’t comment on compatibility with that plugin (hopefully I’ll have the time to look at this before the end of the year). As for having settings/a GUI for using an alternate title, rather than writing code that hooks into the bcn_breadcrumb_trail filter, your options are Title Trixx (uses the SEO breadcrumb title, or provides metabox for breadcrumb title if none of the supported SEO plugins are active) and Menu Magic (uses menu title and structure).

    Thread Starter matze112

    (@matze112)

    Hi @mtekk ,
    sorry for late responsive.
    Could you please expkain me the bcn_breadcrumb_title and how i can use it writing codes to use the menu titels intead of the site titles?

    Best regards,
    Matthias

    Plugin Author John Havlik

    (@mtekk)

    Linked in my first reply, the Breadcrumb NavXT documentation covers the what gets passed into the bcn_breadcrumb_title filter, and has a link to an article with an example on how to use the filter. The gist of what a filter would need to do is take the passed in $id and $type parameters and use them to find the corresponding item in the menu. From there, you just replace the $title (which the filter must return) with the title from the menu item.

    • This reply was modified 4 years, 10 months ago by John Havlik.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menu instead of headlines’ is closed to new replies.