No search results were found in Documentation!
Here is JS code for date and time which works with cache plugins.
Inserted in date div in top-menu.php.
<script>
function addzero(i) {if (i < 10) { i = “0” + i; } return i; }
function fDate() {
var d = new Date(); var ddd = [“Sunday”,”Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”,”Saturday”]; var dd = ddd[d.getDay()]; var months = [“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”]; var mm = months[d.getMonth()];
document.getElementById(“date”).innerHTML = dd+”, “+d.getDate()+”. “+mm+”, “+d.getFullYear()+” – “+addzero(d.getHours())+”:”+addzero(d.getMinutes())+”:”+addzero(d.getSeconds());
}
setInterval(function fDateI() {
var d = new Date(); var ddd = [“Sunday”,”Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”,”Saturday”]; var dd = ddd[d.getDay()]; var months = [“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”]; var mm = months[d.getMonth()];
document.getElementById(“date”).innerHTML = dd+”, “+d.getDate()+”. “+mm+”, “+d.getFullYear()+” – “+addzero(d.getHours())+”:”+addzero(d.getMinutes())+”:”+addzero(d.getSeconds()); }, 1000);
fDate();
</script>
Date format is localized and it’s showing seconds.
cheers,
-
This reply was modified 10 years by
diom.
Good to hear that Jetpack issue is on your side too, since I thought it’s probably just on my side…
I’ve changed the most commented sort as you’ve described but it didn’t make any change in sorting. There are still All-time Most commented post on top… I’m using Disqus comment system if that has any affect on sorting?
For Most viewed posts, I’ve put this code from 7 day random and change it to sort only post published 3 days ago… and put one custom code to td_page_views.php on line 72, after update_post_meta($postID, self::$post_view_7days_last_day, $current_day);} :
/* Custom counter */
$num_days = 2;
for($i=1;$i<8-$num_days;$i++) {
$day_index = $current_day + $i;
if($day_index > 6) $day_index -= 7;
$count_7_day_array[$day_index] = 0;
}
But doesn’t make any difference … I was told it should work.
Any suggestions?
I’ll post the solution when It will be working…
Otherwise it would be good if the theme would have it’s own post view counter working with cache, since it’s the only flaw, I see this, theme has.
Thank you and best regards,
Hi
I’ve test the link you provided on different mobile devices and the trademark character is displayed fine: http://screencast.com/t/VsiKfc42zdb I am not sure why appear with a different layout on your side but this could be a cache issue, so try to clear phone’s cache and test again. Also you can test this with different mobile devices and see if the problem persist.
Thanks!
Hi Alin
I had setup staging website here http://www.wpdiv.ml/ (clone of http://www.wpdiv.com) and make changes in the CSS properties (by finding font-family syntax via our theme) in child theme based on your latest version of Newspaper theme 6.5.1 and here is the child them URL http://www.wpdiv.ml/wp-content/themes/WPDIV/style.css
But some reasons, i did not worked and renders the system default font instead of custom font Titillium. (Did cleared the cache before posting this reply and when i replace the old child theme style sheet http://www.wpdiv.ml/wp-content/themes/WPDIV/old_style.css custom fonts loading without any issues)
Will you please guide me the right way where i did made mistake?
-
This reply was modified 10 years by
wpdiv.
Hi,
Check this without any plugins active except of Visual Composer, clear cache and also re-save your permalinks and see if you still have this issue.
Thanks!
Hi,
The Speed Booster is an optional plugin and it moves the css and js at the end of the page, this removes render blocking and improves the score on pagespeed, please check this guide – https://forum.tagdiv.com/how-to-make-the-site-faster/
Yes, it works with WP Super Cache plugin, as Speed Booster is not a cache pluging.
Thanks!
Hi
I’ve checked your site and the theme works fine, didn’t found any errors or other things which may affect its functionality. I suspect that a plugin may cause this issue so you can try to deactivate all plugins except Visual Composer, clear all caches and test again. If the problem persit try this css in theme panel > custom css: http://screencast.com/t/0v8MdTUpM
body {
overflow-y: scroll!important;
}
Thanks!
Hi,
You can change the menu’s items color from Theme Panel > Theme Colors – http://screencast.com/t/bMdDcddQ
After you change it please clear cache.
Thanks!
I have no conflict with redis cache, everything work fine. I am using EasyEngine with redis cache.
Hello,
Does the Popular Post Sorting (7 day sort) look at post_views_count to sort or post_views_count_7_day_total?
If not, is it possible to change it so it looks at post_views_count to sort? Don’t like the idea of showing post view counts on posts – even if i hide it with CSS, it still shows for a few seconds if the user hasn’t got a fresh cache of the site.
Thanks,
Hello,
I am using WP Super Cache plugin and wanted to integrate Amazon CDN. Everything worked fine, but the icons, star rating, search icon, and social media icons doesn’t show up.
After I went through all the documentations on this forum and other search engine, i Was not able to sort out.
Kindly help on the same.
Website: http://www.CinemaGlitz.com
Okay, I found it in the downloaded files – plugins folder.
Will it work together with WP Super Cache or should I remove WP Super Cache?
Thanks 🙂
Ok, you have memcached installed in your server. Another plugin for nginx + memcached its WP-FFPC . Already you’ve tried?
-
This reply was modified 10 years by
Ing Geek.
Regarding the flush calls, since that’s in TGM I don’t know if that counts. Doesn’t seem to me that code is run on every front end page load to throw W3TC off. But you tell me?
Right now I’m using W3TC with just the reverse proxy, browser, and database cache modules active. That’s with a very lightly applied Varnish cache (doesn’t do much for WP without page caching activated), apache, nginx, and APC running. It’s actually a smaller server at the moment, but handled some better loads yesterday. Using SSDs. I’m going to upgrade it in the next week or so, which will help.
My main concern with speed for mobile (more than half my traffic is mobile) and a caching plugin that doesn’t hold stale pages. WPSC tends to not update the front page cache for half an hour after a new post is published. I’ve used it with Newspaper.
Hi,
with disk caching I was referring to the caching method used by w3 total cache and wp super cache that save the page on the HDD/SSD. W3 total cache also supports caching to APC user cache or memcached. I was tring to point out that wp super cache, even if it saves the page on the hdd/sdd can be as fast as APC or memcached due to the linux’s kernel caching mechanism.
We switch our recommended caching plugin to wp super cache because it’s written better, it’s maintained by automattic (the WordPress developers), it’s leaner and overall we did not encountered many problems with it.
Regarding the flush methods… there are 2 instances: http://screencast.com/t/qO7msUmvI – this is an experiment it may not work.
What caching method are you using now? Your site gets a very good response time from my end even when I’ve bypass cloudflare: http://screencast.com/t/xZ3x2n4Jdvw8 . TTFB is very good and I do not think you can push it more without hardware updates. I’m on the other side of the globe relating to your server and 363ms first page load is very good here with USA.
Hi
I’ve checked your site and noticed that you’re using V 4.6.3 of Newspaper and V 4.4.4 of VC. We received some reports in the past regarding the high CPU usage with this version of VC. If you want to stay with this version try to downgrade the VC plugin at V 4.3.5 which require lower resources.
If you want to use the curen version of Visual Composer plugin available with the theme, then you need to update the theme to version 6.5.1 which has support for later versions of VC plugin and it’s also included within full theme’s package.
The current version of the Visual Composer included in theme’s package (4.7.4) has been tested and works fine. Also the plugin has passed through a major update, lots of security vulnerabilities have been fixed
If you decide to update please follow this guide: https://forum.tagdiv.com/how-to-update-the-theme-2/ backup your current install, run the import settings script, update plugins and check the result. You can always get back to the previous working theme version if something goes wrong as long as you backup it but doing the update as instructed the theme should work fine.
You should also consider into the process at the following aspects:
– backup your current theme/WordPress/database: https://codex.wordpress.org/WordPress_Backups
– setup a maintenance mode and you can use a plugin for that.
– empty all caches/purge files if you also use CDN host then disable any services of this type until you switch to the new theme
– disable all plugins
– install the theme then install the required plugins
– switch back the rest of the plugins and start other services
Hope this help.
Thanks!
Hi
I’ve checked your site and the features based on ajax works fine now: http://screencast.com/t/ZFyUfRK6b – http://screencast.com/t/uwSJoT0Gwc2a
If this happens again try to deactivate all plugins except Visual Composer, clear all caches and test again.
Thanks!
Part of it not understanding what you mean by “disk cache” in that reply. I have APC, Varnish, Memcache, Apache and Nginx all running. It’s a Cloudways managed setup, so my options are somewhat limited. My understanding is that WP Super Cache doesn’t work with reverse proxy or any of the other advanced stuff.
Your installs may not matter on this issue because you don’t have but a few plugins on any of the demos. Extra plugins means extra bloat and more need for premium caching.
Any further help on that is appreciated.
And as for W3TC’s claim that some flush method is responsible… are any instances used in the theme that I missed?
Thanks, Radu.
Hello,
1) Please check this post: http://screencast.com/t/idXFWuVE. The like should appear on your end as well. If not, please try to clear your cache in WP and also the browser cache.
2) You can add more space to the sharing icons with CSS:
.td-post-sharing .td-classic-facebook iframe{
width:130px!important;
}
Unfortunately there is no setting to change the style for these icons and you will need custom work to change their appearance.
3) Please provide a direct link to the part of the website that creates the space. A screenshot will be helpful as well because i have checked your site and could not find the space you suggested.
4) Provide more details to this question as well. It is important what exactly you want to change. It can be done with css but it has it’s limits.
Thank you!
Hi Bryson,
Unfortunately it is very hard to debug this thing without replicating it.
We run the theme about one year ago on nginx + w3total cache and we did not encounter any problems. I’ve also used in that time the APC user cache.
Why can’t you switch to disk caching + wp super cache? Even when disk caching is used, the linux kernel will actually cache the files in memory if ram is available : https://www.thomas-krenn.com/en/wiki/Linux_Page_Cache_Basics
We tested the apc cache VS the normal disk cache and we did not found big improvements. We are currently using wp super cache and normal php disk caching on all of our installs.
Please send me the page (by using save as)…. the page source is encoded?
-
This reply was modified 10 years by
Radu.
Hi,
I shared the link you sent and, as before, no problems at all. Shared from google chrome. http://screencast.com/t/6iQ6JETHK2lo. Have you tried sharing your posts from a different pc/laptop?
You can try to clear your cache and the browser’s cache as well.
Sorry, but if we cannot recreate the issue, we cannot say for sure what it could be.
Thank you for your message.
Hello,
I just started using smart list and I came across the same issue: my images are displayed twice.
My page is set with smart list 4. I cleared the cache and deactivated the non-essential plugins, but it didn’t resolve anything.
Any idea?
Nick
Hi
I am not sure that this issue is related with the host provider, so lease make sure you follow the steps indicated in our documentation regarding the VC installation: https://forum.tagdiv.com/how-to-update-visual-composer-plugin/ deactivate all others plugins, clear all caches and test again.
Thanks!
Hi
1. I suppose that you’re referring at big grid 1. To hide the author name and the date from that grid use this css in theme panel > custom css: http://screencast.com/t/FZ9nXBFGl
.td_block_big_grid_1 .td-post-author-name, .td_block_big_grid_1 .td-post-date{
display: none;
}
2. The category filter works fine even if the category id have two digit: http://screencast.com/t/OcRf4LTR -http://screencast.com/t/RpU3gCspShAy – http://screencast.com/t/ugrgcVrHvQJ
Please make sure that you added the correct id, clear all caches ant test again.
Thanks!
Pretty much at the end of my wits on this issue. I’m using Newspaper 6.5.1 & W3TC, which I’ve said before I hate but have since moved to a managed VPS that is built to use it for APC and Varnish.
The problem I’m getting is encoded pages being served from the page cache module, regardless of what other modules are or are not enabled. If I change themes to something from a different developer, the problem goes away. The W3TC plugin FAQ on WP.org addresses this and says it’s due to the use of php_flush() or the function flush() by the theme, but I’m not seeing that in the header, index, or footer files though it’s entirely possible that one of those calls is in a deeper file.
Here’s what it looks like:

This has been an on-going issue for me since about July of last year (I’ve kept Newspaper up to date within a few days of every update) and has remained consistent across two hosts (one cloud shared and one VPS). At the time this started W3TC was the recommended caching plugin for theme and even though that recommendation has changed, it’s not because the plugin breaks the theme. I can’t figure out what’s going on.
The host has looked into it with no luck. The W3TC support team doesn’t exist. And I’m not seeing the flush methods called from the theme to answer the documentation’s claimed cause of the problem.
Any ideas? I’m at a loss now. I’ve got a beautiful varnish/memcached/apache/nginx setup going to waste because of this and it’s starting the impede growth of the site.
Thanks.