- ApiAPI – Top Bar Template – Introduction
- ApiAPI – Single Template – Introduction
- ApiAPI – Footer Template – Introduction
- ApiAPI – Smart Lists – Introduction
- ApiAPI – Thumbnail – Introduction
- ApiAPI – Category top section style – Introduction
- ApiAPI – Category top section template – Introduction
- ApiAPI – Modules – Introduction
- ApiAPI – Blocks – Introduction
- ApiAPI – Header style – Introduction
- ApiUsing the Theme API in plugins
I have done everything as it says. Add code “add_filter( ‘jpeg_quality’, create_function( ”, ‘return 50;’ ) );” and run reg.thumb plugin. After that I run g. pagespeed, but the score was the same as previous mobile:52 / desktop:67 and I still get the message about optimazing images. It looks that they still weren’t optimized.
But then I tried another thing. I changed my expire headers in .httaccess with your expire headers you have posted in this post: https://forum.tagdiv.com/topic/what-is-your-googlespeed-value/ and WOW!!! after I run g. pagespeed test I saw complitely diferent score: mobile:72 / desktop:82 — THAT IS FANTASTIC FOR ME!!! (I am on shared hosting for 5$ a month) — and when I test my page speed with google I have everything enabled and all ads on the site, so that new score is fantastic for me!!!
Christopher THANK YOU!!! 🙂
Update!!!!!
I can not save any changes at all.. not ads… css or any other updates…
..I only get the rolling cubes and nothing updates.
Hi,
I have implemented the responsive google adsense feature, but when I insert the “[tagDiv] Ad box” widget it does not show the block title for the widget (e.g., for other widgets like “Archive” it generates code like <div class=”block-title”> <span>Archives</span></div>).
How can I add a block title like this to the responsive adsense widget?
Thanks for your help!
Been working with the theme for much of the past week, love it – covers almost all my needs.
Only significant problem I’ve come across is the ‘visibility’ function in the widgets don’t work. My posts have several categories so I aim to have a sidebar for posts in each category showcasing most recent stories in said category (eg. so a post categorised in ‘TV’ would only list posts also in the ‘TV’ category).
You have the option for that – ‘Recent Posts’ and then changing the visibility. Trouble is it doesn’t seem to work. I tried ‘Show’ ‘TV’ but the result is still the most recent posts across all 7-8 categories. I tried ‘Hide’ and selected all the other categories – same result.
In terms of suggestions for future editions:
1. ‘Dark’ color scheme. Not every site uses white backgrounds, some of us like our black and/or grey ones. An option to swap the color scheme between them would be great.
2. More ‘Blocks’. Five’s just not enough, especially as many are quite similar. Any chance of a ‘Block 6’ made entirely of ‘Module 5’ and a ‘Block 7’ made entirely of ‘Module 9’? Is there a way to build our own custom blocks?
3. Increased color options. I work on a site with seven or eight different categories. I love that I can adjust the colours of the tags and some headers to assign a specific color to different categories but can this go further? Can this apply to elements such as the color highlight in main menu, the widget sidebar headings, and the big slide titles, etc.
4. Minimised author option. Right now in posts, the only way to see the author is to include the great big honking ‘Author’ box down the bottom. Any chance of an option to change it so instead the author’s name only appears in a line of text at the top of the post – between the category listings and the publication time (like it is on the category pages)?
5. A third header style. Right now there’s a thin line underneath writing with no background (style 1), or a thin line with a raised colored background behind only the writing (default). Any chance of a raised colored background across the entire line?
6. Gallery pictures – along with attachment page or direct image, any chance of a css-only lightbox style popup option so when someone wants to see a bigger picture in comes up in a closeable box?
7. Category Pages – For those of us with a LOT of articles – in some cases over 10,000 in one category, ways to sort the order of a content are a must. Current category pages list only from the most recent to the oldest. Any chance of a way to list a categories stories in alphabetical order and jump to a specific letter?
7. More AdSense boxes – specifically a secondary sidebar one. A lot of sites use a 300×250 AND a 160×600 or 300×600 further down in their sidebars.
8. Love the various styles in the ‘Social Icons’ widget, much more than the fairly ordinary design of the ‘Sharing’ options in the posts themselves. Any chance of the latter to be more like the former?
@mehedi
yes, I use BBedit on Mac and TextPad on PC, as my text editors, but basically you can also use notepad (not wordpad), or whatever the plain text editor on Mac is these days (I always want to say simpletext).
SO: create new blank text document with same name as the file you plan to minify (filenameXYZ.js), put into a folder or wherever you store stuff on your computer, and leave it open …
THEN, open the file from Newspaper theme folder you want to minify in text editor, select all (CTRL+A) and copy and paste into the minifier site, apply – then copy the minified text into your blank document then save. FTP up the minified version to over-write the original in the theme folder (you should have backup, or your themeforest install as backup obviously).
So, you’re replacing the original *.js file in the theme folder with your minified version.
Easy. Certainly there are plugins that might work for you, too, but I’ve not used one lately so can’t suggest best one beyond the discussion in the pagespeed topic.
Reload your page. If you’re caching the js files obviously you need to clear cache. Both on site if using cache plugin and in your web browser to see changes.
Remember you would need to do this each time you update the theme. But it really takes under a minute to do, for those who need it done. Try it.
====== OTHER OPTION =========
if you’re using my pals in Canada at Gossamer Threads, aka “GTMetrix” — a great tip many people entirely miss is that you can run a page score on your site, and it will tell you if CSS or JS need to be optimized BUT THEN IT WILL GIVE YOU LINK TO DOWNLOAD OPTIMIZED VERSIONS!!
Go here: http://gtmetrix.com/
put in your site URL, or a “post” URL – then under stuff to fix it will have section on JS optimization, open little sub box, and it will show you files which “should be optimized” and will have little text link next to each one. Download/save the optimized version, upload via FTP, and done.
-
This reply was modified 12 years by
simchris.
@enemyborat
glad all my little rantings are helping somebody 🙂
“fonts and FOUT” Subject is top of mind for me at the moment as I’ve been toying with the difference between loading Open Sans off the Amazon CDN (where was able to compress the stylesheet more than the Google version is, for those who’ve run into that item on GTMetrix for scoring; meaning I basically am loading a minified and optimized version of the Open Sans font stack off the Amazon CDN for better performance/rating), vs just loading from Google directly. I get FOUT on my page right now with the CDN, and sometimes IE won’t load Font Awesome off the CDN at all (even with proper CORS rules) – whole ‘nother topic of pain there. Gave up and am loading Font Awesome 4x off our own server since IE 11 just randomly doesn’t load it and then all my icons are blank spots.
Anyway… “right now” if I go to a test page for site redesign (NOT using WordPress btw), I see moment of “italic” font then regular font. IE will load the italic font first for some reason so I see FOUT from italic to normal font. Stupid stuff (damn IE!!!).
I’m actually hoping to use the Google font CDN, and then the upcoming stable version of mod_pagespeed has a nifty feature where it will inline only the needed CSS for the browser being used.
So, for example this page …
http://www.send2press.com/clients/testimonials_2008-2012.shtml
I see a FOUT in IE11 on Win7/64 with a 32GB RAM machine on a 85mbps FIOS fibre connection. Page loading on dedicated server in Class A datacenter (Softlayer/IBM) with common elements like logo and main CSS coming off the CDN. Blah blah. Meaning, it’s not loading off anything with slow load times.
Starting to just “live with it.” Annoying as hell, though.
(argh)
Browser “should” cache the CSS on second page view. I have my cache in browser set to clear on close so I can re-suffer the view of a first time visitor EVERY time. Hence the annoyance can really annoying. Google “FOUT” to see the couple of years of whining by others, if one cares to. 😉
This may not be specific to your issue, but FOUT is a common issue with the trade off between fancy fonts and page load/speed.
This is called “flash of unstyled text” (FOUT) and is a common issue with using Google Fonts (etc.), as they are loaded from someplace other than your own site/server. SO, often the page starts to load, uses browser fonts, then the fonts load from external source (e.g., Google CDN). This is somewhat unavoidable if you’re going for maximum “pagespeed” as not everything can load at same time even when async or using the speed booster beta plugin; many times the loader for such fonts is deferred and moved to bottom of page to allow “above the fold” content to load quickly for a better pagspeed rating — such as with Google PageSpeed Insights).
Often something is slowing page down like a plugin, too large image, or similar, and this “holds up” getting to the font loading.
Solutions typically
1) change order of font loading
2) switch to web-safe fonts only
3) if using CSS over-rides on style sheet embedded in page AFTER main style loads, better to edit style sheet if there is measurable delay between the default style loading and the over-ride (meaning if main style is at 48 and your over-ride is 40; then the 48px still loads first, and then gets over-ride – by not doing over ride and editing core file, it starts at 40px to begin with).
FOUT isn’t too terrible, but it can be annoying.
Some of the above may be only informational to your issue, but I’ve been learning to live with this on some of our sites for better speed.
@Marius, i’ll give that a try. Thanks!
Another question. I’ve been trying to use the ‘Article Bottom Ad’, which displays below the post where the Similar Articles are (correct?). It’s not an Adsense code, it’s just a simple link and image. I’m using the code you provide but it isn’t displaying. This is what im using (but with my link and image of course).
<div class=”td-visible-desktop”>
</div>
Is there something I am missing here?
@Radu, I’m not using Google Adsense. I have another ad network I would like to use for this.
Dear Support,
I’m trying to ad a AdSense Ad to my header.
In the support video on how to do this it seems quite easy, but as i mentioned in my earlier question, It’s done in the new/other lay-out of the theme customizer control panel of newspaper.
When i go to wordpress dashboard>>appearence>>theme customizer>>Newspaper Ads>>
And then paste my adsense code into the ‘top ad spot code’ with out chanceing any of the already default filled in options. A White space appears in my header without the Ad itself.
What am i doing wrong?
Why can i only choose ‘text ad spot’ at ‘top ad spot’?
what does show ad after certain paragraohs mean?
what does ‘inline’ ad spot mean?
I’ve also tried to input my ad at the Theme options>> Ads’ & ‘Google Asense’.
What should i input into the Desktop(1200px+) window?
And should i pick Synchronous or Asynchronous? (at google adsense i chose Asynchronous)
Hope you guys can help me..
Thanks in advance,
Shanon
I am writing here about another problem with the ad.
On our website http://www.finansosfera.pl/poradnik-finansowy/inwestycje-alternatywne/
In the header of the ad is not responsiv- is always small.
The text should be after 3 paragraph, but it is not.
Only jedenj category appears eg http://www.finansosfera.pl/wiadomosci/rewitalizacja-dworca-w-pocku-w-ramach-inicjatywy-jessica-6548560/
But also as small.
Can you help us? in version 2 worked.
http://browsershots.org/http://www.finansosfera.pl/poradnik-finansowy/jak-pozbyc-sie-dlugow/
-
This reply was modified 12 years by
AQQry.
@stefan I love the theme, responsive and all. I just don’t want to use another plugin to manage ads when my theme has the potential for an amazing ad system
Hi,
can you give me a url to your site? I’ve tested the ad system on safari on mac and everything seems to be ok.
We will assist you with this issue until it’s solved so don’t worry. Sometimes there are incompatibilities with other plugins and such.
~ Radu O.
Since this is a responsive theme the new ad system solved everything for me – works perfect – just choose responsive Google adsense and everything adapts
For other ads use the plugin Adrotator and use shortcode to place your ads wherever you want
Most of the issues with social sharing are issues with the actual social media sites and their code which must be loaded by the theme to do things like “call” number of likes — that isn’t done by the theme. So, some things are impossible to “optimize” as they are not PageSpeed friendly. This also includes AdSense, ReCaptcha, YouTube, etc.
“the best social sharing codes” are those provided by each social media outlet with async loading; but the elements are still loading from that other site which you have zero control over.
For best PageSpeed you would need to use something like a single pill button from AddThis, or create locally hosted icon images which only “post” to the social media sites and have no interaction such as showing number of likes/shares — all that data coming from those sites like Twitter, FB, and G+ will cause PageSpeed issues.
Just some info on that. I’ve spent a ton of time on this issue and there is no perfect solution, unfortunately.
I did. Thanks. I found the way to get rid of the icons (fixing my original problem. Now the visual composer won’t work. I use Chrome and Firefox to edit the pages and posts. When I use Chrome, Visual Composer won’t go past the “Loadin, please wait. . .” stage and when I use Firefox, the plugin loads after a long time and after it does and I edit the posts, the save button won’t work.
Should I close this post since my original problem was fixed and create a new one for the other issue?
Thanks.
In your own tutorial: https://forum.tagdiv.com/ads/
There you mention the possibility of custom ads. This is what I really need.
The other ‘custom’ spots you mention are not so custom. They have a fixed position.
For instance there’s only 1 sidebar option now. I used to have different ads for different pages in the sidebar. Also I used a 980px ad on the homepage, just the homepage. Now it’s one which is used in all posts after 2nd paragraph.
Perhaps I don’t fully understand your new ad setup… please explain then. Otherwise please provide an option to add custom ad spots.
Thanks!
Yes I do have other plugins.
It seems that the css was loading my custom theme options settings after the default css was already visible for a second. Not sure if that makes sense.
I added the top nav bar, and the main nav bar colours to my child style sheet so the effect is hidden. (i.e.. nav bar starts blue instead of grey so we don’t see it ‘change’).
Still on my home page – I see my headings change from a large font down to the smaller size chosen when the page loads. I imagine the same solution will work – but this means I am bypassing the admin theme panel all the time now.
Hello Radu,
I’ll be using the normal image ad that the theme provides for. So i will appreciate the two ad codes for the header. one on the left of the logo and the other on the right.
Google Adsense is not a priority, only a plus if you can find time to hack it up for me.
Regards
Effiong
It’s in themeforest’s queue 🙂
The new ad system
( please escuse the english… and quality, Radu A. will get better at this 🙂 )
http://www.youtube.com/watch?v=OYCUHzcrUeU
Panel tour
http://www.youtube.com/watch?v=OzUa-_FtsGw
The full update list
In this update we invested a lot in the user experience, back end of the theme and overall quality of the code. After 415 code commits to our source, this is the biggest update yet to the newspaper theme. Even with the added features the theme is faster than ever due to our WordPress Booster framework and a lot of code improvements.
* New panel
* New intelligent ad system ( you have to see it live to understand how easy is to use )
* New setting to allow disabling of ads on each device type
* New documentation
* New ad spot at the top of the content
* New ad spot at the bottom of the content
* Added support for the AdRotate plugin
* Added offset support on all the blocks and on the loop templates
* Added an unique article system that makes sure you have unique articles on the homepage regardless of what template and blocks you use
* Added support for background click ads
* Tool to import the category settings from version 2
* New theme framework (WordPress Booster) – documentation about the framework coming soon
* WordPress booster – major fixes and improvements in the way it interacts with WordPress. We fixed all the incompatibility issues with most of the plugins.
* WordPress booster – 10% less memory consumption (We spent a lot of time in xDebug and memory profiling tools)
* WordPress booster – 15% faster (The framework dynamically loads only the needed code for each page and we take full advantage of WordPress object cache)
* WordPress booster – new category settings api
* WordPress booster – new advertising api
* WordPress booster – new settings api
* WordPress booster – new faster and smarter datasource api
* The security of the theme has been audited by us and improved
* We reorganized the theme file structure
* tagDiv Speed booster plugin V2 – It now works with google ads and with bbpress plugin
* New child theme that includes the WordPress Boster framework
* All the modules can we overwritten by the child theme
* More parts of the site can be overwritten by the child theme now
* fixed bbpress sidebar issues
* fixed sidebar issues on page template with the right sidebar
* fixed category background image problem when the theme didn’t had any other settings
* fixed category background color layout issue
* fixed bbpress style issue
* added footer text color setting
* added top menu text color setting
* added sub footer text color setting
* usability fixed small targets on mobiles, the theme has now a perfect usability score on google pagespeed
* fixed random appearing issue that affected the javascript of the page ( uniqid() function from php is not reliable ).
Thanks for availability!
Now it works correctly, it was a problem memory_limit
I have found other problems with the theme:
– The twitter counter reads 0 followers but are actually 414
Is a problem related to the theme?
– In the “Theme – options/Translation”, I can not change some phrases such as:
– “We’re sorry, but the page you are looking for does not exist.”
– “If you’re not happy with the results, please do another search”
– “No results for your search”
For all these sentences, insert the correct translation but when you save the changes back to the English language.
@Octavian
nice!!
I’ve been sidetracked the past week trying to sort out the random issues with Amazon’s CDN where randomly the font awesome CSS won’t load in IE11 or Firefox on Windows, leaving unstyled elements on our business site; and now the background for one sub-head divider won’t load the background image when using either ../assets/img/filename.gif or the full explicit URL in style sheet. Makes no sense. Went back to loading the FA2 fonts from our own server. Sigh. (This applies to our business site, not the magazine sites; the business site doesn’t use WP for main content, so a bit more flexible; pages are static to begin with so full page caching not needed, obviously.)
As to the WordPress stuff… we’re not using a true “page cache” yet, just the mod_pagespeed caching of page “elements” and not yet using a CDN for the CSS/JS. But this page is not bad; testing a typical article page sans a YouTube video or the AdSense elements but with AddThis in place to see how at least one “pagespeed stumbler” impacts ratings.
http://gtmetrix.com/reports/ga-ga.com/IyjAjIea
GPS: 97 (“A”) / YSLOW 90 (“A”)
Page load time: 1.29s
Total page size: 425KB
Total number of requests: 41
So, 1.29 seconds without page cache or CDN is pretty much not bad as starting point for us, which I could live with before the “next level.”
I’m not yet doing anything further until the new version of the theme drops from Radu’s magic labs.
Apparently for our WP sites, we’ll likely end up using “Varnish” on the server, to manage static pages locally, in front of mod_pagespeed, which peeps tell me is “how it’s done.” That is what is going to get the pages loading in the sub-second range. I may retry the caching plugins for WP to save local copies as I think mod_pagespeed can rewrite the pre-cache or post-cache copy, but still unclear on that. Not sure what Varnish will do to our ecom system or other stuff, so having enough fun with one thing before suffering another.
Great job on the speed!!! 🙂 YOWZZA!
-
This reply was modified 12 years by
simchris.
It actually loads faster than my other site with no CMS and 33% of the page size! http://screencast.com/t/f9rxWNJrfw0
Hello there.
First this is my page:
http://www.erco-entertainment.com
I have a problem with my footer. There are 3x 1/3 columns. But there are not centered. The “text” column (facebook example) is just a picture and it is div align=right and still not really on the right side. The blue lines are made in Photoshop and these should be the perfect areas for the columns.

Is this a bug or something? Should i search the code to optimize it by myself or is there a easier ways to fix this?
And i have a question how to delete the Headline of each page:

Maybe you can help me. Thank you 😉
Hi, the “next” pages work on both of my sites running theme with only the core set of plugins (no Jetpack!), plus using AddThis, AdSense ads, and no insert of ads in content (only header + sidebar).
Usually this “error” is from modifying a page, using a child theme with a bad addition to the functions file, or a conflicting CSS element from another plugin.
On one of my old themes, I also had another navigation plugin running from a prior theme and forgot to turn that off, and so it broke it.
Not sure if any of that helps. But it does work properly on both our test magazine site and a live production site (2004 site updated for 2014 with this theme) without any trouble, which implies a local issue vs a theme specific issue.
On another theme I found going to the admin > settings > permalinks and resaving the permalinks actually helped. Which is bizarre, but there you go.
-
This reply was modified 12 years by
simchris.