Search Results for 'block'

Results from the Forum
Anamaria
tagDiv Staff

Hello,

You can create your own modules https://forum.tagdiv.com/modules-builder-newspaper-theme/ or use the flex block https://forum.tagdiv.com/flex-block-settings-guide/, which has a lot of functions instead of standard blocks from the tagdiv Standard pack plugin

Thank you!

dscom
Participant
#0

Hello,

Currently, we are using the Big Grid Flex 4 by TagDiv Composer for our homepage (https://app.screencast.com/sxkUH6neupvay), and thus far, we are very satisfied with it. However, we would like to modify how the title, tag, and time are displayed within the image. We prefer these elements to be positioned outside of the main image, similar to how they appear in Block 1 (https://app.screencast.com/ffKsLtWZLXIRB), but maintaining the image dimensions of the Big Grid Flex 4. Is there a template or simple CSS solution that we can implement to achieve this?

Anamaria
tagDiv Staff

Hi,

Do you have blocked access for a country? I have tried it on different browsers, and it still is not working.

Thank you!

Anamaria
tagDiv Staff

Hello,

Please block /wp-json/tdw/save_css
If an attacker wants to target this URL /wp-json/tdw/save_css they can do so. Even if the website uses a different theme, the attacker can still try that URL. We could add an option to be able to enable/disable the Live CSS, it will be considered. But for now in order to remove it this can only be done with a modification to the composer plugin. I think that all that removing it requires is to comment this line of code – https://prnt.sc/RtwvL5Nc4ikR -> https://prnt.sc/ymZmhdUfp57U But as I mentioned, the attacker can still try to access the URL.

Thank you!

jishnuraj
Participant
#0

Hi there, I’m currently using the Blockchain theme for my website. However, I’ve encountered a significant bug with this theme on mobile browsers. When loading the homepage on mobile devices (I’ve tested on various browsers on both Android and iPhone), the first row appears beneath the header. I’ve attempted several methods to resolve this issue, but… You can also observe the same problem on your demo website at https://demo.tagdiv.com/newspaper_blockchain_pro/. I hope you’ll address this problem promptly.

Miroslav Glavić
tagDiv Member

if the file is there, it must be for a reason. I can’t just block access. What would be the point of having it then?

simchris
tagDiv Member

Did you try blocking access to:
/wp-json/tdw/save_css

same way you’d block access to anything else not public on the site, via root or folder htaccess
(I don’t work here.)

Simion C.
tagDiv Staff

Hi,

I am testing this as well.

The guide mentioned here https://forum.tagdiv.com/topic/regarding-adding-multiple-authors-on-newspaper-theme/ is for the post pages, not the modules that blocks use, or any other locations on the website.

So first I added the code in the child theme functions file https://prnt.sc/hTPNzhlfY7X0

I copied the files for post template 2, which I see you are using.
So these files from the composer https://prnt.sc/sYUozCJiLp19
Into the child theme via this path Newsmag-child/parts/single https://prnt.sc/uG_2Uqw4Fcae

I replaced the code in the single file https://prnt.sc/ICqKDs-XYUX6
And in the loop file https://prnt.sc/EJMd1roozXhb

I entered the CSS in the theme panel https://prnt.sc/7dwNgqXIkJKe

I installed the co authors plus plugin and set 2 authors https://prnt.sc/XduTPL7-Dycg

The result https://prnt.sc/iNwHwugnwHLB and https://prnt.sc/_CBidAgkxti6

It seems to work fine. If it doesn’t for you, maybe its not done correctly. Could you please doublecheck? Or if you want, we can take a look as well. You can send us an email at contact@tagdiv.com and provide access to the staging website. Let us know.

Regards, Simion C.

Anamaria
tagDiv Staff

Hi,

You can set it to it in a block -> https://prnt.sc/4VKy-b4Igl78 and the you can customize it as you want https://prnt.sc/4VKy-b4Igl78 web-story

Thank you!

Anamaria
tagDiv Staff

Hello,

I think that you use a single post template, and you need to edit the single post template to add there a block, and filter it.
Hello,
We have some filters like this. For example, add a flex block in a post template, go to the filter tab of the element’s settings, and from the dropdown category filter, you can choose between Single – More from author, Single – Related by category, Single – Related from tags. Those special filters will work as expected.

Thank you!

lub_mit
Participant
Nonce name - topic
#0

Hello,

My site is hosted on VPS & LiteSpeed Web Server & LiteSpeed Cache Plugin.
All cached pages have an issue with the paging buttons from Single Related Posts, Flex Block 1, Flex Block 3, Flex Block 4 and Posts Loop Modules of Newspaper theme.

403 error

When a request is sent to admin-ajax.php as a filter, it will have a security token, this is called a nonce.

td_ajax_block
td_ajax_block

This token is valid for 12-24 hours so I usually have this problem for less than a day because the page is still cached but the token has expired so it ends up with a 403 error.

To fix this issue, I need to add the nonce name to the ESI nonce list in LiteSpeed Cache Plugin.

Now please tell me what code generates this security token on action td_ajax_block.

Best regards

zeropiquet
tagDiv Member

Unfortunately I can’t stay with PHP 7.4, I have services that require at least PHP 8.0 and so I had to find a temporary solution:
if it can help you, I commented line 2677 of td_block.php and there are no more errors, and everything seems to be ok..gradient is there, overlay too

ganix33
tagDiv Member

Hi,

Yes, this widget is a WP native element, but displayed content is filtered by a hook by TagDiv. This is the code at line #2919 in wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php:

/**
* Filter sets the global block template to the wp widgets
* @see 'widget_display_callback' hook on 'class-wp-widget.php'
*/
add_filter('widget_display_callback', 'on_widget_display_callback', 10, 3);
function on_widget_display_callback($currentWidgetInstanceSettings, $currentWidgetInstance, $widgetArgs) {

if( isset($widgetArgs['widget_id']) && strpos($widgetArgs['widget_id'], 'td_block') !== 0 ) {
// var_dump($widgetArgs);
// var_dump($currentWidgetInstance);
$global_block_template_id = td_options::get('tds_global_block_template', 'td_block_template_1');
$widgetArgs['before_widget'] = str_replace(' class="', " class=\"$global_block_template_id ", $widgetArgs['before_widget']);

$block_title_class = 'td-block-title';
if ($global_block_template_id === 'td_block_template_1') {
$block_title_class = 'block-title';
}
$widgetArgs['before_title'] = '<h4 class="' . $block_title_class . '"><span>';
$widgetArgs['after_title'] = '</span></h4>';

call_user_func_array(array($currentWidgetInstance, 'widget'), array($widgetArgs, $currentWidgetInstanceSettings));

// Returning false will effectively short-circuit display of the widget.
return false;
}

// Returning $currentWidgetInstanceSettings, as the apply_filters of this hook require
return $currentWidgetInstanceSettings;
}

If you comment “add_filter” line all works fine. The problem is that the instruction

call_user_func_array(array($currentWidgetInstance, 'widget'), array($widgetArgs, $currentWidgetInstanceSettings));

sends false as second parameter but called function expects an array.

Anyway I tried PHP 8.0 as you suggested but error persists. If you want to check it out I can send you URL and credentials.

Regards.

GEX
tagDiv Member

Sure. I don’t know much about coding, can you help me with a Shortcode, so that the WebStories look like the image below? I inserted it into the Widget section, is it possible for me to extract the shortcode?

With I extract code its something like:

<!– wp:web-stories/embed {“blockType”:”latest-stories”,”viewType”:”carousel”,”fieldState”:{“show_title”:true,”show_author”:true,”show_date”:true,”show_image_alignment”:false,”show_excerpt”:false,”show_sharp_corners”:false,”show_archive_link”:true,”show_circle_size”:false,”show_number_of_columns”:false}} /–>

https://ibb.co/s3qxz3F

Anamaria
tagDiv Staff

Hello,

Sorry, it seems that the link was blocked: https://we.tl/t-V47hoYdj27. Please check now. Yes, you need to add the element on the front end because this can not be added on the back end.

Thank you!

zeropiquet
Participant
#0

Hi as object i have switched to PHP 8.2 from PHP 7.4 and now i have a lot of errors in log
When use PHP 7.4 no issue , but when i switch to PHP 8 starts problems

I use Apache with NGINX as reverse proxy and varnish cache

[Wed Apr 17 13:31:02.360563 2024] [proxy_fcgi:error] [pid 30014:tid 140341663422208] [client xxxx:34924] AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “color-1-overlay” in /home/xxxx/public_html/xxx/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2677; PHP message: PHP Warning: Undefined array key “color-2-overlay” in /home/xxxx/public_html/xxxx/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2677’

It seems for a problem with overlay on flex block 2 , please can i fix ?

Thanks

dimitrisv
tagDiv Member

Having disabled the newsletter and optin plugins now the error is this:

AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:957\nStack trace:\n#0 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(957): array_filter()\n#1 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): tdb_state_single->{closure}()\n#2 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): Closure->__invoke()\n#3 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_categories->render()\n#4 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-includes/shortcodes.php(433): t…’, referer: https://pathologia.eu/wp-admin/post.php?post_id=10238&td_action=tdc&tdbLoadDataFromId=21480&tdbTemplateType=single&prev_url=%2F%2Fpathologia.eu%2Fenimerosi%2Ftrith-hlikia%2Fnosos-alzheimer%2Fnosos-alzheimer-amfisviteitai-i-epikratesteri-theoria-gia-ti-noso-meta-apo-dyo-nees-meletes%2F

So it is obviously something that has to do with the single categories block.

The site runs on php 8.2

  • This reply was modified 2 years by dimitrisv.
  • This reply was modified 2 years by dimitrisv.
Anamaria
tagDiv Staff

Hello,

Please let me know what plugin you use for Google web stories. You can set the post type here on the block to display them, or if the plugin provides a shortcode https://prnt.sc/I3E2WxQNuDEt -> https://prnt.sc/NQN9_1LFhW_O -> https://wp.stories.google/docs/best-practices/, you can set it in column text https://i.imgur.com/fxQe6rl.png

Thank you!

Anamaria
tagDiv Staff

Hello,

I recommend creating your own modules using this tool -> because these first modules, were made in code and difficult to change them https://forum.tagdiv.com/modules-builder-newspaper-theme/ -> https://forum.tagdiv.com/flex-block-builder-flex-loop-builder/

Thank you!

Bettina
tagDiv Staff

Hello @lucadelpozzo!

For flex blocks (1-5) you can find the files here: wp-content\plugins\td-composer\legacy\Newspaper\includes\modules
If you can’t manage to do it on your own, then you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you!

Anamaria
tagDiv Staff

Hello,

Unfortunately, there is no option to set the checkout form to the right. You can create a custom code css https://i.imgur.com/B41E5tQ.png
.wp-block-woocommerce-checkout,
{
text-align: right;
}

Set the code in Theme panel>Custom code>Custom css

Thank you!

Anamaria
tagDiv Staff

Hello,

It depends on what blocks you want this custom order. Please let me know where you want to use it.

Thank you!

jackzhu
Participant
#0

Hi,

I find the left information block position is too left (https://postimg.cc/MvR2DVH3). I want to move them right. How can i set that.?
Thanks

Anamaria
tagDiv Staff

Hello,

You can use this element on the block to autoplay the video -> https://i.imgur.com/BOBLNTn.png Also, to show a page in a block, you need to set the post type for the page and set the id of the page here -> https://i.imgur.com/HfJ1WFe.png

Thank you!

Viewing 25 results - 2,801 through 2,825 (of 39,816 total)