- 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
Hi,
Quite unusual, there is a condition in the AMP plugin preventing this from happening
– https://www.screencast.com/t/kdNqCoxN9ln
Only by removing this condition would this issue occur. So there would be no relation between attachment pages and AMP, the amphtml link should never appear in attachment pages. I made tests on my end and this is not happening.
Thanks
Thank you for your suggestion,
but is it possible to put overly menu on your templates from Cloud library, example you can see on link umfmostar.ba ( template 404, also i have Author Template 2, Date Template 2… ) and is it possible to put it on posts?
I wont to have overly menu throughout my entire page. Is it possible?
sorry for bothering you
thank you for understanding
Hi,
There should be no such space, the header logo should be from top bar to main menu, no extra space above or below the image. Just like this theme demo which uses header style 10
– https://demo.tagdiv.com/newspaper_cars/
Maybe check with the browser inspector, right click the respective spaces and click inspect. Could be some indication where that padding or margin space comes from.
To the left and right it would depend on the size of the image, the image will be displayed as it is. So a small image on a large display for example, will not be stretched to be full width.
Thanks
The code I provided above will hide the sticky menu for devices above the specified width, so it will be visible only on phones for example.
The code you mention will work for widths below 1141px. It will be visible in other cases.
Visible – http://prntscr.com/lxt5t7
Removed – http://prntscr.com/lxt60n
I came across this thread because I was looking for the same solution.
I have a set of categories I would like to “hide” from showing on posts (via theme settings), including the “Featured” category, and I noticed that these categories were being shown on AMP pages.
The solution is VERY easy.
Modify the “single.php” file under plugins > td-amp > templates:
Where it says:
<?php require_once('categories.php'); ?>
Replace that with:
<?php echo $td_mod_single->get_category(); ?>
Be aware that this will affect your CSS settings, so make sure you change “post-categories” to “td-category” in your CSS. And voila!
For some reason Google search console randomly gave me error 503 for AMP pages
I checked the error log and the said me issue in file d_util.php:1382
1381:foreach ( td_fonts::$font_names_google_list as $font_id => $font_name ) {
1382:$list[$font_id] = $font_name;
1383:}
Have no idea why it happened :/
I use nginx with php7.0 and fastcgi like a proxy for php
this problem came back again. and overturned on top.
tagdiv AMP: 1.3 | built on 12.12.2018 11:28
Themes: Theme version 9.2.2
Maybe the ACF code you use is not correct. Check through their documentation, verify it and experiment more
– https://www.advancedcustomfields.com/resources/code-examples/
– https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/
– https://www.advancedcustomfields.com/resources/get_field/
– https://www.advancedcustomfields.com/resources/the_field/
Hi,
Please give me an example were in source is h3 and in frontend is not
https://www.screencast.com/t/yzCmUaQd
Thank you for your understanding.
Hello,
I want $td_mod_single->get_category() used in single_template_x.php to not show a category.
For example: post has Cat1, Cat2, Cat3. Single post template should not show Cat2 in the header.
I’m using a child theme with Newspaper 9.2.2.
Thank you.
Seems to work when I test the ID – http://prntscr.com/lxfdis
Try as a test to change the ID, use cocacola for example. If this provides a result, set your ID again.
In case there is still a problem, please send us an email at contact@tagdiv.com and provide admin login so we can take a look. Include a link to this topic in the email.
Hi,
I just try with your video example and is work
https://www.screencast.com/t/2R3luxRN
-> https://www.screencast.com/t/NB9sjrupNP
-> https://www.screencast.com/t/Fdb9KUNg
-> https://www.screencast.com/t/xIWWIFcxlO
Please go in one post with feature video and set again the feature video and click on update, if this is working, please use -> Thumbnails – Fix strange looking images on blocks -> https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Thank you.
I am on WordPress 5.0.2 & Newspaper V 9.2.2
Site lastdna.com can not display feature images on mega menu and author images in single post.
Please give a solution to this problem.
P.S.: I have disabled lazyload animations.
I have purged and reset all the caches from plugin and CDN.
Dear support
I would like to download the TagDiv AMP Plugin but it’s not on the “premium plugins” page of my Newsmag theme panel.
Where can I download it?
It might be because the theme is quite old (I bought it 1 year ago); if this is the reason, how can I get it?
Thanks in advance for your support.
Andrea
Hi,
Seems you get low scores on gzip compression, they recommend this solution
– https://gtmetrix.com/enable-gzip-compression.html
But you could contact the hosting provider and check if they have a different option, or can provide some assistance as to what would be best.
For example in our case we use the code mentioned here
– https://forum.tagdiv.com/how-to-make-the-site-faster/
Also minify the CSS, do it as suggested here for example
– https://forum.tagdiv.com/topic/tip-how-to-easily-minify-your-css-without-breaking-your-site/
– https://www.screencast.com/t/0g2we4jc
Some of the images provide a 404 investigate why that happens
– https://www.screencast.com/t/xt2HOWKn3u
So basically try and fix as many issues as possible, that will improve website performance.
Thanks
Hi,
When a smart list is created in a post, the article ads will not be loaded. Meaning top ad, inline ad and bottom ad.
Some smart list styles have a dedicated ad spot in the theme panel
– https://www.screencast.com/t/ulEiXrsix
For example styles 6 and 7 display the ad like this
– https://demo.tagdiv.com/newspaper/whitewater-rafting-day-trip-new-york-east/
– https://demo.tagdiv.com/newspaper/10-landscapes-wont-even-imagined-exist/
Using smart list style 1 or 2, the only way to display an ad after the smart list, would be to maybe enter the ad code directly in the post content after the end smart list shortcode (if using predefined post templates).
Thanks
Hi,
Please make a post were you insert some content ( text) with the default editor, and try to see that post if pass the validator.
Please make one more test, please deactivate all plugins and let only the AMP, clear all cache and try again.
Yes you can use others AMP plugins if you want.
Thank you for your understanding.
Those are both WordPress galleries, not affected by the theme, in terms of thumb used or it’s size and cropping.
In the second example you must be using the thumbnail size of the images
– http://prntscr.com/lxb2yu
Using a larger size there would create a different result. Comparison for the two galleries, with bigger images selected in the classic editor gallery (medium)
– http://prntscr.com/lxb427
WordPress crops the images if set here – http://prntscr.com/lxb8aw
So if the cropping is on there, and the thumbnail size is selected, on default settings the gallery will show images of 150x150px cropped.
The gallery in the Gutenberg gallery further applies cropping to ensure even images
– https://gogutenberg.com/blocks/gallery/
This is how I see it, I could be wrong in some aspects however. Haven’t made that many tests with WordPress galleries.
Hi,
You need to set an echo with ” in order to make the code to work, just like this:
https://www.screencast.com/t/T9RqNgLMasWG
echo '
.td-logo amp-img {
left: 50%;
transform: translateX(-50%);
}
';
Thanks.
How to add table design like this https://snag.gy/RZdDgS.jpg
I will be appreciated if you can give a example code.
Thanks you very much.
Hi,
I enabled tagdiv amp for my blog. Related post thumbnails are not shown on amp pages.
How could i fix it?
Regards,
Dear …..
We want to thank you because your NEWSPAPER is really very nice and flexible.
We need to ask you for advice.
According to you it is possible (working on the code and through the theme panel) to cover the headers / menus and submenus as the screens we have drawn.
There are 2 different submenus based on the buttons
Example: http://bit.ly/2rKkUaF
Our concern is having to face a situation and having problems with the possible updates you will make.
You can help us?
Thank you
Hi,
AS you can see here -> https://validator.ampproject.org/#url=https%3A%2F%2Fwww.dronesinsite.com%2Fracing-drones%2Fdrone-controller-guide%2Famp
you have some settings set wrong.
Please make a test create a new post, insert a simple test inside id, and test to see if pass the validator, if not pass please deactivate all plugins, clear all cache and try again.
Is possible to be some wrong sets or some incompatibilities.
Thank you for your understanding.
Hi,
I checked the website you mention, the images are loading at the moment
– http://prntscr.com/lx0ck4
Please clear your browser cache and check again. Clear the website cache as well. The issues with the theme lazyload were fixed in version 9.2.2 so there should be no more problems.
What exactly is happening with the composer? Could be caused by insufficient resources
– https://forum.tagdiv.com/requirements-for-newspaper/
In this case the hosting provider should be able to increase them if needed. Note the code provided at the bottom of the guide, that code fixed composer issues in many cases for example, once entered in the htaccess file.
Let us know if there still is a problem.
Thanks
Hi,
You need to search something on google from your post, like this
https://www.screencast.com/t/byoCRxWbt
Here is your AMP page -> https://istandist.com/azimli-ve-istikrarli-sekilde-uretmeye-devam/amp/
Thank you.