• So I just updated recently and noticed that {content} gets wrapped in some additional divs… Is there away to prevent content from doing that, outside of a pile of “CSS zeroing”?

    Here’s the code/loop I’m using:

    [event_embed from="now" limit="6"]
    <div id="frontpage-events">
    <h2><a href="{url}">{title}</a></h2>
    <p>{content} //?{start_date}</p>
    </div>
    [/event_embed]

    And here’s the output of one of the loops:

    <div id="frontpage-events">
    <h2><a href="[correct url]">[correct title]</a></h2>
    <p><div class="l-subsection"><div class="l-subsection-h g-html i-cf"><p>{content}</p>
    </div></div> {start_date} </p>
    </div>

    https://www.ads-software.com/plugins/event-rocket/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jcollette

    (@jcollette)

    Just noticed that

    <div class="l-subsection"><div class="l-subsection-h g-html i-cf">

    is part of the “page content” loop.

    Did The Events Calendar change their code to display the “event content” as a separate “page content”?

    Fixed this by just adding

    #frontpage-events > h4 > div {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    }
    #frontpage-events > h4 > div > div {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    }
    #frontpage-events > h4 > div > div > p {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    }

    My content sections are short enough to fit only on 1 line though, so it’s a shortsighted fix.

    Plugin Author Barry

    (@barryhughes-1)

    Might your theme, or another plugin, be generating the wrapper – do you see it with an unmodified default theme?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update Quirk to {content}’ is closed to new replies.