- NewsmagRequirements for Newsmag
- NewsmagtagDiv Social Counter tutorial
Thank you. Yes Landscape view worked. Is there a problem with TD composer / cloud. It is EXTREMELY slow. I’m not sure if this is a TagDiv issue or my hosting — I’m using BlueHost. It was fine until 2 days ago and it became extremely slow one day after I updated to the latest version of Newspaper. Is there an issue with BlueHost and the latest Newspaper version.
I’m getting two error related to WPML and I’m not sure how to solve it.
Error 1
It states:
Notice: Undefined index: tdb_templates in /home/customer/www/<my website>/public_html/wp-content/plugins/td-cloud-library/includes/tdb_functions.php on line 489
At this line we have:
https://prnt.sc/v4wwwz
Error 2
It states:
Notice: Undefined index: tdb_templates in /home/customer/www/<my website>/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php on line 2844
At this line we have:
https://prnt.sc/v4x60t
Thanks for your help.
Hi,
If I understand correctly you want to use banner, for this you need to know that you can add theme using our guide from here -> https://i.imgur.com/CdzjKm3.png -> https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Now if you are using standard demo with standard templates, then you need to use the ads sections from theme panel.
If you are using a pro demo this is using cloud templates and it can be edited entirely with tagDiv Composer, therefore the ads can be set with this builder in ad box elements -> https://forum.tagdiv.com/custom-ad-spots/ now the ad box has 3 sections for ads: using theme panel ads -> https://i.imgur.com/KFa9ibl.png, using images/banners -> https://i.imgur.com/MfAPTaE.png and custom code -> https://i.imgur.com/2rh8SuD.png
Hope this will help you!
Hello Calin,
thank you for your instructions
I tried to follow your instructions …
But as you can see I have no footer templates to edit. https://ibb.co/W2T2Scc
Although I have prepared 2 footer templates from Cloud Templates…
https://ibb.co/4WsKwHQ
But the front page does not show any footer templates for editing.
So what now? What’s next?
Could you please help me?
Hello !
Yes, you can create a post template that can be assigned only to a specific category. First create the post template and add your ads in it: https://forum.tagdiv.com/design-post-pages-using-cloud-library-templates/ ; https://www.youtube.com/watch?v=fa7GenCHcBU&t=2s
After you have created the post template you can assign it to only one category as you can see here: https://www.screencast.com/t/Ec38yiJ0HikO
Thank you !
Hi,
Our theme alredy have this option:
“Recently I found an AMAZING plugin, which I wish you would have it build-in within your theme:
https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/” we have a similar option -> https://forum.tagdiv.com/posts-with-pagination/ this option can be use if you are using the classic editor or using the classic element from Gutenberg editor.
Also if you are using a single post template from tagDiv Cloud library, you can edit it with tagDiv Composer and set the infinite loading option on it -> https://tagdiv.com/infinite-loading-for-single-posts/
Let me know if this is what you needed!
Thank you!
Hello TagDiv,
how do I set the Featured image in Cloud – Single Post Template – Default PRO to display the correct size for video posts? Whatever I’m trying to set, it’s still square (https://litomericko24.cz/2020/10/11/ltm-pokus/) and the video also plays poorly on mobile phones (the image is cut off). However, if I have the basic settings of the template, then it is correct.
Thank you in advance for the advice
Lukas
Hi,
Thank you for your kind words!
1. This is because you are using a footer template from tagDiv Cloud Library, this can be edited only from frontend with tagDiv Composer.
2. That is a plugin conflict and appear only when you have enable WP Bakery plugin and you are using cloud templates from tagDiv Cloud Library or a pro demo, these can be edited only with tagDiv Composer.
Thank you!
Hi,
centumcellae.it uses wp 5.5.1 latest version of newspaper and all plugins are updated. It is an online magazine and has almost 70,000 posts (select count (*) from wp_post returns 69,700 or something like that)
It happens that when you publish, or to be more precise, a few seconds later in particular sometimes for several minutes the site is very slow both in the front end and in the back end and we see that there are from 4 to more than twenty sometimes queries as below
SELECT SQL_CALC_FOUND_ROWS wp_posts. *, wp_sticky.sticky_status
I don’t know if it depends on wp fastest cache (which deletes the cache after i publish a new post) or if it depends on newspaper (maybe it’s too heavy?).
the fact is that we added the code below to the functions.php which gives rise to a critical error of wp. How can I solve? Help! Thank you very much
if ( ! function_exists( ‘wpartisan_set_no_found_rows’ ) ) :
/**
* Sets the ‘no_found_rows’ param to true.
*
* In the WP_Query class this stops the use of SQL_CALC_FOUND_ROWS in the
* MySql query it generates. It’s slow so we’re going to replace it with
* a COUNT(*) instead.
*
* @param WP_Query $wp_query The WP_Query instance. Passed by reference.
* @return void
*/
function wpartisan_set_no_found_rows( \WP_Query $wp_query ) {
$wp_query->set( ‘no_found_rows’, true );
}
endif;
add_filter( ‘pre_get_posts’, ‘wpartisan_set_no_found_rows’, 10, 1 );
if ( ! function_exists( ‘wpartisan_set_found_posts’ ) ) :
/**
* Workout the pagination values.
*
* Uses the query parts to run a custom count(*) query against the database
* then constructs and sets the pagination results for this wp_query.
*
* @param array $clauses Array of clauses that make up the SQL query.
* @param WP_Query $wp_query The WP_Query instance. Passed by reference.
* @return array
*/
function wpartisan_set_found_posts( $clauses, \WP_Query $wp_query ) {
// Don’t proceed if it’s a singular page.
if ( $wp_query->is_singular() ) {
return $clauses;
}
global $wpdb;
// Check if they’re set.
$where = isset( $clauses[ ‘where’ ] ) ? $clauses[ ‘where’ ] : ”;
$join = isset( $clauses[ ‘join’ ] ) ? $clauses[ ‘join’ ] : ”;
$distinct = isset( $clauses[ ‘distinct’ ] ) ? $clauses[ ‘distinct’ ] : ”;
// Construct and run the query. Set the result as the ‘found_posts’
// param on the main query we want to run.
$wp_query->found_posts = $wpdb->get_var( “SELECT $distinct COUNT(*) FROM {$wpdb->posts} $join WHERE 1=1 $where” );
// Work out how many posts per page there should be.
$posts_per_page = ( ! empty( $wp_query->query_vars[‘posts_per_page’] ) ? absint( $wp_query->query_vars[‘posts_per_page’] ) : absint( get_option( ‘posts_per_page’ ) ) );
// Set the max_num_pages.
$wp_query->max_num_pages = ceil( $wp_query->found_posts / $posts_per_page );
// Return the $clauses so the main query can run.
return $clauses;
}
endif;
add_filter( ‘posts_clauses’, ‘wpartisan_set_found_posts’, 10, 2 );
WP 5.5.1
PLUGINS
AddToAny Share Buttons
AdRotate
Advanced Ads
BestWebSoft’s Like & Share
Custom Sidebars
Disable Gutenberg
Duplica pagina
Embed Plus for YouTube – Gallery, Channel, Playlist, Live Stream
Google XML Sitemaps
Jetpack by WordPress.com
ONE SIGNAL
Re-Add Text Justify Button
Really Simple SSL
Responsive Like Box
Restrict Categories
Simple YouTube Responsive
tagDiv Cloud Library
tagDiv Composer
tagDiv Newsletter
tagDiv Social Counter
tagDiv Standard Pack
the_excerpt Reloaded
Widget for Social Page Feeds
Wordfence Security
WP Migrate DB
wp fastest cache
WP-Sticky
YouTube Embed WpDevArt
PHP 7.4
wp 5.5.1
Server info
S.O. Linux webxc302s03.ad.aruba.it 3.10.0-862.2.3.el7.x86_64 # 1 SMP Wed May 9 18:05:47 UTC 2018 x86_64
Apache webserver
Php 7.4.8
MySQL 5.5.62-38.14-log
Hello !
That is because you are using a Cloud library header template as you can see here: https://forum.tagdiv.com/header-manager/
All the PRO demos and the cloud library templates are fully editable using tagDiv Composer.
Thank you !
Hi Yogesh1,
If you want to remove the date 1,2, 3 date from website you can use the general options from theme panel -> https://i.imgur.com/s7hCDue.png
Also if you are using a pro demo, these are using cloud templates and can be edited using tagDiv Composer, also the elements use are flex blocks and flex grids these can be edited using tagDiv Composer and apply these options individual -> https://i.imgur.com/36B31xz.jpg -> https://i.imgur.com/WFuLZkK.jpg
If there is something that is not clear or you have other questions, please let me know!
Hope this will help you!
Hi,
If you want to create a page as a blog (to have the latest articles), then all you need to do is to edit a page with tagDiv Composer and add the posts loop element -> https://i.imgur.com/8fTeE1r.png -> https://i.imgur.com/RaqSdOQ.png -> https://i.imgur.com/XlCunVy.jpg also you can edit it using the layout tab.
Another way is to set as homepage a blog, this can be done from WordPress settings -> https://i.imgur.com/oXAZF2x.png
If you want to set a static page, you can use our documentation from here -> https://forum.tagdiv.com/homepage-how-to-build-and-set-it/
Also you can download homepages and sections from tagDiv Cloud Library -> https://tagdiv.com/what-is-the-cloud-library/
Hope this will help you!
Thank you!
permalink solved. add (.)in category base cleaning category url n now work for category and sub category without “category” url.
if switch search with newspaper theme no tdcloud library gourmet search theme its work. if switching back to gourmet search theme just show last post
Hi,
Is there a problem with TagDiv TD composer / Cloud today Oct 20, 2020 … I can barely make any edits to my website because everything is taking forever to load in TD composer.
Speed is fine on WP – when I edit posts in WP, speed is fine.
It’s making front-end changes to the layout / design in TD Composer that is unacceptably slow. I can’t work at all at this speed and sometimes it keeps freezing and not saving my edits.
Hello, I have a problem in displaying the ads, following what is written in the documentation I have to put an all-devices div and put the advertising inside, the problem that I can not view it, in the second photo the company of the banners me said not to put them in a div but i can’t figure out how to do it. A solution?
article on my site that you can view the issue: https://www.fastnews.cloud/blog/azzolina-nuovo-dpcm-in-vigore-dal-21-ottobre-ecco-cosa-cambia-per-la-scuola/
this is the code that appears on my site from inspect element https://prnt.sc/v3s7dx
this form is what the ad company suggests to me https://prnt.sc/v3s98u
Hello !
That can be done either from Cloud Library as you can see here: https://www.screencast.com/t/DY2qkQqjQ7rW or by composer as you can see here: https://www.screencast.com/t/GhPYbGFF
Thank you !
Hello !
You cannot edit the Mobile Theme plugin. You can however now choose to design your mobile viewport templates as you can see here: https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/
Also follow this topic for more information about the new mobile templates: https://forum.tagdiv.com/topic/mobile-themes-cloud-library-v10-3-7-update/
Thank you !
Here my code in htaccess. is something wrong ?
And about cache, I follow newspaper guide (wp super cache)
# BEGIN SecuPress no_x_powered_by
<IfModule mod_headers.c>
Header unset X-Powered-By
</IfModule>
# END SecuPress
# BEGIN SecuPress readme_discloses
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*/)?(readme|changelog|debug)\.(txt|md|html|log)$ - [R=404,L,NC]
</IfModule>
# END SecuPress
# BEGIN SecuPress wp_version
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^readme\.html$ - [R=404,L,NC]
</IfModule>
# END SecuPress
# BEGIN SecuPress bad_url_access
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !wp-includes/js/tinymce/wp-tinymce\.php$
RewriteRule ^(php\.ini|wp-config\.php|wp-includes/.+\.php|wp-admin/(admin-functions|install|menu-header|setup-config|([^/]+/)?menu|upgrade-functions|includes/.+)\.php)$ [R=404,L,NC]
</IfModule>
# END SecuPress
# BEGIN SecuPress directory_listing
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
# END SecuPress
# o2s WpTiger Begin - Dont edit - Ne pas modifier - forceHttps
# Force le HTTPS
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# o2s WpTiger End - Dont edit - Ne pas modifier - forceHttps
# Activation du suivi des liens symboliques
Options +FollowSymLinks
# Protéger le fichier wp-config.php
<files wp-config.php>
order allow,deny
deny from all
</files>
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
ExpiresByType application/x-font-woff "access plus 604800 seconds"
ExpiresByType application/x-font-svg "access plus 604800 seconds"
ExpiresByType image/svg+xml "access plus 604800 seconds"
</ifModule>
# END Expire headers
<IfModule mod_deflate.c>
<filesMatch "\.(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
<filesmatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css)$">
Header set Cache-Control "max-age=2628000, public"
</filesmatch>
# Éviter que l'on découvre l'identifiant d'un auteur
<IfModule mod_rewrite.c>
RewriteCond %{QUERY_STRING} ^author=([0-9]*)
RewriteRule .* - [F]
</IfModule>
# BEGIN ShortPixelWebp
# Les directives (lignes) entre « BEGIN ShortPixelWebp » et « END ShortPixelWebp » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
<IfModule mod_rewrite.c>
RewriteEngine On
##### TRY FIRST the file appended with .webp (ex. test.jpg.webp) #####
# Does browser explicitly support webp?
RewriteCond %{HTTP_USER_AGENT} Chrome [OR]
# OR Is request from Page Speed
RewriteCond %{HTTP_USER_AGENT} "Google Page Speed Insights" [OR]
# OR does this browser explicitly support webp
RewriteCond %{HTTP_ACCEPT} image/webp
# AND NOT MS EDGE 42/17 - doesnt work.
RewriteCond %{HTTP_USER_AGENT} !Edge/17
# AND is the request a jpg or png?
RewriteCond %{REQUEST_URI} ^(.+)\.(?:jpe?g|png)$
# AND does a .ext.webp image exist?
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.webp -f
# THEN send the webp image and set the env var webp
RewriteRule ^(.+)$ $1.webp [NC,T=image/webp,E=webp,L]
##### IF NOT, try the file with replaced extension (test.webp) #####
RewriteCond %{HTTP_USER_AGENT} Chrome [OR]
RewriteCond %{HTTP_USER_AGENT} "Google Page Speed Insights" [OR]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{HTTP_USER_AGENT} !Edge/17
# AND is the request a jpg or png? (also grab the basepath %1 to match in the next rule)
RewriteCond %{REQUEST_URI} ^(.+)\.(?:jpe?g|png)$
# AND does a .ext.webp image exist?
RewriteCond %{DOCUMENT_ROOT}/%1.webp -f
# THEN send the webp image and set the env var webp
RewriteRule (.+)\.(?:jpe?g|png)$ $1.webp [NC,T=image/webp,E=webp,L]
</IfModule>
<IfModule mod_headers.c>
# If REDIRECT_webp env var exists, append Accept to the Vary header
Header append Vary Accept env=REDIRECT_webp
</IfModule>
<IfModule mod_mime.c>
AddType image/webp .webp
</IfModule>
# END ShortPixelWebp
# BEGIN WP Cloudflare Super Page Cache
# Les directives (lignes) entre « BEGIN WP Cloudflare Super Page Cache » et « END WP Cloudflare Super Page Cache » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
# END WP Cloudflare Super Page Cache
# BEGIN WPSuperCache
# Les directives (lignes) entre « BEGIN WPSuperCache » et « END WPSuperCache » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
# END WPSuperCache
# BEGIN WordPress
# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
<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
Hi expertek,
I think that you got it a little wrong!
There is no premium theme that can provide for any content over 90 speed, the page speed depends a lot of your content, if you are using small images and more text then the theme will be faster, also if you do not use the mega menu it will be more faster and so on. But if you want to have a nice website and an attractive one, then you’ll use different style and options, a lot of images, videos and most of text will be only inside the posts. When you do this, then you’ll need to use other methods to make the site faster, because the content became bigger. All these optimize can not be achieve using only the theme, therefore you’ll need a cache plugin, maybe a CDN and so on.
Here are some articles about this:
Why Page Speed Matters and How to Improve It
Page Speed
About PageSpeed Insights
Also you can make some tests: for example use only the theme without theme plugins, then you’ll have a simple theme like these free from WordPressn and you’ll not be able to do anything spatial, but the page speed will be quite good, after that activate tagdiv Composer and standard pack, install a standard demo and check again, then the last test disable the standard pack and activate the cloud template and install a pro demo. You’ll see that the more options and effects the theme has the speed will be a little lower and this is happen with all big/premium themes.
Thank you for your understanding!
I have three sites DEV, TEST and PROD. I have our logo in SVG format and wanted to use it in the Newspaper theme. On the DEV site I had also added the SVG plugin so I could add SVG’s to the media library. The TD Composer option worked as well by adding its text into the entry area. I then moved it over to TEST, which does not have the SVG plugin, Only the TD Composer and entered the text of the SVG into it and it worked. Finally, I was to add the SVG to the PROD site, which like TEST does not have the SVG plugin , only the TD Composer option. But every time I try to add the text of the SVG into the text entry and click save, it just leaves the save icon spinning forever, every time.
So my questions would be, what would cause only the SVG edit to hang , was doing a big menu modification and everything else worked with TD Composer by using the direct Page or Cloud Template editing. No errors are taking place, it just hangs and never save the SVG in the config text area?
Hi TagDiv Team,
I want to replicate the latest news from https://demo.tagdiv.com/newspaper_covid19_news_pro/
I couldnt find any module to do it. We search in blocks and big grid flex, but we couldnt find it. Do I have to use cloud to import it?
PD: Cloud Manager is showing this error: Invalid reply from server endpoint
Hi,
From Newspaper v10.3.3 was add a better support for WPML plugin -> https://i.imgur.com/vAjt3aG.png now you can set the header, footer, category and single template on each language in them panel, for this you need to use the translate for cloud templates -> https://i.imgur.com/Y99kgbB.png in this way on each language you’ll have only the templates made for that language, for example https://i.imgur.com/UJbzFFp.png -> https://i.imgur.com/TWZLxQZ.png -> https://i.imgur.com/CjsSkAC.png
You can duplicate a cloud template like this -> https://i.imgur.com/BLYyLc4.png after that you can edit it with tagDiv Composer.
In your case you need to do the same for 404 cloud template.
The second method is the classic one using the strings translate, this is more harder -> you need to use the this option -> https://i.imgur.com/59kl17v.png in order to use the string translate, for example for the header -> https://prnt.sc/rumozl and in WPML String -> https://prnt.sc/rumqn5 then you need to set the id of the header you want to be set for that language -> https://i.imgur.com/ghCu54I.png -> https://i.imgur.com/UAgVTC6.png -> https://prnt.sc/rumrbd
Hope this will help you!
Thank you!
Hi nawaz1983,
This can be done in two ways:
1. Use two tabs, in one of them you need to have the category cloud template and in the second one the search cloud template, then you should be able to use the right click to copy and paste that element.
2. Save that post loop as an element in tagDiv Composer -> https://tagdiv.com/right-click-menu-tagdiv-composer/ then this element will appear on cloud templates and pages where you can use it.
hope this will help you!
Hi,
Yes, almost all standard post templates can be found in tagDiv Cloud library.
If you are using standard templates and you only want to replace that word, you can do this from theme panel -> https://i.imgur.com/8CRCGQ1.png -> https://i.imgur.com/vlLgnLf.png
Hope this will help you!
Thank you!