Search Results for 'composer'

Results from the Forum
lpecchiproper
tagDiv Member

thanks for your reply, I already use a code in template_redirect action in funcitons.php, see below, to remove some sections and automated pages that I don’t need anymore on a specific site.ho provato ad incollare il codice ma wordfence non mi lascia inviare il messaggio. I tried pasting the code, but Wordfence won’t let me send the message. Basically, I’m using a wp_die with a 410 response, and it works, but I’d like to include a design that’s more similar to the site pages created with TD Composer, Cloud Template or modules.

kevinsikora
Participant
#0

You should ask an AI app to review the weather widget for issues. I asked the following question in Cursor AI:

Are the units used correctly? When I check the data returned from the API call, it doesn’t match up with the data on https://openweathermap.org/ for the same city.

I received the following response:

I’m going to verify the unit handling logic in your weather class against OpenWeather response fields so we can isolate exactly why values differ.


Short answer: not fully — there are two real unit bugs in this file.

What’s wrong
w_units handling is incorrect
Any non-empty w_units value is treated as imperial:

td_weather.php
Lines 41-48
$current_unit = 0; // 0 – metric
$current_temp_label = ‘C’;
$current_speed_label = ‘kmh’;
if (!empty($atts[‘w_units’])) {
$current_unit = 1; // imperial
$current_temp_label = ‘F’;
$current_speed_label = ‘mph’;
}
So w_units=”metric” still flips to imperial.
That explains mismatch immediately.

Metric wind label/value mismatch
API requests units=metric, where wind speed is m/s, but code labels it as kmh without converting:

td_weather.php
Lines 428-431
if (isset($api_response[‘wind’][‘speed’])) {
$weather_data[‘today_wind_speed’][0] = round($api_response[‘wind’][‘speed’], 1);
$weather_data[‘today_wind_speed’][1] = self::kmph_to_mph($api_response[‘wind’][‘speed’]);
}
today_wind_speed[0] is m/s, not kmh.
today_wind_speed[1] also assumes km/h input, but input is m/s.

Where to fix
In wp-content/plugins/td-composer/legacy/common/wp_booster/td_weather.php:

Fix unit selection around the if (!empty($atts[‘w_units’])) block.
Fix wind conversions in owm_get_today_data() around wind speed assignment.

Then I asked the following:

Can you show me the exact fixes I need to make in order to correct this issue?


Yes — make these exact edits in wp-content/plugins/td-composer/legacy/common/wp_booster/td_weather.php.

1) Fix w_units detection (currently always imperial when non-empty)
Replace this block:

$current_unit = 0; // 0 – metric
$current_temp_label = ‘C’;
$current_speed_label = ‘kmh’;
if (!empty($atts[‘w_units’])) {
$current_unit = 1; // imperial
$current_temp_label = ‘F’;
$current_speed_label = ‘mph’;
}
with:

$current_unit = 0; // 0 – metric
$current_temp_label = ‘C’;
$current_speed_label = ‘m/s’;
if (!empty($atts[‘w_units’]) && strtolower($atts[‘w_units’]) === ‘imperial’) {
$current_unit = 1; // imperial
$current_temp_label = ‘F’;
$current_speed_label = ‘mph’;
}
2) Fix wind speed conversion (OpenWeather metric wind is m/s, not kmh)
In owm_get_today_data(), replace:

if (isset($api_response[‘wind’][‘speed’])) {
$weather_data[‘today_wind_speed’][0] = round($api_response[‘wind’][‘speed’], 1);
$weather_data[‘today_wind_speed’][1] = self::kmph_to_mph($api_response[‘wind’][‘speed’]);
}
with:

if (isset($api_response[‘wind’][‘speed’])) {
$weather_data[‘today_wind_speed’][0] = round($api_response[‘wind’][‘speed’], 1); // m/s from api
$weather_data[‘today_wind_speed’][1] = self::mps_to_mph($api_response[‘wind’][‘speed’]); // imperial
}
3) Add proper conversion helper (m/s -> mph)
Replace this function:

private static function kmph_to_mph($kmph)
{
return round($kmph * 0.621371192, 1);
}
with:

private static function mps_to_mph($mps)
{
return round($mps * 2.2369362921, 1);
}
Why this fixes your mismatch
w_units=”metric” will now stay metric (instead of being treated as imperial).
Wind values/labels now match OpenWeather metric/imperial behavior.
If you want, I can apply these edits directly for you now.

I followed those instructions and now the weather widget is displaying more realistic data to me.

Calin
tagDiv Staff

Hi,
The error message: “Error at rows: 9 (models): 1 (dom). The model does not match the content. Current state has encountered an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)” is most commonly caused by a shortcode that is not compatible with the theme or by a plugin conflict. Typically, this happens after editing a page with tagDiv Composer and saving it—then encountering the error when trying to edit the page again.
If the issue occurs on only one page, it is likely caused by specific settings or shortcodes used on that page. In this case, you can resolve it by restoring a previous version using page revisions: https://wordpress.com/support/page-post-revisions/

Calin
tagDiv Staff

Could you provide some screenshots or explain what is happeing when you try to edit with tagDiv Composer? Are you redirected to the 404 page? If so please ensure all theme requirements are set as outlined in our guide at https://forum.tagdiv.com/requirements-for-newspaper/, including the mod_substitute code in .htaccess. https://prnt.sc/n7RWr-ghiM8M
Do you receive any error message?

Pratap Waghmare
tagDiv Member

Why TagDiv Composer not Working?

Pratap Waghmare
tagDiv Member

Also My tagDiv Composer also not working. Please reply fast

Pratap Waghmare
tagDiv Member

Unique Articles option not showing in Template setting and Tag Div Composer also not working

Calin
tagDiv Staff

Hi,
In this case, you can edit the footer using tagDiv Composer. Switch to the mobile viewport, then select each footer column and review its CSS settings (you can also check in the layout, as there are 2 places where the width can be set). Adjust the column width from 30–35% to 100% to ensure proper display on mobile devices.
If you need any further assistance, feel free to reach out https://i.imgur.com/CFVHWqA.png
I hope this will help you!

Calin
tagDiv Staff

Hi,

This situation can be resolved in two ways:
1. You can enable the Unique Articles option by following this guide:
https://forum.tagdiv.com/unique-articles/
2. Alternatively, you can use the tagDiv Composer. Select each block individually, then go to the Filter tab and choose the category from which you would like to pull articles – https://forum.tagdiv.com/flex-block-settings-guide/https://prnt.sc/FEGGusJieopy

I hope this will help you!

Calin
tagDiv Staff

Hi,

For this, please use the tagDiv Composer. Select the Image element, then navigate to the General settings and look for the Vertical Align option: https://prnt.sc/pe62EXldQqiN

Also, if you’d like to display an image on the forum, it needs to be hosted on an external image platform (such as Imgur or a similar service) that provides a direct image link. You can then share that link here. Alternatively, you can upload the image to your website and use its URL in the forum.

EWP
tagDiv Member

UPDATE — April 25, 2026
Significant new findings after deeper DOM inspection. The block is no longer empty, but articles are rendered offscreen.
What changed since my last report:

Yesterday: the block container appeared completely empty — no child modules in the DOM.
Today (verified via browser DevTools): the container #tdi_96 now contains 5 .td_module_flex elements with correct titles, dates, categories, and links pointing to the right posts.
However, the articles are rendered at top: -4729px on the public frontend — far outside the viewport, which is why they remain invisible to users despite being present in the DOM.

Detailed observations from the frontend (incognito, logged out):

Articles ARE in the DOM: confirmed via document.querySelectorAll(‘#tdi_96 .td_module_flex’) returning 5 elements with valid content.
Articles positioned offscreen: getBoundingClientRect() returns top: -4729, left: 20 for the first article. Parent #tdi_96 itself sits at normal page position with height: 234px.
Computed CSS does not explain the offset: position: relative, top: 0px, marginTop: 0px, transform: none, translate: none, inset: 0px — no positioning rule should push the elements offscreen.
No transform on any ancestor: walked up the DOM from .td_module_flex to #tdi_96 — no element has a transform or non-default position.
In tagDiv Composer editor, the block displays correctly — all 5 articles visible with normal layout. The issue manifests only on the public frontend rendering.
Block class on frontend: td_block_inner td-mc1-wrap with el_class=”td-week-slider” set in shortcode.
Image container has display: none (intentional — image_floated=”hidden” in config).
Editor still throws 8x “model does not match content” errors when opening the Homepage in tdc. These persist from yesterday and have not cleared.

Hypothesis:
The block appears to enter a ticker/slider rendering mode on the frontend (consistent with the td-week-slider class), where articles are positioned offscreen waiting for a JS animation that never executes. The editor renders the block correctly because it bypasses this ticker behavior, but the frontend runtime applies it and fails. This may be linked to the persistent “model does not match content” errors.
Concrete questions:

(a) How can I force this block to render as a standard vertical flex list (no ticker behavior) without entering Composer to edit it (since opening the Homepage in tdc shows the model errors)?
(b) Is there a way to clear the model-content mismatch from the database directly (wp_options, wp_postmeta) without going through the editor?
(c) Does the td-week-slider el_class trigger specific JS that could fail silently and leave articles parked offscreen?

I can provide additional diagnostic output from DevTools console if helpful.

EWP
Participant
#0

Hi tagDiv team,

I have a Flex Block 1 (configured as “Latest news” widget in the homepage left column)
that renders empty in the frontend but displays posts correctly in the Composer editor preview.

DETAILS:
– Theme: Newspaper v12.7.5 (REGISTERED)
– Demo installed: Newsweek PRO
– Site: https://eurowaypoint.com
– WordPress: 6.9.4
– PHP: 8.2.30

THE PROBLEM:
– In Composer editor: the Flex Block 1 shows the latest 5 published posts correctly
– In frontend (incognito browser, logged out): the block container is generated
(div id=”tdi_96″ class=”td_block_inner td-mc1-wrap”) but completely empty —
no child modules are rendered inside
– 24 published posts exist in the database
– Other blocks on the same homepage (Big Grid Flex 1, other Flex Block 1 instances)
work correctly and display posts
– No JavaScript errors in browser Console
– The block has no special filters configured (Category: All, all filter fields empty)

WHAT I’VE ALREADY TRIED:
– Cleared all caches (SiteGround, WP Super Cache disabled, browser hard reload)
– Restored Homepage from a 3-day-old revision (no improvement)
– Disabled all third-party plugins one by one (Wordfence, SG Optimizer, etc.)
– Verified block configuration in Composer (Filter tab, Layout tab — all default/empty)
– Forced re-save of the block (changed limit number and saved)
– Removed custom CSS that contained :has() selectors

WHAT I NOTICED:
The block was working until I made some modifications today (changed page slug from
/plans/ to /newsletter/, edited some HTML custom blocks for Subscribe links).
The Latest block stopped rendering at some point during these changes.
Restoring an older Homepage revision did NOT fix it.

Could this be a corrupted block state in the database? Is there a way to reset
the block’s internal cache or regenerate its configuration?

Thank you for your help.

Calin
tagDiv Staff

Hi,
That can be done using the pop-up element, Modal Popup. On this element, you have the possibility to set a page ID that you’d like to be used as a pop-up. The page can be created with the theme builder so it will look as you want, for example – https://prnt.sc/04mYOFdJs8ndhttps://prnt.sc/i7ZG6pNLK7Mg the page id set in the popup element https://prnt.sc/cpL3GdU5Vd6b

Calin
tagDiv Staff

Hi,
Yes, here are some quick things to check when AdSense ads don’t show in the Newspaper theme:
1. Ad approval (most common issue): Make sure your AdSense account + ad units are fully approved. New sites or units can take time (hours to days) before ads appear.
2. Low or no traffic: If the site has very low traffic, AdSense may not serve ads consistently yet.
3. Ad blocking / cache:
– Clear all caches (plugin + server + CDN if used)
– Disable ad blockers while testing
– Test in incognito mode
4. Incorrect ad code placement: Double-check that the AdSense code is pasted correctly in:
Newspaper → Theme Panel → Ads, or the correct Ad Box element in tagDiv Composer
5. Auto ads vs manual ads conflict: If Auto Ads are enabled, they may override or delay manual placements. Try disabling Auto Ads temporarily for testing.
6. Privacy / consent (GDPR): If you use a consent plugin, ads will not show until consent is given.
7. Theme caching / delay in rendering: Sometimes Newspaper + cache plugins delay changes. Purge cache and wait a few minutes.

Calin
tagDiv Staff

Hi,
First, I’m glad that you managed to resolve the problems from Apr 22, 2026 at 10:37 am and Apr 22, 2026 at 11:10 am.
Now related to teh question with the number of products, this can be set by using tagDiv Composer https://prnt.sc/qfc_AIskvJdT, edit the template, select the products and change the number for Limit products number: https://prnt.sc/zgVlFUJ-hoxL
-> https://prnt.sc/qA948NZIer4x
-> https://prnt.sc/kEouA9zMmg8L
Thank you!

Calin
tagDiv Staff

Hi,
This can be done using teh theme builder, tagDiv Composer, you need to edit the pages and cloud template – https://prnt.sc/mNIgUHjnA0p8 and select the manager https://prnt.sc/Het4gcxlNRhU. After that in the font tab, you can edit the fonts you want on that page/template. There are also some settings in teh theme panel for fonts. For more details, you can check our guide https://forum.tagdiv.com/font-customization/
Thank you!

Michael Wong
Participant
Footer - topic
#0

Hi, I added a new footer design using a footer templates, but I’m having some issues. The new footer is visible when previewing, but when I edit its content using Td Composer, I don’t see the footer content or any elements within Td Composer. Furthermore, the footer is not visible on the website’s front end and doesn’t appear on the website itself.

https://drive.google.com/file/d/1tBP8O-lk7_uPV1qfstIY3NUi0ZQt1dXx/view?usp=drive_link

Calin
tagDiv Staff

Hi,
Unfortunately, those edits must be changed in the theme plugin file and should be done after each theme update because that thumbnail size doesn’t exist. To edit it you need to edit the file wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php, look for the td_api_thumb::add(‘td_300x0’, https://prnt.sc/KNli1gH4SIx1 code line around 1491 and change the width from 300 to 400. After that, you need to set the thumb on the blocks small – https://prnt.sc/A-XkfODxUiLO and use a regenerate plugin to regenerate the thumbs.
I hope thsi will help you!

Calin
tagDiv Staff

Hi,
If you have the last theme version in tagDiv Composer, you should have the shortcode element https://prnt.sc/9kj9mQ9tI_qz. Could you please provide some screenshots of those situations? I tried to access the link, but it is not working.
Thank you!

Calin
tagDiv Staff

Hi,
Could you please let me know if you receive any messages or what happens when you try to edit the page with tagDiv Composer?
Also, checking the screenshot, your website is not secure. Please install an SSL so the website will use https, it is possible that themes and plugins may not work correctly.

leagcooks
Participant
#0

Hi,

i have added a column text block above my footer on my homepage using the TAGDIV Composer (See below)

Column-text

i would like to have it show on every post and page above the footer, is it possible please?

thanks

Calin
tagDiv Staff

Hi,
What you need to do is to edit the product cloud template with tagDiv Composer https://i.imgur.com/A8mrOXi.png, then select the Woo Add to Cart element and check the attributes tab, from there you can choose the button element https://i.imgur.com/sS5vyUl.png.
I hope this will help you!

Calin
tagDiv Staff

Hi,

I’m not sure I fully understand your setup, but category templates can only be assigned to categories. For pages, you should create them using tagDiv Composer, either build one from scratch or import a pre-made layout and customize it as needed. Once you have a page you like, you can duplicate it and simply update the content to create new pages while keeping the same structure.

Also, based on your screenshot, it looks like you’ve created mobile templates for categories and are using a plugin to assign them. However, for pages, you haven’t selected a mobile version, so the responsive design is being used instead.

Mobile pages/templates should only be used if you want a different layout or content on mobile compared to desktop. Otherwise, the default responsive version is sufficient, and you don’t need a separate mobile page/template.

Thank you!

RENATO
tagDiv Member

Hello,

Thank you for your previous help. I need assistance with two issues in the Newspaper theme / TagDiv Composer.

1. Google Fonts and local fonts
The theme is loading fonts from Google, and this is heavily affecting the site’s performance because of render-blocking requests. The theme does not properly use local fonts by default.

I tried using local fonts inside TagDiv Composer, but I had to do a workaround, and that is not the correct solution. I also created a Newspaper-child theme and managed to load local fonts from there, but the result was not good because the fonts do not look exactly the same as the original Google Fonts.

What I need is a proper solution that makes the theme use local fonts, while still allowing me to select the fonts normally in TagDiv Composer. In other words, I want the theme to keep the same visual appearance, but load the font files locally instead of requesting them from Google.

What is the correct way to do this?

2. Hiding the “Most Watched” section title
I am trying to hide the title of the “Most Watched” section shown here:
https://ibb.co/6cmh3VH8

This section appears in this post:
https://glostv.com/tv-ao-vivo/tv-cultura

and also in all other posts.

I used the following CSS:

CSS

.tdi_54 .entry-title,
.tdi_54 .td-module-title,
.tdi_54 .td-module-title a {
display: none !important;
}
The problem is that this is also hiding titles on the Popular page:
https://glostv.com/populares

This should not happen. These elements should not be sharing the same .tdi_54 behavior for this case, or at least I need a more specific way to target only the “Most Watched” section inside posts.

How can I hide that title only in the post section, without affecting the Popular page?

Thank you.

Calin
tagDiv Staff

Hi,
That section is not a page template it’s dedicated to importing all available pages from the cloud library. This means you can import any page from any demo that has been uploaded there.
If you want to create pages with a similar or identical structure to the Revenant demo, you can simply duplicate a page you like—for example, the homepage: https://prnt.sc/4NK53KxWK8wp then, edit it using tagDiv Composer and adjust the elements as needed.
Thank you!

Viewing 25 results - 226 through 250 (of 52,922 total)