• Resolved ishashakti

    (@ishashakti)


    If I add text with quotes, the title breaks, as if it needed to close some tag.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi @ishashakti,

    Please give me a screenshot of your Secondary Title’s settings page.

    Edit: I also don’t see the effect you’re reporting. To me, it looks okay here: https://i.imgur.com/e97UJzU.png

    • This reply was modified 1 year, 3 months ago by thaikolja.
    Thread Starter ishashakti

    (@ishashakti)

    I’m checking and the error is that it is adding the title to the featured images attribute, with the <span> tag to style the subtitle

    Thread Starter ishashakti

    (@ishashakti)

    https://imgur.com/a/vyuxHAF

    Here’s the developer tool capture

    https://imgur.com/HJOPDKt

    • This reply was modified 1 year, 3 months ago by ishashakti.
    Plugin Author thaikolja

    (@thaikolja)

    So, you mean that it automatically inserts itself into the media field? Please send me the exact “Title Format” that you’ve entered for Secondary Title.

    Are you using “Insert Automatically”?

    If not, what PHP code do you use. I’d need the section (if it applies to you).

    Thread Starter ishashakti

    (@ishashakti)

    Yes, I am using the automatic option, and this is my fomat:

     %title% <br><span class='subtitulos' style="    font-size: 18px;     font-weight: 600;" > %secondary_title% </span>
    Plugin Author thaikolja

    (@thaikolja)

    Thanks for your patience! We’ll get this solved, don’t worry, but here in Bangkok it’s almost 05:00 am, so I’ll leave you with a small test for today and get back to you tomorrow.

    I’m pretty sure it won’t change anything, but change your title format to this:

    <span class="primary-title">%title%</span><span class="secondary-title">%secondary_title%</span>

    Then, in your Customizer, use CSS to apply the styles:

    .primary-title {
    display: block;
    }

    .secondary-title {
    font-size: 18px;
    font-weight: 600;
    }

    (As I said, it probably won’t change anything, but: it’s more flexible in case you want to limit or change the way the titles are displayed on certain pages; think .home .secondary-title { ...} )

    By the way: display: block will create a line break in <span> tags, which you’re currently doing by using <br />—not the best method 😛

    I also need an answer to the most important question: Does the secondary title – merged with the format entered in Title Format – automatically appear in the alt="..." attribute of your images? Judging by your source code, it looks like this: https://i.imgur.com/h52RyYL.png

    Can you, please, check this? Edit one of the posts and check the featured image and its alternative title.

    1. If the alternative title is empty, enter something, save it, and reload the page to see if it took over what you’ve entered instead.
    2. If it’s not empty, what does it show?

    There’s a high probability that one of your plugins automatically uses the title merged by Secondary Title as the alt attribute if it’s empty. If that’s the case, we’ve found the culprit and can fix the problem.

    Thanks for being so patient.

    • This reply was modified 1 year, 3 months ago by thaikolja.
    Thread Starter ishashakti

    (@ishashakti)

    I will check, thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Bug with the quotes’ is closed to new replies.