P
P
Pr-Dmitriy2018-11-24 10:30:36
User navigation
Pr-Dmitriy, 2018-11-24 10:30:36

How to shorten breadcrumbs?

Greetings.
I use the Breadcrumb NavXT plugin. Navigation texts are added to the rubric pages. The title of the rubric is displayed in h1. The problem is that h1s are long and don't look good in breadcrumbs (%htitle%), especially when there is a nested heading structure.
Can you tell me how to make it so that only part of the text in the structure is displayed? Let's say only the first 20-30 characters from the category name and at the end ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pr-Dmitriy, 2018-11-24
@Pr-Dmitriy

Or maybe you can set a separate name for displaying it in breadcrumbs?

L
lagudal, 2018-11-24
@lagudal

a somewhat long question, if you need to stupidly reduce the length, then you can simply solve everything with ccs.
I recently had a task, a little more difficult, to make different behavior for different screens. For large ones - full output, for medium ones - collapse and deploy by hover, for touch - where there is no hover - by clicking. In my case, you can’t do without js,
it turned out like this - https://codepen.io/lagudal/pen/oaqdMK
(excluding screens, only for mobs)
This is how it was on pure css, if you don’t need hover deployment, just remove styles for hover.
https://codepen.io/lagudal/pen/LgZzbO
Of course, it may be a little different for you, but the principle is the same ... well, you don’t show how it is with you, but it’s not interesting to look for yourself to see how what and how the WordPress plugin displays.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question