• Resolved Aurum84

    (@aurum84)


    Hello Eliot,

    first of all: thank you for releasing a fix for the 4.2.3 so quickly!

    I am now using the [content field=”title-link”] to make links to my content.
    However, when I put divs or spans around it to add css, or I add the class attribute to the block-tag, the link is not rendered, instead the plain text of the title is show.

    I would use:

    <div class=’post-title balance-text’>[content field=”title-link”]</div>

    or

    [content field=”title-link” class=”post-title balance-text”]

    Can you verify this? Or did I make a mistake in using the shortcode?

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Aurum84

    (@aurum84)

    After extra trying I found out that whenever there is a ‘ or ” in the title, that above scenario appears. When the title has no ‘ or ” then the link gets rendered correctly.

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello, I made a new update – please let me know if that helps.

    Thread Starter Aurum84

    (@aurum84)

    Hello Eliot,

    thanks for the fast update. Unfortunately it did not resolve the issue yet.
    I have been looking at this issue and debugging your plugin the entire night, and from what I can see CCS outputs the correct html. And I found out that the reason I gave was not the real cause.

    What was the real cause? Somewhere hidden in my plugins there was a dependency to jquery’s balance-text, which broke the link when it spanned multiple lines. Disabling balance-text fixed the issue.

    I am sorry for the inconvenience!

    Plugin Author Eliot Akira

    (@miyarakira)

    Thanks for letting me know that it’s been solved. That’s an interesting point about balance-text – I’ve found it useful for centering titles but didn’t know that it had difficulty with links. Good to know.

    Thread Starter Aurum84

    (@aurum84)

    The version I have inserts a <br data-owner=%classname% />, which results that the tag breaks. I saw that the links got created by CCS correctly on the frontend after which they got replaced with JavaScript.

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

The topic ‘issue with title-link inside a div?’ is closed to new replies.