- NewspapertagDiv AMP Plugin Tutorial
- ApiPractical example – How to add a new Block and Module
- NewspaperTrack Subscription Sources with Locker URL in Opt-In Builder
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperCredit System
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperHow to generate Facebook App ID
- NewspaperHow to insert a block inside the content of a post
- NewspaperModal Popup
- NewspaperPayPal Setup
- NewspaperLink Tracker
- NewspaperLockers
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperAdd Cryptocurrency Price Ticker Widget
- NewspaperPosts Loop Element
- NewspaperThe Newspaper Mobile Theme: Introduction
First – I’ve looked at another thread here on the forum about Amp logo issues. I tried all suggested, make logo smaller and bigger and nothing works
Please advise how to fix
Second problem
This for example: The URL gets changed with the “Amp” added on the end. https://brandinginasia.com/2019-is-the-year-of-data/amp/
Take that link and put it on a desktop browser and it redirects to this old post here:
https://brandinginasia.com/amplifi-dentsu-brown/
Why does it do that?
Third problem:
This Amp page on mobile https://brandinginasia.com/2019-is-the-year-of-data/amp/ has a completely different layout than I have designed with cloud templates.
The footer is different, there is no sidebar to scroll to, the headline is different, categories, everything.
I have disabled the plugin until can get some help on these several problems.
Thanks!
Hello,
I am new to this theme and I don’t understand how to exlude one category from block grid 2 for example. As long as I understand I have to simply add, being 23 the id category, ‘_’23 or ’23’ in the multiple categories filter. None of the two solutions is working.
Could you please kindly assist?
Thanks in advance
Hi,
I checked a few posts again, they are all valid from what I can see at the moment
– https://www.screencast.com/t/9op9m0ahRa
– https://www.screencast.com/t/MlzxXesW
– https://www.screencast.com/t/VkE8XrTXqxfB
There are no more JavaScript errors, the posts pass AMP validation.
Apologies if this has been asked before. I searched through the forum archive but couldn’t find anything. How do I create a drop-down list of sub-pages under a non-clickable section? For example:
MORE —> sub-page, sub-page, sub-page.
How do I make “MORE” non-clickable?
Hello,
Thanks for the reply.
I used the code:
<?php echo human_time_diff( get_the_time(‘U’, $this->post->ID), current_time(‘timestamp’) ). ‘ ago’; ?>
on the modules and it seems to be working but for post older than 7 days, its still showing months and even years ago.
I have tried using the strtotime() function on it but there was nothing returned.
How can I only show the time ago if the post is not older than 7 days?
I must have had a small syntax error when I edited a text area on http://itresumewriter.com/ this morning & the site formatting messed up in the Pricing area. Unfortunately, I can’t fix it because TD Composer breaks with a:
Error at rows: 23(models) : 32(dom). The model does not match the content
error. How to fix?
Hi,
We have coding appearing on our live site and I’m not sure what to do about it. Can someone please give me some direction?
Example: [/vc_column][/vc_row][vc_row full_width=”stretch_row_content td-stretch-content”][vc_column]
Big grid full 1Please move this shortcode on a full row in order for it to work.
[/vc_column][/vc_row][vc_row][vc_column][vc_empty_space height=”36px”][/vc_column][/vc_row][vc_row][vc_column]
Hi,
If you choose an article from Mega menu for example:
Lifestyle > Health & Fitness > WordPress News Magazine Charts the Most Fashionable New York Women in 2018
“Lifestyle” is not highlighted
Cheers
Hi,
If you are using multipurpose or templates from cloud, those need to be load at the beginning of website, if you force them to load at the bottom is possible to get some errors.
You can try with other plugins if you want.
-> https://developers.google.com/speed/pagespeed/insights/?hl=ro&url=https%3A%2F%2Fatolyekariyer.com%2F&tab=desktop
Thank you for your understanding.
Hi,
I check you amp page and all is good ( you need to set the amp extension url )
on validatot -> https://validator.ampproject.org/#url=https%3A%2F%2Fsantavirgenmaria.com%2Fcomentario-del-evangelio-san-marcos-1046-52-catolico%2Famp%2F
amp post -> https://santavirgenmaria.com/comentario-del-evangelio-san-marcos-1046-52-catolico/amp/
Thank you.
Hi,
Surely this can be clarified. We provide in the theme package two page builders. The tagDiv composer which is created by us specifically for the theme
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
Also the WPBakery page builder, former visual composer. We recommend our composer, since many of the theme features will work only with it, or are designed for it. This is the case for the cloud library plugin for example
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
These two composers are provided in the plugins folder of the full theme package
– https://www.screencast.com/t/LTdkhiyulEr
Many of the theme plugins including the tagDiv composer can also be installed from the theme plugins panel here
– https://www.screencast.com/t/LTdkhiyulEr
If there is still a message mentioning that the tagDiv composer is not active, then maybe you have installed WPBakery and not the tagDiv composer. Please check again and let us know.
Thanks
Hi,
The tagDiv composer can handle theme elements such as blocks, grids and a few others. But if your pages contain specific WPBakery elements like masonry, accordion tabs etc these will not be rendered and they will appear as shortcodes, if WPBakery is inactive.
Also if you used custom row layouts as WPBakery supports for example, there may be problems with the layout.
Maybe consider making a copy or clone of the website (local or in sub-domain) and test there. Deactivate WPBakery and check what happens. This would be better than testing on the live website. Use the duplicator plugin for example
– https://www.shoutmeloud.com/migrate-wordpress-server.html
Thanks
Hello.
Since I have updated the newspaper theme this morning, the new Gutenberg WordPress editor it’s not working properly.
Some function are not available anymore.Example: custom size and color of the text,Paragraph function (only the classic editor is available)
Some functions are working but only with bugs (column function).
Thank you,
Cristina
Hi,
In order to achieve a round picture you’ll need to add a class on picture/image, and a custom css in Newspaper>Theme panel>Custom code>Custom css
.round-img{
border-radius: 50%;
}
You can change the number percent
Here is an example
https://www.screencast.com/t/kpXR7dCePvm5
https://www.screencast.com/t/vaTvrfwcrug
Results -> https://www.screencast.com/t/yO4ozKm5sn
In order to have a shop on your website you’ll need woocommerce plugin -> https://wordpress.org/plugins/woocommerce/
-> https://www.youtube.com/watch?v=L5sWnh3EkTI
Hope this will help you.
Thanks.
Hi, Ive followed every single step. Anyway checking with AMP validator… it shows me this:
https://validator.ampproject.org/#url=https%3A%2F%2Fsantavirgenmaria.com%2Fcomentario-del-evangelio-san-marcos-1046-52-catolico%2F
this is the link I checked… in the post editor.. says its ENABLED…
https://santavirgenmaria.com/comentario-del-evangelio-san-marcos-1046-52-catolico/
BUT THE TEST SAYS THAT ITS NOT…
Hello there,
There is no schema.org support for featured videos. I had to add myself and I want to share it with you. Maybe you’ll include this in the future releases and maybe others find it useful. Thanks.
First of all I suggest using a child theme to accomplish this otherwise you have to alter theme files and these changes might get lost in the next update. Copy under from theme folder to your child theme includes/wp_booster/td_video_support.php file (with folder structure). Change the render method with the one below;
/**
* Render a video on the fornt end from URL
* @param $videoUrl - the video url that we want to render
*
* @return string - the player HTML
*/
static function render_video($videoUrl) {
$buffy = '<div class="wpb_video_wrapper">';
switch (self::detect_video_service($videoUrl)) {
case 'youtube':
$buffy .= '
<iframe id="td_youtube_player" width="600" height="560" src="' . 'https://www.youtube.com/embed/' . self::get_youtube_id($videoUrl) . '?enablejsapi=1&feature=oembed&wmode=opaque&vq=hd720' . self::get_youtube_time_param($videoUrl) . '" frameborder="0" allowfullscreen=""></iframe>
<script type="text/javascript">
var tag = document.createElement("script");
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName("script")[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player("td_youtube_player", {
height: "720",
width: "960",
events: {
"onReady": onPlayerReady
}
});
}
function onPlayerReady(event) {
player.setPlaybackQuality("hd720");
}
</script>
';
break;
case 'dailymotion':
$buffy .= '
<iframe frameborder="0" width="600" height="560" src="' . td_global::$http_or_https . '://www.dailymotion.com/embed/video/' . self::get_dailymotion_id($videoUrl) . '"></iframe>
';
break;
case 'vimeo':
$buffy = '
<iframe src="' . td_global::$http_or_https . '://player.vimeo.com/video/' . self::get_vimeo_id($videoUrl) . '" width="500" height="212" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
';
break;
case 'facebook':
/**
* cache & oembed implementation
*/
$cache_key = self::get_facebook_id($videoUrl);
$group = 'td_facebook_video';
if (td_remote_cache::is_expired($group, $cache_key) === true) {
// cache is expired - do a request
$facebook_api_json = td_remote_http::get_page('https://www.facebook.com/plugins/video/oembed.json/?url=' . urlencode($videoUrl) , __CLASS__);
if ($facebook_api_json !== false) {
$facebook_api = @json_decode($facebook_api_json);
//json data decode
if ($facebook_api === null and json_last_error() !== JSON_ERROR_NONE) {
td_log::log(__FILE__, __FUNCTION__, 'json decode failed for facebook video embed api', $videoUrl);
}
if (is_object($facebook_api) and !empty($facebook_api->html)) {
//add the html to the buffer
$buffy = $facebook_api->html;
//set the cache
td_remote_cache::set($group, $cache_key, $facebook_api->html, self::$caching_time);
}
} else {
td_log::log(__FILE__, __FUNCTION__, 'facebook api html data cannot be retrieved/json request failed', $videoUrl);
}
} else {
// cache is valid
$api_html_embed_data = td_remote_cache::get($group, $cache_key);
$buffy = $api_html_embed_data;
}
break;
case 'twitter':
/**
* cache & oembed implementation
*/
$cache_key = self::get_twitter_id($videoUrl);
$group = 'td_twitter_video';
if (td_remote_cache::is_expired($group, $cache_key) === true) {
// cache is expired - do a request
$twitter_json = td_remote_http::get_page('https://publish.twitter.com/oembed?url=' . urlencode($videoUrl) . '&widget_type=video&align=center' , __CLASS__);
if ($twitter_json !== false) {
$twitter_api = @json_decode($twitter_json);
//json data decode
if ($twitter_api === null and json_last_error() !== JSON_ERROR_NONE) {
td_log::log(__FILE__, __FUNCTION__, 'json decode failed for twitter video embed api', $videoUrl);
}
if (is_object($twitter_api) and !empty($twitter_api->html)) {
//add the html to the buffer
$buffy = $twitter_api->html;
//set the cache
td_remote_cache::set($group, $cache_key, $twitter_api->html, self::$caching_time);
}
} else {
td_log::log(__FILE__, __FUNCTION__, 'twitter api html data cannot be retrieved/json request failed', $videoUrl);
}
} else {
// cache is valid
$api_html_embed_data = td_remote_cache::get($group, $cache_key);
$buffy = $api_html_embed_data;
}
break;
}
$buffy .= sprintf( '
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "VideoObject",
"name": "%1$s",
"description": "%2$s",
"thumbnailUrl": "%3$s",
"contentUrl": "%4$s"
}
</script>',
esc_attr( get_the_title() ),
esc_attr( get_the_excerpt() ),
get_the_post_thumbnail_url( get_the_ID(), 'featured' ),
$videoUrl
);
$buffy .= '</div>';
return $buffy;
}
For better indentation and readability see: https://pastecode.xyz/view/399f6207
Hi,
If you will check the above code, if you will change the 2 – 4 – 6 to follow another step like 1 – 2 – 3 you will bring the ads next to each other. Try this example, clear all the caches and check the results.
Thanks for your understanding!
Hi,
Please follow carefully our documentation for AMP -> https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/
https://www.screencast.com/t/3ebo4eBysKip
https://www.screencast.com/t/McF9blj8D
https://www.screencast.com/t/SUUgXzDK69
Thank you.
Hi @WebMasterhi,
What I mean is that on your example that page of category in order to have a line of category posts, one of ads, you can get a category Template from tagDiv Cloud Library
https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
You can edit the category template with TD Composer
https://www.screencast.com/t/dGXQN21Ww4Qx
https://www.screencast.com/t/QebUiMHvKdb
Hope this will help you better.
Thanks.
Hi,
1. If you use cPanel / WHM or Cloudlinux and your host use / upgrade to php 7.1 or 7.2 you can encounter problems with “thumbnails not showing (images)” because default EasyApache 4 via WHM do not install some PHP extensions as default (extensions that were installed in PHP 7.0 and earlier versions as default via EasyApache or Cloudlinux profile):
– php-mysqlnd -> Some WordPress websites will display this error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress and some websites not showing images / thumbnails. Especially if you use MariaDB version 10.2 (recommended by cPanel).
– libc-client
– php-curl
– php-bcmath (need if you use some form plugins who calculate the total)
– soap (if you have installed woocommerce)
When this extensions will be installed your website will have everything needed to work correctly.
Suggestion for tagDiv:
a. On Newspaper > System Status > PHP extensions you check only for mbstring & GD library and you should check for all PHP extensions needed as long as cPanel WHM / Cloudlinux, Directadmin, Plesk etc change often theirs policy with “default PHP” extensions installed when upgrades PHP version!
b. When a user has problems first, you need to request a System Status screen capture and check the PHP extensions installed!
2. If you use / upgrade to MariaDB 10.2 as SQL database and have problems due to some plugins / (themes) coded previously (older).
For advanced users!
“Upgrading to MariaDB version 10.2 will automatically enable strict mode and remove any existing sql_mode entries in the /etc/my.cnf. This is by-design due how MariaDB implements the change. After the initial upgrade to MariaDB 10.2, you’d need to manually add the following value under the [mysqld] section in the /etc/my.cnf file if you want to revert this change”:
Code:
sql_mode=NO_ENGINE_SUBSTITUTION
I hope my post will help some tagDiv members!
-
This reply was modified 7 years by
ursabit.
Hi,
Please regenerate the thumbnails, this is a guide
– https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Note that the images used as features should be bigger in order to allow the theme to create the necessary thumbnails
– https://forum.tagdiv.com/theme-thumbs/
– https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
So for example this image – https://mediterraneamagnagrecia.cocoproduzioni.com/wp-content/uploads/2018/12/7c62_12.jpg
That is not big enough to create most of the thumbnails the theme blocks and grids use.
If most of your posts use such small featured images, maybe consider using blocks that use a smaller thumbnail, see them all here
– https://demo.tagdiv.com/newspaper/block-1/
Or cloud library blocks with smaller thumbnails, these are all the designs at the moment
– https://affiliate.tagdiv.com/#/load/Blocks
Thanks
Hello. I indtalled your AMP plugin, I followed the tutorial steps, but nothing is happening… Also, looking to your tutorial video, when you edit a post in my site, there is no option to enable or disable AMP that post, IT DOESNT EVEN APPEAR.
Can you please help me… this is weird
Thank you
How can i center the image of the thumbnail
examples: https://mediterraneamagnagrecia.cocoproduzioni.com/
“folklore calabrese” & “dialetti calabresi”
I’ve setup a Newspaper theme v9.2 , While managing the wordpress, I’ve encountered ” internal server error” and sometimes, for example last time, when I tried to wipe out trash website goes down for about 20 mins. webpage shows only wordpress setup page.
Last time when I published a new post, I got “internal server error ”
what may cause this? I’ve configured php.ini as required by the way.
Thanks..
Hi,
I was wondering if there is an option to set up the css for mobile and tablet in the Newspaper Theme ?
Example :
H1 desktop = 30px
H1 mobile = 15px
Same for the content of a post, list etc..
Thanks.