Support » Plugin: Collapse-O-Matic » Different tags for expand and collapse

  • Resolved victorianoescobar

    (@victorianoescobar)


    tag=”h2″ works fine and allows us to use the wordpress “h2″ that comes with the theme.

    However, it would be great to have the ability to specify a different tag for collapsed and expanded tabs. If collapsed we do not want to use h2 because the fonts are too large and the spaces between two titles become to large. But if expanded, we want a title that is like h2 so we do not have to repeat the same title in the text below the expanded title. To avoid two titles there is the option of swaptitle=” ” but that causes a large white space, not ideal.

    I know there is the option to specify custom styles, e.g.
    .collapseomatic.red {color: #000; font-size: x-large;}
    .collapseomatic.red.colomat-close {color: #C03; font-weight: bold; font-size: x-large;}
    and call these up via trigclass=”red”

    The problem is that these are “one size fits all” css, unlike the h2 of wordpress which is optimized for various devices via @media queries. To specify custom styles in the plugin via @media queries is a bit of a pain. So it would be be easier if there was a “open tag” and a “closed tag”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author twinpictures

    (@twinpictures)

    have you tried the attribute:
    expand="true"

    The default trigclass can be defined in the plugin settings

    Not sure what exactly is meant by open tag and close tag… like using different html elements for the open and collapsed state of the expand element?

    css, unlike the h2 of wordpress which is optimized for various devices via @media queries.

    not sure how to respond to that.

    I meant we can use tag=”h2″ for the title but then we have the wordpress h2 for the title for the open and for the collapsed state of the expand element. I would like to specify for example h2 for the collapsed state and h4 for the expanded state.

    Plugin Author twinpictures

    (@twinpictures)

    No, you can not change the html tags based on state.

    Thank you. That is what I thought. Not mission critical but could be a good feature for a next version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Different tags for expand and collapse’ is closed to new replies.