Twansparant
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: non-working category archivesThat’s because it’s not an wheels archive, you’re calling a category archive so it should be the category.php template.
What is the output of $countquery? Is that correct?
Forum: Fixing WordPress
In reply to: non-working category archivesChange your $paged variable:
$paged = ( get_query_var('page') ) ? get_query_var('page') : 1;
into
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
That should work!Forum: Plugins
In reply to: [W3 Total Cache] Exclude footer with Google Analytics cookie check?This seems to work:
// Check if cookies are accepted if ($.cookie('cc_cookie_accept') == 'cc_cookie_accept') { console.log('cookies accepted'); $.removeCookie('cc_page_cache', { path : '/', domain : 'mydomain.com' }); } else { console.log('cookies not accepted'); $.cookie('cc_page_cache', 'no_page_cache', { path : '/', domain : 'mydomain.com' }); }
Then in the Page Cache settings I added:
Rejected Cookies: cc_page_cacheOnly thing is, on the moment the cached pages were created and cookies weren’t accepted yet at that point, you will be served the cached pages without the Google Analytics in it although you did accepted the cookies by that time…
Forum: Plugins
In reply to: [W3 Total Cache] Exclude footer with Google Analytics cookie check?As soon as cookies are accepted, page cache is disabled:
<!-- W3 Total Cache: Page cache debug info: Engine: disk: enhanced Caching: disabled Reject reason: Cookie is rejected -->
It should be the other way around actually, no page cache if cookie isn’t present yet.
Is that possible or do I have to set a second cookie on page load that will be deleted when cc_cookie_accept is set to ‘cc_cookie_accept’?Forum: Plugins
In reply to: [W3 Total Cache] Exclude footer with Google Analytics cookie check?No, but I just tried it and that works!
However, wouldn’t that mean in theory that it will almost never cache any pages since 95% will accept the cookies?Forum: Plugins
In reply to: [W3 Total Cache] Exclude footer with Google Analytics cookie check?Disabling Page Cache results in this working properly?
Correct, it works when I disable Page Cache
Forum: Plugins
In reply to: [Bootstrap MCE CSS] A little confusedI switched to Easy Bootstrap Shortcode, which doesn’t look as nice as this one unfortunately…
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Slow QueryIf that isn’t an option for you, try WP Super Cache. It saves your pages as html
Thanks, but W3 Total Cache does exactly the same, so I’m good for now ??
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Slow QueryI’m having the same issues…
I use ACF for a repeater field, and in every row there are 2 images. I use these rows for Flexslider slides with lazyloading and with 12 rows in total it takes about 12 seconds to load the page.
However, if I use a cache plugin (W3 Total Cache) and turn on the page, database, object & browser cache it significantly decreases the loading time to about 1 or 2 seconds. The only problem is that logged in users (the client filling the website) won’t benefit from this decrease until they log out…
Forum: Plugins
In reply to: [Perfect Images] Show Retina Column for editorsDo you mean an option, or a function to display it?
An option would be easier, but you could also add a new capability to a role object manually if that capability exists.
Something like this:
$role_object = get_role('editor'); // get the the role object $role_object->add_cap('wr2x_show_media_column'); // add capability to role object
I will add this to my to do list.
Thanks again!
Forum: Plugins
In reply to: [Bootstrap MCE CSS] A little confusedSame here, the toolbar with Bootstrap just doesn’t show up in my editor?
Forum: Plugins
In reply to: [Perfect Images] Option to enqueue Picturefill script myself?Thanks Jordy!
Forum: Plugins
In reply to: [Perfect Images] Option to enqueue Picturefill script myself?But it will come ??
Thanks!
In the meantime, you can cut the part in the code that loads the script.
That would be line 590 in the wp-retina-2x.php file if anyone else wants to know ??
Forum: Plugins
In reply to: [Perfect Images] Images not displaying in IE8 using Picturefill methodHave a look at this issue. Apparantly it’s supposed to be fixed in version 2.1.0 but that one isn’t packed with this plugin yet
Forum: Plugins
In reply to: [Image Watermark] Not working with WP Retina 2x pluginOkay, thanks for looking into it!
Then it’s about time WordPress implement Retina support themselves ??