• Resolved wegerl

    (@wegerl)


    Hello

    If a heading is provided with a line break, the link in the table of contents does not work.

    Greetings

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Magazine3

    (@magazine3)

    I’ve recreated this at our end and it seems no issue. Can you please show me the short video of it once? So that we will go through it and get back to you immediately.

    Thread Starter wegerl

    (@wegerl)

    Hallo!

    – Thanks to the feedback.

    <h2>So for example <br>forced line break.</h2>

    No matter if with shift + enter or <br>. Then from the table of contents the link does not go to the heading.

    Servus
    Ditmar

    Plugin Author Magazine3

    (@magazine3)

    If possible, please share a short video of it for reference purposes? So that we will go through it and get back to you immediately.

    Thread Starter wegerl

    (@wegerl)

    Hello, reference is not, but apologetic and correction.

    Correction, heading with line break. – Whether with shift + enter or <br>.

    Line breaks should namely not be in a heading, because there are also many RSS readers that have problems with it and des responsiv is also not so compliant.

    So if it arises here and there to wrap the headline – because it’s just nicer – just work with CSS and the problem is history. It is for itself of the theme only find out which width is the right one.

    An CSS example for this
    (Twenty Fourteen Theme)

    .entry-content h3 {
    max-width: 285px;
    }

    Then the headlines in the content are maximum 285px wide. Here is directly worked with width, so that the browser support is larger.

    If this rule is to apply only to wider screen sizes, then the above is to be omitted and the following:

    @media (min-width: 700px) {
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
    width: 285px;
    }
    }

    This will then affect all headings in the content.

    Or create a ‘class’, example:

    .title-285 {
    max-width: 285px;
    }

    … and only where it fits with makeup, there is the class. I think this is the better solution.

    <h3 class="title-285">... and only where it fits with makeup, there is the class. I think this is the better solution.</h3>

    • Learned to do it! – and thanks to the plug-ins Easy Table of Contents
    • This reply was modified 2 years, 9 months ago by wegerl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Heading with line break’ is closed to new replies.