Content Length of zero doesn't work for Featured Boxes 2

  • Author
    Posts
  • #74227

    Setting a Content Length of zero for Featured Boxes 2 should cause the excerpt text to disappear, leaving just the title and More link. This doesn’t work. It does work for Featured Boxes (ie the first lot) but not for Featured Boxes 2 (the second lot). It looks like the Content Length is being completely ignored in the second lot.

    #74228

    The stopgap solution is to add the following CSS:

    section.lp-boxes-2 div.lp-box-text div.lp-box-text-inside { display: none; }

    #74670
    Zed
    Cryout Creations mastermind

    I cannot confirm this issue, the content length option works fine in my tests (considering the same code is responsible for all featured boxes sections and it cannot behave differently depending on section).
    Note however that the option applies to automatically generated excerpts only – manual excerpts defined for posts are always displayed as-is.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #74716

    That makes sense – so if I kill the –more– tag then it will stop happening. Cool.

    Personally, I think the length setting of zero should override manual excerpts as well, but I can see both sides of the argument.

    #75998
    Zed
    Cryout Creations mastermind

    We’d rather not apply the excerpt length option to manual excerpts because this creates the need for even more conditional checks:
    – disable manual excerpt if value is 0
    – skip trimming if value is non zero (to avoid breaking use of HTML in manual excerpts)
    beyond what’s already present in the code:
    – detect and use manual excerpt if it exists (check for both manual excerpt field and the use of <!–more–> or <!–next-page–>)
    – use automatic excerpt if manual doesn’t exist (and trim it to the configured value)


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Content Length of zero doesn't work for Featured Boxes 2’ is closed to new replies.