WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] not working (16 posts)

  1. Olly - OWMC
    Member
    Posted 1 year ago #

    Hi Baden, just installed the latest version on a new site using boilerplate theme. i have very few plugins on, tried switching them all of to no effect (except when i switched off Pods which broke the page).

    Link is: http://dev.omuk.com/news/

    the sites a mess at the moment but you'll see it's the main blog roll. Looking at console in firebug shows "TypeError: id is undefined". Really don't know what that means.

    my php is like this:

    <?php // Display blog posts on any page @ http://m0n.co/l
    		$temp = $wp_query; $wp_query= null;
    		$wp_query = new WP_Query(); $wp_query->query('showposts=10' . '&paged='.$paged);
    		while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    		<h2 class="collapseomatic  colomat-open" rel="neuro-highlander"><?php the_title(); ?></h2>
    			<div class="content_collapse_wrapper">
    				<div id="target-<?php the_ID(); ?>" class="collapseomatic_content ">
    					<?php the_content(); ?>
    				</div>
    			</div>
    		<?php endwhile; ?>

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    You are missing the in the trigger h2 element. Also, you do not need the content_collapse_wrapper div... unless you are using it for your own purposes.

    <h2 class="collapseomatic  colomat-open" rel="neuro-highlander" id="<?php the_ID(); ?>"><?php the_title(); ?></h2>
    <div id="target-<?php the_ID(); ?>" class="collapseomatic_content ">
    	<?php the_content(); ?>
    </div>

    How does that work for ya?

  3. Olly - OWMC
    Member
    Posted 1 year ago #

    Ah! thank you Baden! Works brilliantly.

    Your support is commendable. :)

  4. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you, thank you. Vote for Pedro!

  5. Olly - OWMC
    Member
    Posted 1 year ago #

    hmm... any pointers on how i could get this to auto expand the first post? i looked at the expanded attribute but i'm unsure how to put this into my php.

  6. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    do_shortcode('[expand title="Trigger Text" expanded="true"]Target Content[/expand]');

  7. Thomas
    Member
    Posted 1 year ago #

    Hey Baden

    I am from Baden, Switzerland :)
    Got a problem with this nice plugin here: http://www.lifeline-documentaries.com/packages/ the example code is underneath the first image --> Vader / Target Content

    The text is displayed, but also the target text. And there is no link on "Vader"

    Do you see where my problem is?

    Best, Thomas

  8. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Gr├╝tzi! Thomas from Baden, Switzerland.
    It seems you have solved your issue... what ended up causing the trouble?

    Have marked the issue as resolved. Hit us back if you still need assistance.

    Oh, and if you are happy and you know it... vote for pedro and show it!

  9. Thomas
    Member
    Posted 1 year ago #

    Hey Baden

    Yes, everything works fine!
    I am using a selfmade template and forgot to put in my header.php this line of code:

    <? wp_head(); ?>

    therefore the library and css styles were not loaded, because the plugin put this into the header file of wordpress, if I am right...

    Best, Thomas

  10. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Yup, that would do it! Glad to hear you got it sussed out.

  11. profoundprojects
    Member
    Posted 1 year ago #

    Hi Baden,

    We can't wait to use this great plugin on our website. Unfortunately it's not working at the moment. Can you please help us figure out where the conflict is originating from, so we can find a fix for this.

    Currently, the text content does not expand when the trigger text is clicked:

    URL: http://profoundprojects.com/on-page-seo-packages.html

    Ctrl+F Read More

    Thank you very much!!

  12. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    here is a hint:

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=3.5'></script>

    You might want to ask your theme developer why they are force-loading grandpa's jQuery.

    The current version of Collapse-O-Matic requires 3.3 or higher (that uses jQuery 1.7.1)
    So your best bet is to roll back to Collapse-O-Matic 1.4.9 while you tell your theme developer to read this: http://msyk.es/blog/prevent-jquery-wordpress-theme/

    Huzzah!

  13. profoundprojects
    Member
    Posted 1 year ago #

    Thanks for the hint! It's working like a charm right now! Huzzah!

  14. chriskabisch
    Member
    Posted 1 year ago #

    Really want this to work, can you help?

    http://panavisionremotesystems.com/

    plugin is being used in "Testimonials"

    The arrows and title links show but the content is expanded and will not collapse?

    I am using standard short code:

    [expand title="Trigger Text"]Target Content[/expand]

    Thanks in advance!

  15. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    @chriskabisch: very strange. The source looks correct, and there are not JS errors being thrown. We would like to take a closer look. Please shoot us an email to support [at] twinpictures [dot] de and include a link to this thread.

  16. chriskabisch
    Member
    Posted 1 year ago #

    I sent the email, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic