Plugin Author
Baden
(@baden03)
Mike,
It seems that there is a error with the ‘scroll to top’ feature of your theme throwing a js error:
jquery.js?ver=1.12.3:2 Uncaught Error: Syntax error, unrecognized expression: a[href=#top]
Try telling collapse-o-matic to load it’s scrips in the header. This might resolve the collapse issue, but your really should get the #top issue resolved, regardless.
Hello, i am having this same issue.
I’ve updated wordpress and the plugin (was using version 1.5.3)
and everything stopped working. It seems a jquery conflict. I’ve got that same error message in the console, got the solution, but the it’s not working yet.
This is the page, is a custom “roll your own” that i’ve made, where expands following the content.
http://saad-studio.com/thinking-branding-design/
The code
<a href="<?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'full' ); echo $image_url[0]; ?>
" id="imgthink"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?><span> </span></a>
<?php if(strpos(get_the_content(),'id="more-')) : global $more; $more = 0; the_content('<span id="mas">(...)</span>'); ?>
<div id="target-mais<?php the_ID(); ?>" class="collapseomatic_content" style="position:relative;margin-top: -12px;">
<?php $more = 1; the_content('', true ); else : the_content(); endif; ?>
<div class="citath ceq"><?php the_field('citac'); ?></div>
</div>
<a class="collapseomatic" title="continue lendo" id="mais<?php the_ID(); ?>" href="<?php $currentlang = get_bloginfo('language'); if($currentlang=="pt-BR"){echo get_permalink( 162 );} else {echo get_permalink( 1085 );}?>#<?php echo $post->post_name;?>"><span class="morec dow"><?php pll_e('continue'); ?> <div class="dowh"></div></span></a>
<a id="swap-mais<?php the_ID(); ?>" style="display: none;" class="obg"><span class="collapseomatic colomat-close morec clos"><div class="closh"></div></span></a>
That worked like a charm, thanks for the help Baden.
Plugin Author
Baden
(@baden03)
Mike, glad you got it worked out!
@modigliani1 since you do not have the same problem, we will be marking this issue as resolved.
Your issue has to do with a JS error being thrown by your theme:
Uncaught TypeError: jQuery(...).placeholder is not a function
Being thrown by:
http://saad-studio.com/wp-content/themes/saad/js/responsive-plugins.js?ver=1.2.3
Please open support issue with your theme developer.
If nojoy, then open a new thread here, and we try and get you fixed up.