differentC@rl
Forum Replies Created
-
@mirluin did you fix this problem? I’m having the same issue.
Thanks
Forum: Plugins
In reply to: [ZM Ajax Login & Register] PlaceholderAny way of doing it without editing the plugin files directly?
Forum: Plugins
In reply to: [WP Fastest Cache] Loading combined/minified js as async or defer?Yeah I had considered js.
Adding this feature would be great!
You may have noticed I included
if ( strpos( $url, 'jquery.min.js' ) ) return $url;
This is to stop jquery.min.js library from loading by defer as some jquery was attempting to load before library had loaded – something worth considering when you add the feature.
In the meantime I will try and implement myself!
Thanks
Forum: Plugins
In reply to: [WP Fastest Cache] Loading combined/minified js as async or defer?Hello Emre,
Yes I use php. Very simple:
! defined( 'ABSPATH' ) and exit; if ( ! function_exists( 'add_defer_to_all' ) ) { function add_defer_to_all( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.min.js' ) ) return $url; // except jquery lib return "$url' defer='defer"; } add_filter( 'clean_url', 'add_defer_to_all', 11, 1 ); }
Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] Hook into outputThank you!
A little help (not the best with hooks/filters).
I have this
add_filter( 'cn_cookie_notice_output', 'cookie_hook_output' ); function cookie_hook_output ( $options ) { $output = ' <div id="cookie-notice" class="cn-'.($options['position']).($options['css_style'] !== 'none' ? ' '.$options['css_style'] : '').'" style="color: '.$options['colors']['text'].'; background-color: '.$options['colors']['bar'].';">' .'<div class="cookie-notice-container2">' .$options['message_text'] .'<a href="" id="cn-accept-cookie" class="button'.($options['css_style'] !== 'none' ? ' '.$options['css_style'] : '').'">'.$options['accept_text'].'</a>' .($options['see_more'] === 'yes' ? '<a href="'.($options['see_more_opt']['link_type'] === 'custom' ? $options['see_more_opt']['link'] : get_permalink($options['see_more_opt']['id'])).'" target="_blank" class="button'.($options['css_style'] !== 'none' ? ' '.$options['css_style'] : '').'">'.$options['see_more_opt']['text'].'</a>' : '').' </div> </div>'; return $output; }
It is out putting html but not $options data.
Thanks in advance
Forum: Plugins
In reply to: [JS Archive List] Collapse all before revealing clickedNevermind,
I just copied the jquery_archive_list_animate function into my own js file and added the line.
That way any updates you make shouldn’t effect my code.
Thanks anyway!
Here’s final code for anyone else:
function jquery_archive_list_animate(clickedObj, options) { var changeSymbol = function (){ jQuery(clickedObj).children('.jaw_symbol').html(options['ex_sym']) } if (jQuery(clickedObj).siblings('ul').children('li').is(':hidden')) { jQuery('.expanded').removeClass('expanded') jQuery(clickedObj).children('.jaw_symbol').html(options['con_sym']) if(options['fx_in'] === 'fadeIn') jQuery(clickedObj).siblings('ul').children('li').fadeIn() else if (options['fx_in'] === 'slideDown') jQuery(clickedObj).siblings('ul').children('li').slideDown() else jQuery(clickedObj).siblings('ul').children('li').show() } else { if(options['fx_in'] === 'fadeIn') jQuery(clickedObj).siblings('ul').children('li').fadeOut('', changeSymbol) else if (options['fx_in'] === 'slideDown') jQuery(clickedObj).siblings('ul').children('li').slideUp('', changeSymbol) else jQuery(clickedObj).siblings('ul').children('li').hide(0, changeSymbol) } jQuery(clickedObj).parent().toggleClass('expanded') }
Forum: Plugins
In reply to: [Twitget] Not loading new tweets / causes rest of site to not load..Thanks for the reply @bo?tjan – I’ll look into that!
Forum: Plugins
In reply to: [Highlight Search Terms] Infinitely loading javascriptChanging
<articles>
to<divs>
fixed the issue – thanks again RavanHForum: Plugins
In reply to: [Highlight Search Terms] Infinitely loading javascriptThanks for the feedback RavanH – I’ll have a look at a fix myself in the meantime!
Forum: Plugins
In reply to: [Highlight Search Terms] Infinitely loading javascriptHmmm for some reason it doesn’t effect the main story (largest item).
If you try https://everythingdifferent.co.uk/?s=health and return to home page you’ll see the first story is being highlighted..
There must be something that the main story is doing that stops the highlighting from happening – any ideas?
Also, why would it only be if I go to the home page – the problem doesn’t happen on any other page?!
Thanks again
Forum: Plugins
In reply to: [Highlight Search Terms] Infinitely loading javascriptThanks RavanH – here’s a link https://everythingdifferent.co.uk/
If you search for a term and then return to home page the term will be highlighted on the homepage too!
Thanks in advance!
Forum: Plugins
In reply to: [Highlight Search Terms] Infinitely loading javascriptI see! Nevermind. Thanks for the quick reply emmaee.
Forum: Plugins
In reply to: [Highlight Search Terms] Infinitely loading javascriptemmaee – I know it’s been a couple of months but did you find a fix for your issue?
I’m having the same problem with a custom theme I’ve built too; the highlight only happens when I return to the home page.
Thanks in advance.