- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
I used human_time_diff function to make time ago. I have used Module 15 every where.
Here is the code I used in td_module_15.php <?php echo human_time_diff( get_the_modified_time('U'), current_time('timestamp') ) . ' ago'; ?>
and removed the code <?php echo $this->get_date();?>
The problem is that time ago is achieved everywhere except single post listing. How to get time ago on single post listing.
Also for those who use Google, easy find:
http://osxdaily.com/2010/12/13/open-7z-files-on-a-mac/
How to Open a .7z File in Mac OS X
Follow these steps to open and decompress .7z files:
First you need to download Unarchiver (it’s free, you can also get it from the Mac App Store)
https://itunes.apple.com/app/the-unarchiver/id425424353?mt=12&ls=1
Launch Unarchiver and you’ll see a file association list, tell Unarchiver to associate with .7z files (you can select others if you wish)
Once Unarchiver is associated with the .7z you can then double-click any .7z file on your Mac and it will open and uncompress like any other archive format, or you can launch Unarchiver and drag and drop 7z files into the utility
Hi there, I really love your template,
here’s my question:
Is there any way to hide the page number buttons in multipage posts and have only “prev” “next” buttons?
example:
from: < 1 2 3 >
to: prev next
or: < > (without the page number buttons)
thanks in advance
paolo
For example, for me it shows:
© FWO. Advertise or contact here. Supported by the Fashion Week
Council.
I want it to show:
© FWO. Advertise or contact here. Supported by the Fashion Week Council.
Hello Bogdan,
I have cleared cache, disabled all plugins except VC and removed all custom css. However, the issue persists. (I have also checked in different browsers.)
Please take a look at this page in the section “Options you have to enable on CloudFlare’s dashboard”: http://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/ . There are two screenshots – and they both stick out to the right in exactly the same way my images do. There are more examples of this on the same site.
In your release notes for 7.4 you mention a fix for unaligned images. Could it be this fix that is causing this behaviour?
Thanks for your help.
BR, Walther
Hello, Google offers new Accelerated Mobile Pages (AMP) on mobile websites. Do you think to upgrade our Newspaper Mobile Plugin for AMP ?
Here some information about amp: https://webmasters.googleblog.com/2016/09/webmaster-forums-top-amp-questions.html
Hi,
After updating to 7.4 today, I have noticed that most of my images are pushed to the right about 10px, into the space between main column and sidebar. These are all non-aligned images.
This behaviour occurrs on VC pages (if image is included in text box) and on posts (not the featured image, though).
Two examples:
http://www.sverigetips.se/stockholm/ (a page)
http://www.sverigetips.se/lessebo-handpappersbruk/ (a post)
I have seen the same behaviour on other Newspaper sites as well.
This beaviour does not occur on pages without VC and on VC pages where the image is inserted in a “Single image” box.
Please let me know how I can get my images back into previous positions (as in previous Newspaper versions).
Thank you.
BR,
Walther
Hi
I tried to follow the guidelines and answers on this subject but I could not find a solution.
My problem is the following: I defined my homepage which uses a mix of big grid boxes (as in the theme examples btw).
The posts that I made have all featured images which are big enough to be displayed in any kind of blocks; and all the necessary thumb size are enabled in the theme panel.
example: Big Grid 5 requires 356×220 pics and the post has a featured image 452×600
only a grey area is displayed
I tried to play with thumbnail regenerate tool … no way
My homepage uses different blocks which are all displayed in same way some are either in grey, other in background color (white)
Probably I missed something.
thanks for your help
Hi,
Smart lists will igonre inline ads as smart lists have a different implementation than normal posts. Smartlists have their own ads.
Here is an example from a different topic regarding smart list 6:
Smart lists have a specific ad spot in the theme panel but the smart list 6 ad will not position below the pagination. If you want it to show below the pagination, you will have to edit the theme files to do it as there is no option in the theme for it. You can use this code :
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
And place it like so: http://screencast.com/t/zvRezg4R8rva Then your ad from ‘custom ad 1’ spot will show below the pagination. Unfortunately this will not be a 970 width ad if you use a sidebar because if you do, the main content area is only 696 pixels wide. There can be a large 970 px banner only if you remove the sidebar.
You can adapt the method from smart list 6 to your smart list 1 in this file:
http://screencast.com/t/ke2gPSa65
I hope this helps.
Thank you!
Hello Diego Acero,
If you want to add an ad above the Related Articles Block, please notice that you should edit the core file corresponding to post template used by you. For example, if you are using the post template default, you should edit the loop-single.php core file and you should add above related articles call your ad, as you can see here -> http://screencast.com/t/Pcr3cocHpd Also, please notice that our system Ad is designed to use only the Google Adsense. Fro more information about this regard, please consult our documentation here -> https://forum.tagdiv.com/newsmag-header-ads/ -> https://forum.tagdiv.com/newsmag-using-other-ads/
Please notice that the Taboola Ads is not tested with our theme and we cannot say for sure if this type of ad code will work or not with our theme, sorry! I have tested with our ads and seems to work as properly, without any problem but with your ad source, I do not know.
Thanks for your understanding!
Hey Awesome people,
Recently I noticed that the “ad codes” from zergnet is not working on any smartlists. So, I used the ad code under theme optional panel- ads- Article Bottom Ad ,
The should be seen at the end of the post like this: https://tomatoheart.com/hiya/ratan-tata-takes-reigns-tata-group/ but it doesn’t appear on any smart lists posts for example: https://tomatoheart.com/rishika/17-crazy-things-home-alone/
What’s the issue, where should I add these codes to appear university at the end of every post ?
Thank you
Hello,
The theme has a great social share for each post I make. I wanted to know if I can show the grand total shares for each post.
Here is an example of what I mean. It has a total count on the left.

Did you try doing it in custom ad box ?
https://forum.tagdiv.com/newsmag-using-other-ads/
Note some php code needs to run either inside or outside of WP loop, or might conflict with WP, or whatever.
In those cases, better to actually put the code directly in the template where you want it.
But TagDiv might have better answer. And probably would like to see example of “what” type of PHP code you’re trying to use exactly. [shortcode] won’t work, I believe.
I updated the older SSL/https thread also with code examples ! 🙂
See
https://forum.tagdiv.com/topic/moving-to-ssl/#post-140870
As an update to this older thread; most hosting providers worth their salt are now moving to support “https everywhere” initiative with free SSL certs for https via “Let’s Encrypt,” even on shared IPs. Note using this type of cert will mean OOOOOLD web broswers might not be able to access website at all since they can’t support modern secure standards — and, really, should NOT even be used on the web. SO, some kind of ‘sniffer’ to say “hey, dummy, update your browser to Chrome…” is worthwhile.
you should also add a block like so in your htaccess file above the #wordpress stuff…
e.g., (note; this example is using pretty permalinks with post name; so don’t use my wordpress code unless you want to; this is just example of how to put in the EXTRA stuff ABOVE the #wordpress stuff!)
**this presumes APACHE server.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
# 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>
ALSO: in your wp-config.php file, this is useful:
define('WP_HOME', 'https://SITEHERE.com');
define('WP_SITEURL', 'https://SITEHERE.com');
define('WP_CONTENT_URL', 'https://SITEHERE.com/wp-content' );
define('WP_PLUGIN_URL', 'https://SITEHERE.com/wp-content/plugins' );
define('FORCE_SSL_ADMIN', true);
Finally, in some setups you might find this more useful to put at top of htaccess than my first example — basically a slightly different way of doing it:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,QSA]
</IfModule>
*updated : Oct. 27, 2016 / 12:19pm PDT.
-
This reply was modified 9 years by
simchris.
Discover the cause, the search does not work.
It’s all in uppercase characters.
If the word in the text begins with an uppercase character only (proper name) in non-Latin (at least Russian language, as in my case) searching never find when looking for a normal letter.
For example, we were looking with you “Артур” – searching only “Артур”, but not “артур”.
With Latin characters is no such problem.
Is there any solution about?
ОК.
About Style-3 & Style-7
I just wrote a post on the site. Attached thumbnail, set the style-3. The picture will not be published. It’s only blue-black field. The image can be seen in the publication only if I reformat post in style 7. Other styles I have not tried, maybe there is a problem too.
Hello,
In order to create a whole new block to use in our theme you will require substantial coding skills. You will have to use the theme api system. Here is an example: https://forum.tagdiv.com/td_api_blockadd/
Please note that this is not covered by the theme support as it represents customization.
Thank you!
Here is an example.
website : http://www.storypick.com/ (same theme as we are using)
Dimension : REctangle (single column)
Title : This Photographer Stands For Hours On A Bridge To Take Mesmerising Photos Of Vendors
Please suggest me which block should I used .
we are using this to stop clickable images on desktop so what we use for mobile…
.td_smart_list_2 .td-slide-smart-list-figure{
pointer-events:none!important;
}
We added below also but same images are clickable on mobile…
.td_smart_list_mob_1 .td-slide-smart-list-figure{
pointer-events:none!important;
}
Please advice what to add to stop images to clickable on mobile and only BACK & NEXT will work..
-
This reply was modified 9 years by
lethow.
Hi!
Thank you for your prompt response!
The situation seems to be ambiguous. Some word search work, some do not. For example there are some articles that use Артур Халатов (this Performer), search for it does not give results (which in Russian), although a lot of posts, category and tag there.
Also faced with the problem – to post “style 7” miniature works above, the inclusion of “Style 3” – miniature missing.
Hello,
Adding a new sorting option will require coding knowledge though. Here is an example of a newly created sorting option in our theme so you can get an idea of what it involves: https://forum.tagdiv.com/topic/implemented-new-sort-most-popular-among-posts-of-last-7-days/
I hope this helps.
Thank you!
Hello,
In order to know where to edit the code you must first figure out what that element is. it is a block. Blocks use modules as 1 block is made out of 1 ore more modules. In order to figure out which module is that, you can either use the browser inspector or the theme panel category tag list here: http://screencast.com/t/CxcUgpioMHis
Once you identify the module used, you can edit it;s code. For example if I want to modify module 1’s category tag, I would access this file: http://screencast.com/t/tvijQiZJxeTy
You can then use css to target the category tag and position it properly (after you modify the code)
I’m not sure what you mean by replacing the date on the social share links…please provide more details to what social sharing options do you mean and what date are you referring to.
Thanks.
I can adjust the font for h4.block-title, but not the font color or line height.
Example:
http://ea1.a87.myftpupload.com/
“Runway Reporter”
h4.block-title {
font-family: agxlt;
font-weight: 200;
font-size: 50px;
}
I’ve been at it for about an hour now.
Any ideas?
Hello,
After the latest theme update, we’ve run into problems with up & down arrows. They just stopped working as you can see at: http://uzr.com.ua/test-drayv/supertest-novaya-kia-optima-protiv-treh-konkurentov/
The “Down” arrow in the middle of the header graphics and the “Up” arrow on the bottom right-hand corner.
Please assist.
Thank you