- 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
Yes, we use a mobile page. okobserver.org
—
Screenshot:
https://www.dropbox.com/scl/fi/id13mdmw5n6n23o8qpez0/2024-03-20-Screenshot-from-mobile.jpg?rlkey=6uycw3q59mj0v1ustuo2b3mvm&dl=0
—
The header background color is showing as black rather than blue like the tagdiv editor shows.
Hello @kharondev!
In that guide are presented also the settings to change that aspect ratio by percentage(for example in the flex block 1).
Also, you can create custom modules: https://forum.tagdiv.com/modules-builder-newspaper-theme/
Thank you!
I actually don’t have an issue with image size. In the module, the image is already positioned in 4:3, and I can’t use 16:9. There’s an example in the link.
EDIT: The situation I’m talking about is already visible in the link you provided with this statement: ‘On the Newspaper theme some modules have a 16:9 aspect ratio, while others have one closer to 4:3.
-
This reply was modified 2 years by
kharondev.
Hello @kharondev!
Check this guide for the default blocks: https://forum.tagdiv.com/theme-thumbs/
If you use Flex Block 1, for example, or a custom module, then you have the possibility to set the sizes for every module image.
If you upload an image that is smaller than your size from settings, then this could appear blurry and not of high quality. I suggest you upload the images in your Media Library in full size (1920 px): https://prnt.sc/YzxtrT24bGKM
Thank you!
Hello!
We have 3 options available for mobile versions that you can use:
1. Responsive version: A responsive version of your website looks similar to the desktop version. TagDiv Composer is used to edit the page.Click on the mobile viewport: https://www.screencast.com/t/XDQJedlggSB. There, you can see your mobile version and edit or adjust the elements to look better.
2. Mobile pages: https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages
3. Mobile theme plugin: The Mobile Theme is a performance-optimized theme included in the main Newspaper theme that only loads on mobile devices. It comes with its own templates and designs for pages, posts, categories, etc., so your current templates from the desktop theme will get converted to the mobile theme layout. Please see https://forum.tagdiv.com/the-mobile-theme/ and https://forum.tagdiv.com/mobile-theme-introduction/ for more information.
A full explanation is here: https://www.youtube.com/watch?v=SpGkOnJeNZY
If you need to use mobile version 1 or 2, then you need to uninstall the Mobile Theme plugin and AMP.
You can use it on any version you like the most because you will add the content in Gutenberg.
Thank you!
There’s a lots of request made to the SQL Database requested at the same time thus rate limiting issue is happening on the site.
WordPress database error MySQL server has gone away for query SELECT post_id, meta_value FROM 3cEugTXx_postmeta WHERE meta_key = ‘_wp_attached_file’ AND meta_value = ‘https://noticiasnrt.mystagingwebsite.com/wp-content/uploads/2022/01/BackS-300×169-1.png’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, cnfp_template_redirect, include(‘/plugins/colorlib-404-customizer/includes/colorlib-template.php’), get_header, locate_template, load_template, require_once(‘/themes/Newspaper/header.php’), do_action(‘tdc_header’), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, require_once(‘/plugins/td-composer/legacy/Newspaper/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, td_background->wp_head_hook_background_logic, attachment_url_to_postid
WordPress database error MySQL server has gone away for query SELECT post_id, meta_value FROM 3cEugTXx_postmeta WHERE meta_key = ‘_wp_attached_file’ AND meta_value = ‘https://noticiasnrt.mystagingwebsite.com/wp-content/uploads/2022/01/BackS-300×169-1.png’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/td-cloud-library/wp_templates/tdb_view_single.php’), get_header, locate_template, load_template, require_once(‘/themes/Newspaper/header.php’), do_action(‘tdc_header’), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, require_once(‘/plugins/td-composer/legacy/Newspaper/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, td_background->wp_head_hook_background_logic, attachment_url_to_postid
One thing we’ve identified is that the Newspaper theme is making some very lengthy and expensive database queries that slow down page loads and may be contributing to elevated SQL CPU usage.
For example, on the homepage the Newspaper theme runs the following code.
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/td-composer/legacy/Newspaper/page.php’), get_header, locate_template, load_template, require_once(‘/themes/Newspaper/header.php’), do_action(‘tdc_header’), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, require_once(‘/plugins/td-composer/legacy/Newspaper/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, td_background->wp_head_hook_background_logic, attachment_url_to_postid
Which also executes the following query.
SELECT post_id, meta_value FROM 3cEugTXx_postmeta WHERE meta_key = ‘_wp_attached_file’ AND meta_value = ‘https://noticiasnrt.com/wp-content/uploads/2022/01/BackS-300×169-1.png’
This is a very expensive and lengthy query, especially on a site of this size.
In some cases, it might take over 2 seconds for that code and query to complete because it is not optimized and likely doesn’t have database indexes that would help speed it up.
it seems that the problem originates from the td-composer plugin. Would it be alright if I deactivate it temporarily?
PHP Fatal error: Uncaught Error: Failed opening required ‘/srv/htdocs/wp-content/plugins/td-composer/legacy/common/wp_booster/td_page_views.php’ (include_path=’/:.’) in /wordpress/core/6.4.3/wp-includes/template.php:790 Stack trace: #0 /srv/htdocs/wp-content/plugins/td-composer/legacy/common/wp_booster/td_autoload_classes.php(42): load_template(‘/srv/htdocs/wp-…’, true) #1 /srv/htdocs/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(111): td_autoload_classes->loading_classes(‘td_page_views’) #2 /wordpress/core/6.4.3/wp-includes/template-loader.php(106): include(‘/srv/htdocs/wp-…’) #3 /wordpress/core/6.4.3/wp-blog-header.php(19): require_once(‘/wordpress/core…’) #4 /wordpress/core/6.4.3/index.php(17): require(‘/wordpress/core…’) #5 {main} thrown in /wordpress/core/6.4.3/wp-includes/template.php on line 790
Hello Alex!
1. Unfortunately, no.
2. If you have 2 blocks of Flex Block 4 there, then you can copy-paste the style (copy the entire style or only a part of the style, for example, copy style image) from the first block to the second one only if they are the same. You can select the element by right-clicking and choosing copy style, then click on the second block and paste the style. If you have only one block with 2 columns, then all the settings are already applied. Probably the images are not the same size; this could be possible.
There is a possibility to copy-paste the same element where you want. Also, you can have two pages opened in the tagdiv composer and paste them on the other page as well. You can save the entire element, give it a name, and when you open a new page in the tagdiv, the composer can be found in the shortcodes list. Just search after the name you give it, and you can place it where you want.
I hope that helps you!
Thank you!
Hello,
I want to create a link for my custom post and its taxonomies and show it on the front page.
https://ibb.co/vkZ81Gy
For example, I want to show all Roportajlar in front and show its taxonomies separately.
I hope I understand my purpose. I will be very happy if you help me.
Hello,
I want to create a link for my custom post and its taxonomies and show it on the front page.
https://ibb.co/vkZ81Gy. For example, I want to show all Roportajlar in front and show its taxonomies separately.
Hi Bettina, thanks for update!
No problem for old data, actually it seems all want to have
popular in a latest timeframe.
When use popular 48h for example, block will present
only posts from last 2 days or posts that have the most views
last 2 days but can be from last year fo example?
Also i noticed that caching from tagdiv composer such blocks does not work,
i set 30 minutes cache but i see at brosing that posts at block change inside the 30 minutes
Greetings.
Probing one of our websites, running Newspaper 12.6.5 with WordPress 6.4.3, we have found that there is a security vulnerability related to requests to wp-admin/admin-ajax.php with a td_ajax_loop action in which the property moduleId is altered with malicious content.
This vulnerability has seemingly been reported previously as CVE-2022-2627, but the report mentions that it has been fixed in version 12 of the theme which is not currently true.
Here’s an example on your own demo site:
The request:
curl -i -s -k -X $'POST' -H $'Host: demo.tagdiv.com' -H $'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0' -H $'Content-Length: 119' -H $'Content-Type: application/x-www-form-urlencoded' --data-binary $'action=td_ajax_loop&loopState[moduleId]=--><form><math><img+src=1><mtext></form><!--&loopState[server_reply_html_data]=' $'https://demo.tagdiv.com/newspaper_pro/wp-admin/admin-ajax.php?td_theme_name=Newspaper'
The (truncated) response:
HTTP/2 200
...
content-type: text/html; charset=UTF-8
...
<!--
Error: <strong class="td-wp-booster-title">wp_booster error:<br>td_api_base::mark_used_on_page : a component with the ID: --><form><math><mtext></form><!-- is not set.<br>/disk0/demo.tagdiv.com/newspaper_pro/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php (rara-error)
-->
...
Notice how the parameters sent via ajax are returned to the client unescaped, in particular the form with an img tag inside. And because HTML tags are not being properly escaped, combined with the fact that the Content-Type of the response is text/html, this results in the malformed request being reflected towards the client and rendered as HTML, which can be abused by a malicious actor.
Your error message handling attempts to safeguard this by adding comment indicators around the content, but that can be trivially manipulated as per the example above.
A possible solution:
In your td-composer plugin, the function error of the class td_util is responsible for dealing with this content. The following line:
echo '<strong class="td-wp-booster-title">wp_booster error:</strong><br>' . $message;
Can be changed to the following alternative, sidestepping the issue cleanly:
echo '<strong class="td-wp-booster-title">wp_booster error:</strong><br>' . esc_html($message);
Hope to see this resolved in a future update.
Best regards.
Hi there,
Struggling to find where I can adjust the font thickness for bolded text within a post/page?
For example, I want to reduce the thickness of the bolded text within https://www.hotelspeak.com/2024/03/how-gestalt-design-principles-can-help-improve-your-hotel-website/ as it’s pretty heavy.
Can you please help?
Thanks!
Hi,
WPML allows translating the whole page and everything in it. Basically you can create a page for each language, and simply change the block titles you mention.
For example, I have a page in English, with blocks in it – https://prnt.sc/w29R7nzz6_Vo
I translate the page – https://prnt.sc/K2BAozaOZbeF or duplicate it.
Maybe duplicating it would be best – https://prnt.sc/i-A8-UvU2mEY so you can change only what you want instead of building it again.
Then I edit the duplicate – https://prnt.sc/oHe8Ca36jSgp and change the block titles as needed, with the composer – https://prnt.sc/FztX1Wr3MpOE – https://prnt.sc/qkMVPZ82hTcz
So each language has its own page. When the language is changed, the page is changed.
No need for using string translation to translate block titles, just duplicate the initial page for each language, edit them, and change the block titles with the composer.
You could try it this way. Let me know.
Thank you!
okobserver.org Mobile menu not displaying correct color.
—
Screenshot of website on mobile phone: https://www.dropbox.com/scl/fi/id13mdmw5n6n23o8qpez0/2024-03-20-Screenshot-from-mobile.jpg?rlkey=6uycw3q59mj0v1ustuo2b3mvm&dl=0
Screenshot of tagdiv editor: https://www.dropbox.com/scl/fi/l6orq69izudth4nwzl90e/Screenshot-2024-03-20-12.49.00.png?rlkey=hzmju83irotxeopu5nxxdbkdz&dl=0
—
Header is supposed to be blue rather than black.
Can you please assist?
Thanks.
This function used to work normally, but recently I discovered it was faulty, it was working incorrectly.
I turned it off and on again many times but it still doesn’t work.
For example:
7-day popularity mode, which previously listed popular posts for 7 days.
It now accepts posts from newest to oldest, no longer sorted by popularity.
Please disregard the issue about landscape layout. I found it.
When you say “The mobile theme plugin is compatible only with the amp plugin from our theme.”, does that mean there’s an AMP plugin within the theme or is that another plugin? I’m not seeing a tagdiv plugin called ‘AMP’.
Also, when trying to activate tagDiv Mobile Theme, it does not activate. Do you need administrator login to troubleshoot?
Thanks.
I deleted AMP from the site. thank you for your attention.
Hello,
Usually the “Invalid reply from server endpoint error” is caused by insufficient WP_Memory_limit, if you’ll set it to 256M, and is still not working, please double it and check the rest of the settings from our guide -> https://forum.tagdiv.com/requirements-for-newspaper/ also make sure that you are using SSL and you have a good bandwidth, the one from our server is 1GB/s and the one that I use at home is 500MB/s, if you have low bandwidth, then you can access parts of the cloud, this can be done from the frontend, for example, if you are on a post -> https://i.imgur.com/4G74M7F.jpg or from tagDiv Composer -> https://i.imgur.com/2F6MhfI.png or from backend -> https://www.screencast.com/t/wekHmc7kJ8J
Thank you!
Hi,
Do you use the AMP plugin from the theme?
Thank you!
Hello,
You have the mobile theme plugin activated; please disable it.
Using our theme, you can choose from 3 mobile versions
-> mobile responsive => https://www.screencast.com/t/oJ2ShOp47
-> mobile theme plugin => https://forum.tagdiv.com/the-mobile-theme/
-> mobile page => https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/ The option that you need to use.
Suppose you created the mobile pages with tagDiv Composer. In that case, when you install the Mobile Theme plugin, your pages will be overwritten by the plugin (the mobile theme comes with its templates for page, post, category, etc, so your current templates from the desktop theme will get converted to the mobile theme layout, the page content is made without builders in mobile editor => https://www.screencast.com/t/xbgZG8kH also, the options that are provided to edit the mobile theme version are limited (this keeps the things simple)).
This is a video about Responsive Newspaper Theme, AMP & Mobile Theme, Mobile Pages & Templates -> https://www.youtube.com/watch?v=SpGkOnJeNZY.
So, the mobile responsive is what you see when that you select the viewport on phone => https://www.screencast.com/t/matV17hH, so some settings may apply for each viewport(where is the border blue), and others are not(where the border is black).
The mobile page has the mobile templates from Cloud Library => https://www.screencast.com/t/YCcZ8rL8
The Mobile responsive version of the theme and the mobile page editor can be edit with tagDiv Composer, the mobile theme plugin cannot.
For example, you can have the mobile theme plugin activated and use the mobile page/mobile responsive version for the homepage/pages, but for the categories pages/404 page, you can’t use the mobile page/mobile responsive version if you have the mobile theme plugin activated.
So, if you want to design the pages with tagDiv Composer, you can use the mobile page or mobile responsive version.
Also, please check this topic https://forum.tagdiv.com/topic/amp-pages-not-working-well-with-this-theme/
Thank you!
Hello,
We no longer recommend using AMP because it is deprecated. Please provide more details about tagdiv, which no longer shows the layout for landscape. Did you check for a plugin conflict?
Thank you!
ledenews.com
I changed from a dark background to a light background for our entire site. Pages updated to reflect the background as white and font as black, however, the old post’s title fonts stayed a light color and did not update to black. I cannot find where to change this. I also cannot find where to change font colors for searched items. Help and Thank you! Examples below.
https://ledenews.com/construction-projects-altering-holiday-traffic-in-wheeling-area/
https://ledenews.com/?s=west+liberty
Hey All,
I am getting the following error in the blog posts section of my Newspaper installation. I have checked and am running the latest version of Newspaper and all of my plugins have been updated.
Newspaper version: 12.6.5
PHP Version: 8.0.30
WP Memory Limit: 256 MB
PHP Execution Time: 300
Error message:
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: single_template_6 is not set.
/var/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Example URL – https://auditecsolutions.com/webinar/common-billing-errors-by-facility-maintenance-providers/


More error details: When I click display backtrace
Array
(
[0] => Array
(
[file] => /var/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
[line] => 348
[function] => error
[class] => td_util
[type] => ::
[args] => Array
(
[0] => /var/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
[1] => td_api_base::mark_used_on_page : a component with the ID: single_template_6 is not set.
)
)
[1] => Array
(
[file] => /var/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
[line] => 153
[function] => mark_used_on_page
[class] => td_api_base
[type] => ::
[args] => Array
(
[0] => single_template_6
)
)
[2] => Array
(
[file] => /var/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
[line] => 1451
[function] => get_key
[class] => td_api_base
[type] => ::
[args] => Array
(
[0] => single_template_6
[1] => file
)
)
[3] => Array
(
[file] => /var/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php
[line] => 3206
[function] => _get_theme_template
[class] => td_api_single_template
[type] => ::
[args] => Array
(
[0] => single_template_6
[1] => /var/www/wp-content/themes/Newspaper/single.php
)
)
https://happypeoplepickleball.com/shop
The shop base page shows ALL my items in my store on that page.
Instead, how can I show Category pictures (for example, a picture of a mug) and then have that category picture link to another page that lists all of the products of that category (for example, all of the mugs that were assigned that category).
Thank you
If you notice, the code indicates the right font, but it is not the one that appears.
Well, if I remove AMP from the siet, we will probably have a sudden drop in access. We still have a lot of access to the pages.
Do you suggest any way to do this without this likely loss?
Thanks!