• Resolved juanacevedov

    (@juanacevedov)


    Hello,
    I manage a website with about 100 audio posts, where I use “Audio player” and its [audio] shortcode. Then I installed Collapse-O-Matic 5.1. Thrilled at how it works… except that after installing it, I get an unexpected line break after every [audio], effectively altering a great deal of the website’s look! I always work in HTML view and the code of the posts is the same. When I check the displayed pages source, I can see there is a
    right where my problem shows, but I don’t know where to look for it and get rid of it.

    I’ve seen the solution offered here, and it does work, but it would mean going over all the posts.

    There must be some general “switch” that has caused the change in behaviour, but I am too ignorant of the anatomy of this plugin and WordPress to know where to start looking. Can you help?

    Big thanks in advance,
    Juan

    https://www.ads-software.com/extend/plugins/jquery-collapse-o-matic/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter juanacevedov

    (@juanacevedov)

    terribly sorry. I should have sent a link as a reference! Here it is:
    https://themathesontrust.org/library/how-do-we-enter-the-heart
    You can see the unwanted line between the audio player and the “Click here to download” link.

    Thread Starter juanacevedov

    (@juanacevedov)

    Further to my question above, and still investigating… the problem seems to be related rather to the latest “Audio Player” plugin update, maybe something to do with wpautop?. I hope to post a final diagnostic here soon.
    Thanks anyway for any pointers,
    J

    Plugin Author Baden

    (@baden03)

    have you tried adding the tag attribute to your expand elements?
    Either use:

    [expand title="trigger text" tag="div" ]Content[/expand]

    or simply set the default tag to div on the collapse-o-matic options page.

    Hello, I’m having the same problem, and I’ve done the tag div.
    Example: https://tobylotak.com/testcast/

    Thread Starter juanacevedov

    (@juanacevedov)

    thank you both. My case has turned out to be definitely caused by an update to another plugin, and I’m still digging…
    Collapse-o-matic is working perfectly:
    https://themathesontrust.org/library/dark-night-living-flame
    Thanks, Baden, for the excellent documentation and support!

    Plugin Author Baden

    (@baden03)

    You are very welcome! Don’t forget to vote for pedro!

    eyeui

    (@eyeui)

    Hello Baden, great little plugin, think it could be useful in a lot of situations!

    However, I too am having a problem with unwanted line breaks, and the recommended fix you suggested above does not work to fix it.

    The site on which I am using it is a child theme built of of TwentyEleven, and I am trying to just use it in the client’s list of references:

    https://lab-arch.com/references/

    in addition, my attempt to also use the highlight color to give those items in the list that have collpase-o-matic expansion a different color, but that also did not seem to work.

    appreciate any suggestions you might have (and I have already instructed the client to make a donation, as this is a feature she specifically wanted)

    thanks, eric brown…

    Plugin Author Baden

    (@baden03)

    eric,

    Please be more specific about the issue with line breaks. Which elements exactly in your example are not formatting as you wish?

    As for the highlight color, you can simply create a new class in your (child) theme’s style.css file like so:

    .com_highlight {
        color: #999;
    }

    And then assign this class just as you are ‘noarrow’:

    [expand title="trigger text" trigclass="noarrow com_highlight" tag="div"]target content[/expand]

    eyeui

    (@eyeui)

    Hello Baden,

    Thanks for your response (and the highlight guidance was perfect, thanks!)

    So, ok, after exhaustively searching through all the items involving unwanted line breaks (and trying all the solutions suggested, none of them have worked, and I believe I have isolated what might be different in the case of my situation, than in all of those.

    In my case, the expand items are mixed in with normal lines that have no expanding going on (just plain text, no shortcodes at all)… so when mixed together, each and every time i insert an expanding item, there is an extraordinary amount of space before and after it (which you can clearly see on the page of link I provided – https://lab-arch.com/references/ – now that items that expand have highlight colors)

    can’t seem to figure out how to close those gaps.

    Plugin Author Baden

    (@baden03)

    eyeui,
    please contact us at support [at] twinpictures [dot] de and reference this thread. We’ll take a closer look and get you squared away.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘unwanted line break after shortcode’ is closed to new replies.