WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
Roll your own Elements ideas (45 posts)

  1. terryago
    Member
    Posted 1 year ago #

    CallMeAndy,

    I don't totally understand your description here. It might help if you added a screenshot or a link to your site.

    In any event, if your looking to add a collapsible element, you should be fine with the basic roll-your-own-elements code and accompanying CSS.

  2. CallMeAndy
    Member
    Posted 1 year ago #

    I must have missed the roll your own elements aspect. Will look into that.

    Sorry to bail out temporarily of this thread but I cant manage the screen shots at this moment (a bit under pressure ) will come back to it later when I can do the thread justice.

    I have a compromised alternative for now,

    thanks for your response.

    hope to get back again on this in the not to distance future.

  3. biswajeet
    Member
    Posted 1 year ago #

    Nice works @terryago...
    It will certainly help in features extension

    thanks.

  4. dhkendall
    Member
    Posted 1 year ago #

    Terry,

    Thanks for your help a few months ago in getting <b> and <i> and the like in a header, but now that I downloaded the latest version of Collapse-o-matic, it doesn't work any more (the expanded text doesn't show when the header is clicked, but the arrow at the header does change from down to up).

    Is there a way around the way around you gave me earlier?

  5. dhkendall
    Member
    Posted 1 year ago #

    Never mind, looks like the new version allows for html codes right in the [expand] title! Thank you!

  6. cykeltomte
    Member
    Posted 1 year ago #

    Couldn't find the answer to my question in any of the posts above, if it's there I apologize.

    I have a group of expandable elements, with rel="thingie-highlander. I figured out how to make the first expanded by default, but I also want it to expand again if no other item in the group is expanded. Is there any easy way of making this work?

    Thanks in advance!

  7. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    This thread is for people to post inventive ways they have used the roll-your-own method. For support questions, please start a new thread, related to your question.

    That being said, no, the plugin does not currently do this. Explain more in the new thread.

  8. tallmanbrown
    Member
    Posted 1 year ago #

    @dhkendall

    I had the same problem when I recently updated to v1.4.9. I realize you fixed your problem using the [expander] shortcodes and their new formatting attributes, but for what it's worth, I fixed my broken div code by removing the <div class="content_collapse_wrapper"> tags and leaving only my <div id="target-XXX" class="collapseomatic_content force_content_collapse">.

    It seems the recent update has made it unnecessary and redundant, and only the single div reference is required now. At least that's how I did it, and it's working fine for me once again.

  9. Holmbygden
    Member
    Posted 1 year ago #

    Hi!

    I'm a beginner and need a little help from the beginning...
    "1. Collapsible comments
    Replace comment area with something like the following..."

    In what php-file is the comment area?

    And what in that php-file should be replaced?

    Thanks!

  10. kdubya16
    Member
    Posted 1 year ago #

    Is there any way to use the shortcode in a page template?

    I'd like to use this to expand custom PHP content if possible. Any push in the right direction would be great.

    Thanks

  11. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Check out the WordPress function do_shortcode

  12. Jae
    Member
    Posted 1 year ago #

    This is a great plugin, indeed! I'm using it on a website I built for a client, for their FAQs page. However, I'm struggling to get a hanging indent on the title, if the text runs over one line.

    Currently, if the title text wraps over onto a second line, it wraps underneath the arrow. I want it to be indented, so that the text all lines up nice and neatly.

    I've looked @ the CSS stylesheet, but I can't quite figure this one out. Am I looking in the wrong place?

  13. linkedbinary900
    Member
    Posted 1 year ago #

    4. Start with content expanded

    Add the class colomat-close to your collapseomatic title, like:

    <h4 class="collapseomatic colomat-close" title="<?php the_title(); ?>" id="<?php the_ID(); ?>"><?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?><?php the_title(); ?></h4> <!-- Returns title with Collapse-o-matic formatting, with EXPAND BY DEFAULT (colomat-close) -->

    Have fun!

    Thanks a lot! Just what I needed.

  14. Jae
    Member
    Posted 1 year ago #

    Sorry, I'm a little confused. Where do I add this code?

  15. UaMV
    Member
    Posted 1 year ago #

    @Jae: Add tag="div" to your shortcode.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic