- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsWhat is Ajax preloading?
Hi,
I’ve decided to use a custom web safe font stack and edited td_fonts.php to add the new fonts, then replaced every instance of non web safe fonts in style.css. Also I’ve made sure that no google fonts, or type kit fonts are shown, and all the theme panel > Custom typography fonts are set to default.
When the web page is loaded all the titles etc are the web safe, however in the source code the old fonts are still being called:
<link rel=’stylesheet’ id=’google-font-rest-css’ href=’http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700?ver=4.2′ type=’text/css’ media=’all’ />
I’m not using a caching plugin, and the browsers are not loading a cached version yet this still happens. Do you know where this stylesheet is being loaded from? And is there anyway to prevent it from being loaded it?
Many thanks for any advice!
All solved! The conflict was with the w3 cache, if someone has the same issue, go to the documentation! 😉
The Speed Booster Pack somehow broke the js on the site, now the search and the affix are not working! I´d excluded those files mentioned above! But most likely I did touch something that I shouldn’t.
Also had trouble with css, but that I fixed it. With js I´m lost, wherever I did, didn’t solve the problem. Which files should I upload from the backup to fix it?
I also have w3 cache plugin
-
This reply was modified 11 years by
diegobianco.
HI Lucian,
I deactivated all the plugins and re-added the plugin but it is still like that. The settings are same and I deactivated W3 Total Cache as well but didn’t worked. I tested on my localhost and it worked with the same theme. It would be really appreciated if you could take a look at it. I will send you the login info through email.
Please let me know if you could do it.
Regards
Hi,
Please try this without any other plugin active, it could be in conflict with other plugins. I have checked this using W3 Total Cache plugin works fine.
I have used this settings: http://screencast.com/t/RHz4oTIkr8K
And added it like this in loop-single.php file: http://screencast.com/t/uouhQPkzCp
I get this result: http://screencast.com/t/uouhQPkzCp
Thanks
Hi Lucian,
I did what you’ve asked me to do. But it didn’t fixed the issue. My settings for the plugin is currently this:

Is it something related to W3 Total Cache’s Minify settongs? If so, here is my minify settings:

and

Please helpp
Will just swing by for the ones I can answer quickly:
(2) If I understand you right: A child theme doesn’t store menu info (as in Appearance -> Menus); that’s in the MySQL database. I expect custom sidebars are the same but I’m not sure. I would probably just use a backup plugin if you have trouble finding your way around your database. If someone else has an easy way to backup just those settings, please share. :p
(3) A quick fix is to add this custom CSS in the theme panel:
.td_mod2 .meta-info {
display: none;
}
.td_mod2 {
margin-bottom: 10px;
}
Change the 10px to whatever spacing you want — default is around 40px.
(4) If they have featured images, best thing to do is clear your cache if you’re using one and follow these directions: https://forum.tagdiv.com/how-to-fix-strange-thumbnails/
(5) Align left with this custom CSS:
.td-social-wrap {
float: left;
}
For the other edits, you’d have to extensively edit td_social.php and td_social_icons.php, if those files can even be replaced in a child theme. You might want to just look at a plugin instead.
Hi,
You can use MySQL Query cache (if you are on a dedicated server). This will speed up all pagination and JavaScript database requests making the Mega Menu and modules with pagination to work faster.
Thanks
Hi,
Thanks @Christopher!
@Stefan
Please let me know what issues do you have, I will try to help you! A common issue with the big slider is the use of CDN which delivers the old content and should work if you empty server cache and also from the browser or when using the 980px layout set from theme panel > responsive settings, you should try using the 1170px layout should solve the slider issue.
Hope this helps!
Thanks for the message
Hi,
I have checked your site and look good now and it should work fine, maybe it happened again due to some plugin that was preventing the css to load or load slower or due to cache.
Thanks for the message
3.6 to 4 is simple; follow the manual upgrade option
https://forum.tagdiv.com/how-to-update-the-theme/
Be sure to update the plugins found in the themeforest “all items” download for the theme, in the plugins folder after theme files updated.
be sure to
First make BACKUP of your dbase, and any special files you’ve modified; turn off all caching, clear caches, clear cache on CDN if using one; turn off mod_pagespeed if using it.
1) switch to main theme, NOT the child theme if using one
2) turn off all plugins while doing update
upload theme files via FTP
3) turn on ONLY the plugins included with theme after upgrade of both theme and plugins
4) if sidebars disappear you can usually just go to appearance and resave them and then back
5) turn on any “extra” plugins
Hope that helps! 🙂
Hi, Lucian!
Doesn’t really help. 🙁
http://i67.fastpic.ru/big/2014/0818/82/9d00be0d234a1889cbc76606b632ca82.png
I tried regenerating thumbnails, no luck. Unfortunately, I don’t know anything about CDN cache that has been mentioned somewhere before.
Hi,
This issue appears when using the 980px layout, please try to use the 1170px layout instead we will fix this in the next theme update.
If this dose not solve this problem please make sure you clear CDN cache and also clear your browser cache and check to see if this issue is still present. This may cause this issue as your CDN delivers the old versions of the files.
You could also try to regenerate thumbs https://forum.tagdiv.com/how-to-fix-strange-thumbnails/
Thanks
-
This reply was modified 11 years by
Lucian.
Note with twitter that once they cache a certain page, they don’t recache it once updated typically. I have this issue on couple of sites where we did some major updates and wanted to re share some pages, but both FB and twitter keep the OLD info, old photo, etc. and won’t update the NEW info, since they already have been “shared” the “old/bad” version. This may not apply to you, but keep in mind FB and Twitter have so much traffic and frequent technical issues, that sometimes there is simply nothing you can do about it as it has nothing to do with your site whatsoever.
Basically if you look at your page source and see all the properly formatted og:tags and twitter tags, description and title tags, then the issue is NOT with your site.
For example, I was sharing some stories from CNN to my G+ account, and all that was showing in the share was the photo and the page URL, no headline, and no description. Issue not with CNN, but with Google.
Likely doesn’t help, but it’s an on/off/on problem with sharing stuff to FB in particular, and sometimes G+. Twitter has been mostly stable, but they do have problems but they do at least have a developer page to SHOW what systems in their network are/are not working in realtinme.
Twitter status alert: http://status.twitter.com/
Twitter network/API status: https://dev.twitter.com/status
Facebook: Platform Live Status: https://developers.facebook.com/status/
example on Facebook Aug 1:
August 1 at 8:59am
Increased errors/latency on all Platform surfaces
Facebook is currently experiencing an issue that is affecting all API and web surfaces. Our engineers detected the issue quickly and are working to resolve it ASAP. We’ll update shortly.
-
This reply was modified 11 years by
simchris.
Hello,
Try now, should work http://screencast.com/t/zJ0y2A1fGK7f
Seems like Facebook have a cache or something.
Thanks!
Well, the sidebar is easy to remove under “page template settings” on the editing screen.
As for the header and footer, there are a few ways you could do this. Here are two:
1. You could edit the respective template files in a child theme to check the page id and only include the relevant elements if it’s not your thank you page.
For example, once you set up and activate a child theme, you could edit the header file you’ve selected in your theme panel. Find this in your-child-theme/parts/header… .php, and add this line before the first div:
<?php if (!is_page('4994')) { ?>
and this at the very end:
<?php } ?>
Your landing page id is the number that comes up when you hover over the link to edit the page: http://www.screencast.com/t/ANsTxW7C
Then you would do the same to other files you want to remove (menu-top.php, footer.php), save, upload, and clear cache.
2. If you’re not comfortable with child themes or php, you could instead do it quickly through CSS:
.page-id-4994 .td-header-bg {
display: none !important;
}
And add any container classes that you want to hide, putting them where .td-header-bg is, e.g. .td-header-menu-wrap. You can find these using inspect element.
The CSS solution isn’t great because all the content will still be downloaded by the client’s browser, but it’s very easy.
3. Create a custom page template. WordPress checks for page templates in a hierarchy of importance, including the slug and the ID, so if you your page’s slug is /email-landing and you have a template named page-email-landing.php, or page-4994.php, and so on, WordPress will use that rather than the default one. Then you could edit that one to suit your needs. You could copy page.php from the parent theme’s folder as a starting point.
From what I’ve read, this is probably the most natural solution, but it would still need a child theme to survive theme updates, and to be honest I haven’t looked at enough custom template building yet to know what to advise you. For example, you can’t just remove the call to get_header() from page.php or you’ll lose a lot more than the logo div, etc.
Those are my two cents, coming from a relatively new learner of this sort of thing. If anyone has a better solution, feel free to mention it so I can learn too. 🙂
In Newspaper/includes/modules/module_modifier/ you have td_module_blog.php. This is one of the files you can overwrite (at least I find) in a child theme, which you can set up here: https://forum.tagdiv.com/child-theme-documentation/
Once you have the child theme set up and activated, copy and paste that file into the corresponding folder in your child theme. Then edit the file.
The function get_author_box is the one you want to change.
Specifically, change these lines:
$buffy .= '<a href="' . get_author_posts_url($author_id) . '">' ;
$buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
$buffy .= '</a>';
to this one line:
$buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
and change this line:
$buffy .= '<a href="' . get_author_posts_url($author_id) . '">' . get_the_author_meta('display_name', $author_id) . '</a>' ;
to this:
$buffy .= get_the_author_meta('display_name', $author_id);
Save the file and upload via FTP. Clear cache and check the bottom of a post.
Hope this helps!
-
This reply was modified 11 years by
TheMediumUTM.
Indeed, I did (and cleared cache), but still no luck. This is what it looks like; is it right?
.blog-stack .sf-menu .current-menu-parent .current-menu-item a, .blog-stack .sf-menu .current-menu-parent > a, .blog-stack .sf-menu > li:hover > a, .blog-stack .sf-menu ul li:hover > a, .blog-stack .td-post-text-content .more-link-wrap:hover a, .blog-stack .sf-menu ul .td_mega_menu_sub_cats a.cur-sub-cat, .blog-stack .sf-menu ul .td_mega_menu_sub_cats a.cur-sub-cat:hover, .blog-stack .td-mega-menu .block-mega-child-cats a:hover, .blog-stack .td_mod_mega_menu:hover .item-details a {
color: #3daced !important;
background-color: #ffffff;
}
.blog-stack .sf-menu .current-menu-item a {
color: #ffffff !important;
background-color: inherit !important;
}
check with your hosting provider … if the clock is off or something. I may be missing what your issue is.
You can check your headers for pages with various online tools like http://web-sniffer.net/
HTTP Response Header
Name
Value
Delim
Status: HTTP/1.1 200 OK
Date: Wed, 13 Aug 2014 20:49:28 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Set-Cookie: __cfduid=d2376a9f44b520530e88bf3049c2796811407962968768; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.cherrykoks.de; HttpOnly
Expires: Wed, 13 Aug 2014 21:49:28 GMT
Pragma: public
Cache-Control: max-age=3600, public
X-Powered-By: W3 Total Cache/0.9.4
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, must-revalidate
Vary: Accept-Encoding
Server: cloudflare-nginx
CF-RAY: 1597c78ace8e064a-FRA
Content-Encoding: gzip
Note if having issues with your setup it’s best to check with your CDN provider to debug any issues between hosted content on server and on the CDN and how they sync.
I know I’m not @Lucian, but maybe I can still help 🙂 There are a few plugins that do this, such as: http://wordpress.org/plugins/easy-add-thumbnail/
Some of these plugins only affect new posts, but that one looks retroactive.
(Note that after you use that plugin, if you don’t see a change, clear your cache if you’re using a cache plugin.
If you still don’t see a change, follow these instructions: https://forum.tagdiv.com/how-to-fix-strange-thumbnails .)
@cleverliving – If you do want to target all pages, you can use the CSS above in the following way (and this is the same process for any CSS @Lucian gives you) :
1. Open your theme panel
2. Scroll down and find the “Custom CSS” section on the left
3. In the first box there, paste this CSS:
body {
font-family: 'PT Sans', sans-serif;
font-size: 14px;
line-height: 21px;
}
This section works by overriding the CSS specified in the theme by default, which is what you’ve just copied in. So now…
4. Change these style attributes to the ones you want. For example, let’s say you want your page text to be Times New Roman at 16px and lines that are 24px high. Your box would contain this:
body {
font-family: 'Times New Roman', serif;
font-size: 16px;
line-height: 24px;
}
5. Save settings and clear cache (if you use one) when you’re done.
Why does this work? Because the text on pages is just a <p> that doesn’t have any other font info to inherit. Note that by changing the body CSS like we do here, you’re hypothetically affecting a lot of the site, but most of the other text has other styling that overrides this body styling.
-
This reply was modified 11 years by
TheMediumUTM.
-
This reply was modified 11 years by
TheMediumUTM.
Hi Lucian,
you can see where I am trying to use the 7 day popular posts on the front page of this site http://myturriff.co.uk/ just below the big picture, titled ‘Most Read’, I’m seeing one post from this week and 2 from 2013. The two posts from 2013 according to jetpack stats have not been viewed once in the past 30 days.
I’ve tried turning off all non required plugins and still get the same result.
I turned off W3 Total Cache when you first highlighted the issue with it so there are no caches to clear.
Any ideas
CDN, W3 total cache, mine is cleared, but still not changing.
-
This reply was modified 12 years by
kacsa1337.
You’re using W3 Total Cache – Be sure to empty all caches after selecting the Blog Style header and saving changes, then load it up and see how it works. The only other thing coming to mind would be custom CSS hard-coding the header into place, which isn’t likely.