- NewspaperDesign your post pages using the Default Templates
- NewspaperPost template ads
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperHow to use the Flex Blocks cache option
- NewspaperFlex Block Settings Guide
- NewspaperThe Newspaper Mobile Theme: Introduction
- NewspaperDefault Category Settings
- NewspaperCloud Library – Category Templates
- NewspaperBig Grid Flex Settings
- NewspaperHeader Builder
- NewspaperMeta Info on Modules and Blocks
- NewspaperTheme modules and blocks
- NewspaperImport / Export Theme Settings
- TutorialsDefault Block Settings Guide
- NewsmagImport / Export theme settings
- TutorialsOffset Feature
- NewspaperUnique Articles
- TutorialsSystem status parameters guide
- NewsmagRequirements for Newsmag
- NewsmagBlock settings tutorial
I keep a folder with copies of the files I hack each update so I can remember them at a glance, a text file with my additions to put at bottom of functions.php and note as to which section by line number x-x to remove; and a text file with cheat sheet of the search/replace for the style.css file. Not too painful. Kind of started when I had existing read/hit counter and needed to update the module to load the existing “field” vs the one used by Newspaper for hit counting. Then it was uncommenting the author byline each time in the main post file. Then it was the custom font loading. Well, there you are. As long as I have my local “cheats” folder, I can usually open two windows with both old stuff and new version of theme and then just top to bottom change stuff in new update folder, and then upload to server and it’s like nothing changed for the stuff I modified.
And, benefit is the style redirect issue that Google doesn’t like with child themes, and much easier to deal with any custom css over-rides as well as issues with tagdiv’s in house speedbooster plugin, etc.
At least this has been my experience 🙂
Hi Lucian,
Yes, i’m sure that it happened after i’ve removed those lines
http://screencast.com/t/2IO8XfHK41f
by adding ‘//’ before them.
I’ve removed them and everything went back to normal (expect that the dateCreated is back)
It’s nog that something creates space, but it’s like there is one line missing and the complete post is moving up right behind the post tag blocks. When we can add a blank line instead of those tho lines:
//$buffy .= ‘<time itemprop=”dateCreated” class=”entry-date updated’ . $visibility_class . ‘” datetime=”‘ . date(DATE_W3C, $td_article_date_unix) . ‘” >’ . get_the_time(get_option(‘date_format’), $this->post->ID) . ‘</time>’;
//$buffy .= ‘<meta itemprop=”interactionCount” content=”UserComments:’ . get_comments_number($this->post->ID) . ‘”/>’;
The problem is solved i guess. I’ve tested and the ‘missing line’ issue isn’t there when i add a ‘featured picture’ to the post.
Thanks…
JB
Hi,
I need some help to customize the theme even more than before and for this i will need some help. Thanks in advance!
Problem 1: Google shows when the category page was created(i think this is the code time itemprop="dateCreated
I would like to completely REMOVE this from category pages!
Problem 2: https://forum.tagdiv.com/topic/hide-category-on-post-page/
Hiding categories on post page is still broken and i want to REMOVE it and not hide it via css(thanks for your help TheMediumUTM, but this is not what i wanted)
Problem 3: Im using the MS category template and its just funny. http://i.imgur.com/hK5kz4O.jpg
1. Below every post title there is a breadcrumbs. How to remove it?
Also i want to remove the Author hyper link and show only the author name.
Hi,
Please send me a link to your site and point me on what white spaces you need to remove and I will provide you a fix, you could also try this it may help: https://forum.tagdiv.com/topic/remove-white-space-between-blocks/#post-20049
Use the css without the .home class, like this:
.td-grid-wrap .wpb_row {
margin-bottom: 0px;
}
Please let me know if it works for you.
Thanks
Hi,
Thanks for letting us know!
You can adjust the white space as you like via css, please follow this if you want to change it: https://forum.tagdiv.com/topic/remove-white-space-between-blocks/#post-20049
Let me know if you can’t manage this.
Thanks
Yes. That is how WordPress themes work. That’s how you have all those smaller size images for your sidebar, homepage, categories, related items bottom of post, recommended fly out, etc. — where did you think all those thumbnails came from? They are created by WP and the theme when you upload an image.
If you wish to remove the sizes you don’t use — meaning, if you don’t use certain modules, you can comment out those sizes in the functions.php file, I believe, and also a trick I’ve advised the past 10 months on the forum has been to choose the three sizes in the WP settings > media setting (not theme panel), to the three sizes you use the most (matching modules you’re using), to not make extra sizes.
You can see the sizes created to match each module in the documentation, which is highly recommended to read, here:
https://forum.tagdiv.com/modules-and-blocks/
Without any theme at all, WP will always create three additional thumbnails. With each theme, thumbs are created to match the sizes you might possibly choose to use for the specific theme layout or module.
You can search the forum for tips and help on removing image sizes you don’t use, also.
Hope that helped.
Hi,
It’s not easy to prevent the search engines to get the date from posts, you would have to locate all tags from the theme files and WordPress also, you could get a freelancer to do this for you or you could try to find a solution online.
Also I’m not sure if not showing the date of your posts it’s an Google call, you could do a search on this for more info. Also you can use this tool to check what Google gets from your site.
This is an example for our demo site, you can see that it dose not show the date even though we hadn’t made any changes to prevent that. http://screencast.com/t/61gpPqkjzxc
Hope this helps!
Thanks
Hi,
I’m not sure what are you trying to achieve. You can have the featured image stretched to full screen width by setting the posts style 4 and making sure you don’t use any backgrounds to your site because in that case your site layout will become boxed and the full width image won’t work. You have to make sure you have an full-width layout, in that case you will have the post page when using style 4 looking like this: http://screencast.com/t/mugp3VZo
Make sure you remove the background image and color from theme panel like this: http://screencast.com/t/Vc8Zd1gzAbS
Also this feature image will be available only on post pages when using post style 4, if you want to use something like this on pages try this method: https://forum.tagdiv.com/topic/full-width-image-header-on-hompage/
Regarding the slider/bigslider full width, you can try to have this via css but the sliders had not been designed to work like that and I don’t know how will respond, you can give it a try or hire a freelancer to do it for you if you don’t know how.
Hope this helps!
Thnaks
After digging a bit and getting an answer on the WP Stack Exchange I realized this has to do with child vs. descendant. I have it working 🙂
But it also required editing one part of td_css_generator.php. So I wanted to alert you guys to what I think is a bug in the theme. This CSS in td_css_generator:
.blog-stack .sf-menu .current-menu-item a,
.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:@link_color !important;
}
Should maybe have this for the first line?
.blog-stack .sf-menu .current-menu-item > a,
Because otherwise, even when I remove all my custom CSS for the menu, the dropdown from a current item has the same background colour and font colour. This was actually my first question on the support forum:
https://forum.tagdiv.com/topic/menu-dropdown-broken/
So yeah. If others have seen this problem, hope that helps!
(In the meantime… is there any way for me to overwrite td_css_generator with a child theme?)
Hi,
Are you using Jetpack Photon – http://jetpack.me/support/photon/ or a similar CDN plugin ? I noticed that your images link contain this resize=480%2C360 which makes the image link looks like this – http://i1.wp.com/thatcoolwebsite.com/wp-content/uploads/2014/08/hqdefault1.jpg?resize=480%2C360
Without this CDN the link should be something like this: http://192.168.0.70/wp_demo_009/3/wp-content/uploads/2013/05/maxresdefault41-745x483.jpg
I think this could be the reason for this issue. Please disable all plugins including CDN and then regenerate thumbnails https://forum.tagdiv.com/how-to-fix-strange-thumbnails/ and also remove and add the link for the featured video again for that post.
Regarding the infinite scroll you already have an loading in progress animation http://screencast.com/t/zca13IONyC which it’s positioned at the center of the block.
Hope this helps!
Thanks
@JBH
Hi, looks like setting proper folder permissions on your site really helped to start 🙂
But, looking at your example post page you have a LOT of work to do.
most of your errors have nothing to do with the theme; so you’re going to want to address all that stuff first. Possibly find better solutions for what you’re doing with some of those external systems. Basically you’re loading too many things from external sites, which will lower your scores; more than 5 external things is bad for speed.
For example – this is crazy:
This page has 29 external Javascript scripts. Try combining them into one. This page has 13 external stylesheets. Try combining them into one. This page has 7 external background images. Try combining them with CSS sprites.
Note you can’t do much about the stuff you’re loading from other sites/servers, but you should
1) remove “versioning” — implement the .htaccess (if running Apache) and functions.php suggestions which I’ve posted, especially for the remove of the version tags. If running child theme you may need to put in child version; not sure on that.
2) optimize javascript delivery; use the td speed booster plugin to help with theme resources; but it won’t help with external stuff you’re loading
3) you cant do anything about the image dimensions of the things being loaded off external websites
4) prefer async – you’d have to hack whatever plugin you’re using for Facebook to load that as async
5) optimize images – be sure what you upload is already as small as possible; also use something like smushit or similar; possibly use my functions.php code for setting smaller default compression size for WordPress built in function (e.g., change from default 90 to 6); then do regenerate thumbnails — boom everything 20% smaller!
7) consistent URL errors coming from your “leadpages” stuff
8) vary encoding errors – coming mostly from leadpages
9) redirect issues – whatever you’re doing with Facebook and Google generating errors
10) bad request with favicon
(etc.)
I’ve came across a awesome plugin that a lot off people might find very usefull,the reason i’m sharing this plugin is because it have a lot of usefull features to better ur wordpress also the theme…
Plugin is called Custom Functions by Shamim Hasan
Features:
1. Change amount of posts on the home page.
2. Change amount of posts on the search page.
3. Change length of excerpt.
4. Automatically mark as spam all comments with an url longer than set chars.
5. Set the post revisions unless the constant was set in wp-config.php already.
6. Control When Your Posts are Available via RSS.
7. Automatically empty trash after set days.
8. Change Admin footer.
9. Add favicon to head.
10. Remove unnecessary links from wp_head.
11. Redirect to home page after login.
12. Hide admin bar from front end for non admin.
13. Disable back end access for non admin users.
14. Login with both Email/username.
15. Show only own uploaded media in library.
16. Restrict user to upload only jpg,jpeg,png,gif type of media.
17. Stop images getting wrapped up in p tags when they get dumped out with the_content() for easier theme styling,
18. Call the google CDN version of jQuery for the frontend.
19. Call Googles HTML5 Shim, but only for users on old versions of IE.
20. Change login screen error messages to “Think you have gone wrong somwhere!”.
21. Show post thumbnail in RSS Feeds.
22. Disable RSS Feeds.
23. Display the Most Accurate Comment Count.
24. Custom admin menu link for all settings.
25. Enable admin to set custom background images in ‘appearance > background’.
26. Remove pings to self.
27. Sharpening resized jpg images.
28. Enable Gzip.
29. Prevent user email change from profile.
30. Block comments with no-referrer.
31. Remove word “Private: ” infront of title of private post/page.
32. Disable the theme/plugin editor in Admin.
33. Disallow anything that creates, deletes, or updates core, plugin, or theme files.
34. No more jumping for read more link.
35. Enable custom Breadcrumbs.
36. Disable Search in WordPress.
37. Disable Admin nag.
38. Remove wordpress version number.
This plugin works so great you can find it via wordpress @ this url
Hi,
Try this custom css, also please remove this part .blog-stack .sf-menu .current-menu-item a from the css I gave you above. As I could not overwrite that part, which is the one that targets the current drop down menu item, it would be better you remove it from the previous custom css and add this one only for the current drop down menu items.
.blog-stack .sf-menu .current-menu-item a {
color: #ffffff !important;
background-color: inherit !important;
}
Hope this helps!
Thanks
Hi,
This is a common issue using the speed booster plugin, regarding theme color you can try this solution.
Regarding fonts you can try to remove the fonts you don’t use from here and see if this makes a difference.
Of course the best way would be to disable the plugin.
Also try to delete and install the speed booster plugin from the latest theme version files (4.2) I have tested this and seems that this issue don’t happen anymore.
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
first you can’t do anything about the cache validation or anything with fonts loading off of google’s website, or anything loading from jetpack (or adsense, or addthis, or disqus, etc.) — as those elements live on somebody else’s server. Only solution is to remove them or workaround them (e.g., load google fonts on your site or CDN, or load the CSS from your own style sheet — you can google how to do this, as it’s a trick which has been used for couple of years — simply grab the CSS you’re loading from google for the fonts, then put it into your own CSS, then remove the “call” to that CSS from your style.css and/or functions.php).
For the remove query strings I would suggest this:
1) turn off all your plugins
2) make sure you put the remove query code at bottom of your functions.php file and have uploaded to server properly, replacing original file
3) test a post page and see if it’s working – it should work, unless you have conflicting element re-writing your code. Or, you didn’t put the code in right place with something else you’ve added to the functions.php file, or you have a missing or extra closing bracket (bad syntax). There are couple of ways to do this, but again – double check your code/syntax, which is #1 reason something doesn’t work – be careful what you copy/paste FROM … always use a proper plain text editor so it won’t introduce garbage characters.
4) start turning on plugins: pay close attention to any SEO plugin which may try to rewrite the css and js “positions” in the file
5) avoid using plugins which do the same thing – seo plugin with sitemap, and other sitemap plugin; seo plugin which rewrites location of your js and css and the tagdiv speed booster
6) once you find the conflicting plugin, you can sort out what to do for the version removal to work (and don’t have that in functions *and* use a version removal plugin at same time, AND an SEO plugin that rewrites your code AND the tagdiv speedbooster).
This is normal process to “debug” why something doesn’t work.
Hi, well if you read through my posts on the Page Speed topic, I’ve noted the code I use in functions.php to remove the ? queries which I prefer to using plugin, which it seems you have okay, and also how to do the CSS and JS minification, which takes 5 minutes — just copy the code into the CSSminifier site, then copy out the minified version and then overwrite your css file on the server via FTP. Bam – you’re done 🙂
And of course optimizing your images prior to upload is super important, too.
For the size thing, you can certainly try adding the =”100″ to your header, and see if that improves your score or not. In my case it was a non-issue since I’m using mod_pagespeed on our server which adds image dimensions on the fly including for anything resized based on CSS percentage width images which is the cat’s pajamas as my grandma used to day 🙂
Well … remember audience comes from content — original content — not page speed. If you get above 90 for desktop and 80 for mobile you can move on with your life and concentrate on content, and then revisit this stuff as it comes up. (Now, I will admit I wasted the entire month of January 2014 on this adventure, so I can’t advise others about not getting obsessive …).
I don’t use Cloudflare – some people love it.
My .htaccess file on my site…WARNING DON’T USED MINE ARE IT WILL BREAK UR SITE..MINE IS LIKE THIS BECAUSE OF OTHER THINGS THAT I HAVE DONE ON MY SITE for safty…
# BEGIN All In One WP Security
#AIOWPS_BLOCK_WP_FILE_ACCESS_START
<Files license.txt>
order allow,deny
deny from all
</files>
<Files wp-config-sample.php>
order allow,deny
deny from all
</Files>
<Files readme.html>
order allow,deny
deny from all
</Files>
#AIOWPS_BLOCK_WP_FILE_ACCESS_END
#AIOWPS_BASIC_HTACCESS_RULES_START
<Files .htaccess>
order allow,deny
deny from all
</Files>
ServerSignature Off
LimitRequestBody 10240000
<Files wp-config.php>
order allow,deny
deny from all
</Files>
#AIOWPS_BASIC_HTACCESS_RULES_END
#AIOWPS_PINGBACK_HTACCESS_RULES_START
<IfModule mod_alias.c>
RedirectMatch 403 /(.*)/xmlrpc\.php$
</IfModule>
#AIOWPS_PINGBACK_HTACCESS_RULES_END
#AIOWPS_DISABLE_INDEX_VIEWS_START
Options -Indexes
#AIOWPS_DISABLE_INDEX_VIEWS_END
#AIOWPS_DISABLE_TRACE_TRACK_START
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* – [F]
#AIOWPS_DISABLE_TRACE_TRACK_END
#AIOWPS_FORBID_PROXY_COMMENTS_START
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{HTTP:VIA}%{HTTP:FORWARDED}%{HTTP:USERAGENT_VIA}%{HTTP:X_FORWARDED_FOR}%{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}%{HTTP:HTTP_PC_REMOTE_ADDR}%{HTTP:HTTP_CLIENT_IP} !^$
RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
RewriteRule .* – [F,NS,L]
#AIOWPS_FORBID_PROXY_COMMENTS_END
#AIOWPS_FIVE_G_BLACKLIST_START
# 5G BLACKLIST/FIREWALL (2013)
# @ http://perishablepress.com/5g-blacklist-2013/
# 5G:[QUERY STRINGS]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (\”|%22).*(<|>|%3) [NC,OR]
RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR]
RewriteCond %{QUERY_STRING} (\\|\.\./|`|=’$|=%27$) [NC,OR]
RewriteCond %{QUERY_STRING} (\;|’|\”|%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if) [NC,OR]
RewriteCond %{QUERY_STRING} (base64_encode|localhost|mosconfig) [NC,OR]
RewriteCond %{QUERY_STRING} (boot\.ini|echo.*kae|etc/passwd) [NC,OR]
RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC]
RewriteRule .* – [F]
</IfModule>
# 5G:[USER AGENTS]
<IfModule mod_setenvif.c>
# SetEnvIfNoCase User-Agent ^$ keep_out
SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|jakarta|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
<limit GET POST PUT>
Order Allow,Deny
Allow from all
Deny from env=keep_out
</limit>
</IfModule>
# 5G:[REQUEST STRINGS]
<IfModule mod_alias.c>
RedirectMatch 403 (https?|ftp|php)\://
RedirectMatch 403 /(https?|ima|ucp)/
RedirectMatch 403 /(Permanent|Better)$
RedirectMatch 403 (\=\\\’|\=\\%27|/\\\’/?|\)\.css\()$
RedirectMatch 403 (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\”\\\”)
RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$
RedirectMatch 403 /(contac|fpw|install|pingserver|register)\.php$
RedirectMatch 403 (base64|crossdomain|localhost|wwwroot|e107\_)
RedirectMatch 403 (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)
RedirectMatch 403 \.well\-known/host\-meta
RedirectMatch 403 /function\.array\-rand
RedirectMatch 403 \)\;\$\(this\)\.html\(
RedirectMatch 403 proc/self/environ
RedirectMatch 403 msnbot\.htm\)\.\_
RedirectMatch 403 /ref\.outcontrol
RedirectMatch 403 com\_cropimage
RedirectMatch 403 indonesia\.htm
RedirectMatch 403 \{\$itemURL\}
RedirectMatch 403 function\(\)
RedirectMatch 403 labels\.rdf
RedirectMatch 403 /playing.php
RedirectMatch 403 muieblackcat
</IfModule>
# 5G:[REQUEST METHOD]
<ifModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* – [F]
</IfModule>
#AIOWPS_FIVE_G_BLACKLIST_END
#AIOWPS_PREVENT_IMAGE_HOTLINKS_START
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://jahliveradio\.com [NC]
RewriteRule \.(gif|jpe?g?|png)$ – [F,NC,L]
</IfModule>
#AIOWPS_PREVENT_IMAGE_HOTLINKS_END
# END All In One WP Security
# BEGIN NinjaFirewall (WP+)
<IfModule !mod_php5.c>
<IfModule mod_env.c>
SetEnv PHPRC /home/hxnlfcaw/public_html/.user.ini
</IfModule>
</IfModule>
# END NinjaFirewall (WP+)
# BEGIN HTML5 Boilerplate
# This contains the HTML5 Boilerplate .htaccess that can be found at:
# github.com/h5bp/html5-boilerplate/blob/master/.htaccess
#
# Added:
# Block access to access to WordPress files that reveal version information.
#
# Commented out by default:
# Expires headers: Use WP Super Cache or W3 Total Cache (unless using the H5BP build script)
# ETag removal: Use WP Super Cache or W3 Total Cache (unless using the H5BP build script)
# Start rewrite engine: Handled by WordPress
# Suppress/force www: Handled by WordPress
# Custom 404 page: Handled by WordPress
#
# Anytime you update this file the .htaccess file in the root of your
# WordPress install is automatically updated with the changes whenever
# the permalinks are flushed or set
#
# ———————————————————————-
# Better website experience for IE users
# ———————————————————————-
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25
# Use ChromeFrame if it’s installed for a better experience for the poor IE folk
<IfModule mod_headers.c>
Header set X-UA-Compatible “IE=edge”
# mod_headers can’t match by content-type, but we don’t want to send this header on *everything*…
<FilesMatch “\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$”>
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
# ———————————————————————-
# CORS-enabled images (@crossorigin)
# ———————————————————————-
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
# mod_headers, y u no match by Content-Type?!
<FilesMatch “\.(gif|png|jpe?g|svg|svgz|ico|webp)$”>
SetEnvIf Origin “:” IS_CORS
Header set Access-Control-Allow-Origin “*” env=IS_CORS
</FilesMatch>
</IfModule>
</IfModule>
# ———————————————————————-
# Webfont access
# ———————————————————————-
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like “subdomain.example.com”.
<IfModule mod_headers.c>
<FilesMatch “\.(eot|font.css|otf|ttc|ttf|woff)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
# ———————————————————————-
# Proper MIME type for all files
# ———————————————————————-
<IfModule mod_mime.c>
# JavaScript
# Normalize to standard type (it’s sniffed in IE anyways)
# tools.ietf.org/html/rfc4329
AddType application/javascript js jsonp
AddType application/json json
# Audio
AddType audio/ogg oga ogg
AddType audio/mp4 m4a f4a f4b
# Video
AddType video/ogg ogv
AddType video/mp4 mp4 m4v f4v f4p
AddType video/webm webm
AddType video/x-flv flv
# SVG
# Required for svg webfonts on iPad
# twitter.com/FontSquirrel/status/14855840545
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# Webfonts
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
# Assorted types
AddType application/octet-stream safariextz
AddType application/x-chrome-extension crx
AddType application/x-opera-extension oex
AddType application/x-shockwave-flash swf
AddType application/x-web-app-manifest+json webapp
AddType application/x-xpinstall xpi
AddType application/xml atom rdf rss xml
AddType image/webp webp
AddType image/x-icon ico
AddType text/cache-manifest appcache manifest
AddType text/vtt vtt
AddType text/x-component htc
AddType text/x-vcard vcf
</IfModule>
# ———————————————————————-
# Gzip compression
# ———————————————————————-
<IfModule mod_deflate.c>
# Force compression for mangled headers.
# http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding “gzip,deflate” env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# Compress all output labeled with one of the following MIME-types
# (for Apache versions below 2.3.7, you don’t need to enable mod_filter
# and can remove the <IfModule mod_filter.c> and </IfModule> lines
# as AddOutputFilterByType is still in the core directives).
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml \
AddOutputFilterByType DEFLATE application/javascript \
AddOutputFilterByType DEFLATE application/json \
AddOutputFilterByType DEFLATE application/rss+xml \
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject \
AddOutputFilterByType DEFLATE application/x-font-ttf \
AddOutputFilterByType DEFLATE application/x-web-app-manifest+json \
AddOutputFilterByType DEFLATE application/xhtml+xml \
AddOutputFilterByType DEFLATE application/xml \
AddOutputFilterByType DEFLATE font/opentype \
AddOutputFilterByType DEFLATE image/svg+xml \
AddOutputFilterByType DEFLATE image/x-icon \
AddOutputFilterByType DEFLATE text/css \
AddOutputFilterByType DEFLATE text/html \
AddOutputFilterByType DEFLATE text/plain \
AddOutputFilterByType DEFLATE text/x-component \
AddOutputFilterByType DEFLATE text/xml
</IfModule>
</IfModule>
# ———————————————————————-
# UTF-8 encoding
# ———————————————————————-
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8
# Force UTF-8 for a number of file formats
<IfModule mod_mime.c>
AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
</IfModule>
# ———————————————————————-
# A little more security
# ———————————————————————-
# “-Indexes” will have Apache block users from browsing folders without a default document
# Usually you should leave this activated, because you shouldn’t allow everybody to surf through
# every folder on your server (which includes rather private places like CMS system folders).
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
# Block access to backup and source files
# This files may be left by some text/html editors and
# pose a great security danger, when someone can access them
<FilesMatch “(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$”>
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# Block access to WordPress files that reveal version information.
<FilesMatch “^(wp-config\.php|readme\.html|license\.txt)”>
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# END HTML5 Boilerplate
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Leverage Browser Caching Ninja — Starts here
# Do not write anything between “Leverage Browser Caching Ninja — Starts” and “Leverage Browser Caching Ninja — Ends”
# It will be deleted while uninstalling Leverage Browser Caching Ninja plugin
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType text/css “access 1 month”
ExpiresByType application/javascript “access plus 1 year”
</IfModule>
# Leverage Browser Caching Ninja — Ends here
Hi,
Sorry about this, unfortunately you can’t update the theme without any changes, you can only try to set again the posts how they where before.
Unfortunately I don’t know what those changes are. If you want, you can update the theme to the latest version and give us wp-access. You can do the update and then send your wp-admin username and password to contact@tagdiv.com and specify there all the changes that the update has made to your layout and we will try to find a solution.
For the space between the feature image and the text you can use this custom css to remove it, add it in Theme Panel > Custom CSS:
.post .thumb-wrap {
margin-bottom: 0px;
}
This is the font used for that post http://screencast.com/t/V1Xhe2wKU2
Hope this helps!
Thanks
Hey!
check the docs, here… under thumb sizes.
basically look at which modules you’re using, and the sizes you’re actually using on your homepage, sidebar, footer, etc.; remove those sizes you’re *not* using:
https://forum.tagdiv.com/modules-and-blocks/
You can also do the trick from my past posts of making sure that the small/medium/large defaults from the WordPress settings panel (not theme panel), match the three sizes you most use; this way you’re not doing theme sizes *and* WP default sizes!
Hi,
To change the big slider and normal slider color font use this css:
.iosSlider .td-sbig-title-wrap a, .iosSlider .td-sbig-title-wrap span {
color: red !important;
}
To change the mete info/category color use this css:
.iosSlider .slide-meta a, .iosSlider .slide-meta span {
color: red !important;
}
If you don’t want to change the date color also, remove the .iosSlider .slide-meta span
For the tag widget use this:
.widget_tag_cloud .block-title span {
color: red !important;
}
The size of the tag widget is determined by the amount of tag displayed there, so you can’t re-size it only if you reduce the size of the tag container. Use this css to do that:
.widget_tag_cloud .tagcloud a {
padding: 0px 5px 0px;
font-size: 11px !important;
}
Hope this helps!
Thanks
Hi,
With the new post template and latest theme versions we have changed some classes but I have tested the css you’ve sent me on your site and should work fine, i don’t know why this custom css does not work when you add in custom css section, please make sure you remove it and then paste it again and savce it, go back and see if the changes have been made. If not you can give wp-acces to check this, send an e-mail at contat@tagdiv.com with your username and password and also include a link to this topic or specify the issue details.
Also i found this piece on your css that you can remove it, it dose not do anything:
.td-post-text-content {
line-height: 22px;
And i haven’t tested the .faktaboks class from the css, it’s must be coming from a plugin because we don’t have a class like that in the theme, but should work also if that class has not been changed.
Hope this helps!
Thanks for the message!
Hi,
You can try to add specific tag to those 6 posts or more and filter them by tag, this way you can remove the posts from featured category and leave only the main one.
Thanks for the message!
@manual
best bet for my stuff, is go “backwards” from here as the stuff for htaccess file still good, for Apache/Linux. I’m only running nginx for some stuff on our server, we use Apache for compatibility with 20 years of content and some stuff not practical to reinvent at this time.
mod_pagespeed … I am running kind of a moderate number of things with defaults on server wide, then htaccess for local per site/folder controls/over-rides or “off.” With nginx I think you have to use a config file.
Anyway…. here’s my htaccess minus the 301 stuff:
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>
# start WordPress
(removed; might be diff for other setups :-)
# END WordPress
AddType text/javascript .js
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
Here’s my robots.txt file (again, your needs may vary)
User-agent: *
Disallow: /cgi-bin
Disallow: /cgi-bin/
Disallow: /wp-admin
Disallow: /wp-admin/
Disallow: /wp-includes
Disallow: /wp-includes/
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /wp-content/upgrade
Disallow: /wp-content/backup-*
Disallow: /aff/
Disallow: /search/*/*
Disallow: /trackback
Disallow: */trackback
Disallow: /trackback/
We’re currently not running things off our Amazon CDN for the WP sites, in favor of using the horsepower of the dedicated server with high-speed switch, APC, mod_pagespeed, etc. Not finding it super beneficial to load those 1kb sprites off the CDN, frankly. (Brand new web server Dec. 2013). And for us tweaking is simpler when it’s all using one system, and letting mod_pagespeed fix some stuff.
I was manually minifying the style.css file and couple other things. Have not done that with latest version (just updated last weekend). Simple to do … some of my posts on here reference the websites like css minifier where you can copy/paste your code, make new file and over-write the theme css file to solve that issue (takes 5 minutes).
I had too many issues with the caching plugins so not using right now.
Take Google’s PageSpeed Insights with major grain of salt.
On one of my project sites (not running WP), we have the CSS loading from external file, minified, got pagespeed score of 87 and warning about only 47% of page loading above the fold (menu wasn’t showing up), and this could be seen missing from screen capture. So, we put all the code inline, speed went to 95 desktop, 85 mobile, but warning about above the fold now says only 1% was able to be loaded, but snapshot of screen shows everything above fold loaded properly.
Similarly on our WP install running Newspaper, here’s one of their wonderful “suggestions” ….
Reduce server response time
In our test, your server responded in 0.36 seconds. There are many factors that can slow down your server response time. Please read our recommendations to learn how you can monitor and measure where your server is spending the most time.
So, apparently 0.36 seconds is considered slow?
🙂
You have to go in the theme settings then “categories” and click on each category you have and turn off the “HIDE CATEGORY TAG ON POST”
Hey, I figured how to remove ‘tags’ from the posts but I can’t remove the full ‘categories’ from the top of the category page: http://screencast.com/t/Sow6ugpkeOC
How do I go about doing this? I played with so much stuff in the Theme Panel but can’t figure it out.