Search Results for 'block'

Results from the Forum
dobejan
Participant
#0

Hi,

Do I have the possibility to set a module (module 1 td_block_3 in my case) to display the latest posts chronologically, but to skip the first N posts? Or maybe a workaround to achieve this?

Thank you,

Calin
tagDiv Staff

Hi,

Please try this custom css -> https://i.imgur.com/RVhbZcu.png
.td-business .td_block_trending_now .td-trending-now-wrapper .td-trending-now-display-area .entry-title {
line-height: 16px;
}

The code need to be set in theme panel> custom code> custom css

Hope this will fix the problem.
Thank you!

sloka8
Participant
#0

Hi i am using newspaper theme,when the beginning of the site the youtube videos block works well , but now the videos are not reading into the block showing empty. When i add videos IDS they are not reading. Please help me out. if you want i will share my site screenshot.

Thanks in advance.
Error on youtube block

nicolaparente
tagDiv Member

Good evening. I thank you for your prompt reply.

This instead is the code of td_blok_3:

<?php
// v3 – for wp_010

class td_block_3 extends td_block {

static function cssMedia( $res_ctx ) {

// fonts
$res_ctx->load_font_settings( ‘f_header’ );
$res_ctx->load_font_settings( ‘f_ajax’ );
$res_ctx->load_font_settings( ‘f_more’ );

// module 1 fonts
$res_ctx->load_font_settings( ‘m1f_title’ );
$res_ctx->load_font_settings( ‘m1f_cat’ );
$res_ctx->load_font_settings( ‘m1f_meta’ );

}

public function get_custom_css() {
// $unique_block_class – the unique class that is on the block. use this to target the specific instance via css
$unique_block_class = $this->block_uid;

$compiled_css = ”;

$raw_css =
“<style>

/* @f_header */
.$unique_block_class .td-block-title a,
.$unique_block_class .td-block-title span {
@f_header
}
/* @f_ajax */
.$unique_block_class .td-subcat-list a,
.$unique_block_class .td-subcat-dropdown span,
.$unique_block_class .td-subcat-dropdown a {
@f_ajax
}
/* @f_more */
.$unique_block_class .td-load-more-wrap a {
@f_more
}
/* @m1f_title */
.$unique_block_class .td_module_1 .entry-title {
@m1f_title
}
/* @m1f_cat */
.$unique_block_class .td_module_1 .td-post-category {
@m1f_cat
}
/* @m1f_meta */
.$unique_block_class .td_module_1 .td-module-meta-info,
.$unique_block_class .td_module_1 .td-module-comments a {
@m1f_meta
}
</style>”;

$td_css_res_compiler = new td_css_res_compiler( $raw_css );
$td_css_res_compiler->load_settings( __CLASS__ . ‘::cssMedia’, $this->get_all_atts() );

$compiled_css .= $td_css_res_compiler->compile_css();

return $compiled_css;
}

function render($atts, $content = null) {

parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)

if (empty($td_column_number)) {
$td_column_number = td_global::vc_get_column_number(); // get the column width of the block from the page builder API
}

$buffy = ”; //output buffer

$buffy .= ‘<div class=”‘ . $this->get_block_classes() . ‘ td-column-‘ . $td_column_number . ‘ td_block_padding” ‘ . $this->get_block_html_atts() . ‘>’;

//get the block js
$buffy .= $this->get_block_css();

//get the js for this block
$buffy .= $this->get_block_js();

// block title wrap
$buffy .= ‘<div class=”td-block-title-wrap”>’;
$buffy .= $this->get_block_title(); //get the block title
$buffy .= $this->get_pull_down_filter(); //get the sub category filter for this block
$buffy .= ‘</div>’;

$buffy .= ‘<div id=’ . $this->block_uid . ‘ class=”td_block_inner”>’;
$buffy .= $this->inner($this->td_query->posts); //inner content of the block
$buffy .= ‘</div>’;

//get the ajax pagination for this block
$buffy .= $this->get_block_pagination();
$buffy .= ‘</div> <!– ./block –>’;
return $buffy;
}

function inner($posts, $td_column_number = ”) {

$buffy = ”;

$td_block_layout = new td_block_layout();
if (empty($td_column_number)) {
$td_column_number = td_global::vc_get_column_number(); // get the column width of the block from the page builder API
}
$td_post_count = 0; // the number of posts rendered
$td_current_column = 1; //the current columng

if (!empty($posts)) {
foreach ($posts as $post) {
$td_module_1 = new td_module_1($post, $this->get_all_atts());

switch ($td_column_number) {

case ‘1’: //one column layout
$buffy .= $td_block_layout->open12(); //added in 010 theme – span 12 doesn’t use rows
$buffy .= $td_module_1->render($post);
$buffy .= $td_block_layout->close12();
break;

case ‘2’: //two column layout
$buffy .= $td_block_layout->open_row();

$buffy .= $td_block_layout->open6();
$buffy .= $td_module_1->render($post);
$buffy .= $td_block_layout->close6();

if ($td_current_column == 2) {
$buffy .= $td_block_layout->close_row();
}

break;

case ‘3’: //three column layout
$buffy .= $td_block_layout->open_row();

$buffy .= $td_block_layout->open4();
$buffy .= $td_module_1->render($post);
$buffy .= $td_block_layout->close4();

if ($td_current_column == 3) {
$buffy .= $td_block_layout->close_row();
}

break;
}

//current column
if ($td_current_column == $td_column_number) {
$td_current_column = 1;
} else {
$td_current_column++;
}

$td_post_count++;
}
}
$buffy .= $td_block_layout->close_all_tags();
return $buffy;
}
}

This is the code for sharing social icons:

<?php if (function_exists(“essb_custom_position_draw”)) { essb_custom_position_draw(positionID, alwaysShow); } ?>

my question is: in which position should this code be inserted?

Kpkna
tagDiv Member

In your case you have to add this code too (in the same location)

.tdi_18_cc8 .td-module-meta-info {display:block;}

Kpkna
tagDiv Member

Hi,
here is a fix for this issue. Please an moderator to confirm it and why not to put it in the next theme update.

So, you have to put the below code into the theme settings -> custom code -> custom css

html[class*=ie] [class*=td_flex_block_] .td-image-container{

float:left;
margin-right:10px;
} 

Let me know 😉

  • This reply was modified 6 years by Kpkna.
dabk
Participant
#0

The last newspaper theme update removed footers and blocks (I only have the Flex blocks as an option), removed all my header changes, and who know what else. How do I get them back? The code for my home page is fine, it’s just not rendered as the blocks it refers to are not there.

MariaTarth
tagDiv Member

Could you please give an advise what property should I use, to add a fixed height to flex blocks?
Some titles might be short.. so excerpt it’s not an option for me.
https://ibb.co/vLKjMT9
Animals Magazine PRO – Main block on Main page.

MariaTarth
tagDiv Member

Could you please give a quick advice what should I do (where and what property to add) to make the height of flex blocks fixed? Thanks.

kevinsikora
Participant
#0

I’m seeing the following issue on my site and I’m not sure how to fix it and still keep my site secure:


Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id.

I can view this error when I load my site in FireFox. When I right click and selct and then right click on the site and select (Inspect Element), the (Console) tab displays this error.

Has anyone else encountered this? Any ideas on how to fix it?

HeyhoMedia
Participant
#0

Hi Team
I can’t get my email client sharing the link when I use the emailto? social share function.
The client (Outlook) starts a new email send dialogue with the subject inserted but not the url for the blog page. As seen in example
mailto:?subject=Must%20Have%20Beauty%20Kits%20&%20Palettes&body=https://coolclear.blog/must-have-beauty-kits-palettes/

Obvioulsy the link is generating but &body fails. Is it my mail client blocking or antispam or do I have the incorrect setting in the tagdiv configuration?

Regards

Jacob85
Participant
#0

Hi I’m trying to use tagdiv composer with Newsmag. I created a plugin that shows what is now on the radio. But when I add it with Tagdiv composer in a td_block_text_with_title I doesn’t see the information on the rigth place but at the top of the page.

And when I want to edit it in tagdiv composer I get the error: “The current content hasn’t been created by TagDiv Composer!”

How can I let it work?

bjames1000
Participant
#0

Hi, still tweaking….

1) The titles/headers at the top of the category pages are too small for my taste. How do I cahnge the font size? Can’t find anywhere in the Theme Panel and the CSS seems to use a shortcode (zoompage fontsize=”26″).

2) I saw in the Newspaper theme (I have Newsmag) that there is a Theme Panel setting (Theme Colors) to set the background color of the Block/Module headers. There is no such opiton in Newsmag. Is there one place I can do this? (I actually added extra CSS in Appearance > Customize that does this, but would prefer to have a Theme Panel option.) Why doesn’t Newsmag have the same option as Newspaper?

Vikramsinghrao
Participant
#0

Hello sir, in my theme the loadmore button next previous button is not working and in my theme very many posts are not showing the featured image changes in the post but when looking at the thumbnails I am not getting it The cache has also been cleared and is still not happening and the block of releated article is not visible in my post.

Please Check My website:-
https://www.shayaristar.com/

My Website Post Link:-
https://www.shayaristar.com/dosti-shayari/bura-waqt-aane-par-dost-bane-dosti-shayari/

In this post, when I am opening the post, in the option with the widget, why the post is opened, while I have selected a random post in the block settings Sir Why is the post coming in the post widget
Related article option is not coming in my post
Image Post 1:
https://i.imgur.com/MXX1RJv.png
https://i.imgur.com/4vJQtdx.png

Not Work Button Image :-
https://i.imgur.com/xfJH5Aa.png

Not a Change Select order:-
https://i.imgur.com/tBV6bhX.png

notenoughtech
Participant
#0

I’m in the process of migrating my page and rebuilding it.
During my edits I discovered I’m not able to use image presets (25% 50% 75% 100%) the image is resizing visually, but not on the page – always stays full size.

I’m trying to make an image smaller.

http://35.192.55.254/featured/new-ewelink-app-and-paid-plans/

<div class="wp-block-image"><figure class="aligncenter size-large is-resized"></figure></div>
I noticed that I can make it smaller if I edit the HTML and remove <figure></figure> block but it breaks the image block in gutenberg.

I imported pictures vis FTP and then added it to Media database with a plugin. Note, that I don’t have any images resized in the database, I set the WP settings for images to 0 and I will regenerate thumbs later.
Any solutions?

NoFrag
tagDiv Member

Yes, because I removed the post loop block. Otherwise, the website doesn’t work on mobile.

I would like to know if you are aware of any issues regarding Posts Loop on mobile ?

Please, see here : https://nofrag.com/tests-homepage/

As you can see, on mobile, you can’t click on any articles.

  • This reply was modified 6 years by NoFrag.
  • This reply was modified 6 years by NoFrag.
DrEO Studio
Participant
#0

I have a problem, since my insta is already connected, but it tells me that there is an error in the render

https://ibb.co/ZKGNqKw
https://ibb.co/s5JSpb6

marcnyc
Participant
#0

Hello, I’ve spend hours trying to make the background of the main CONTENT ZONE transparent…
In the TD Editor under CONTENT > ZONE > CSS I’ve tried changing the color where it says BACKGROUND COLOR but nothing seems to be affected…
I’ve even tried looking at the HTML source and adding this to the LIVE CSS EDITOR:
.td-main-content-wrap,
.td-main-page-wrap,
.td-container-wrap,
.tdc-content-wrap,
.tdc-zone,
.tdi_2_eeb,
.wpb_row,
.td-pb-row,
.tdc-element-style,
.td-big-grid-flex,
.td-big-grid-flex-scroll,
.td_block_wrap,
.td_block_big_grid_flex_5,
.tdi_10_e0e,
.td-pb-border-top,
.td_block_template_14,
.td-big-grid-flex-posts
{
background-color: transparent!important;
}

Nothing seems to work. Why is this so hard???
Finding the right place for this in the TD EDITOR settings should really be MUCH simpler!

gregoryirthum
Participant
#0

Hi there,
I’m using your great theme for one of my customer, and i’ve got a little issue.

The URL is : http://nxu-thinktank.com/
I just want to know, where I can enable the category name, to display on the first block of the home page ?

Thanks by advance 🙂

wsm
Participant
#0

Hi, my site is displaying an advertising image that says “Newspaper WordPress Theme Offer from TAGDIV” on a 404 page.
See here for examples, these aren’t my website, my website is not publicly available: https://sunflowerstateradio.com/wp-content/uploads/2020/05/corhaz-3.jpg and https://zukus.net/2019/12/an-809-car-payment-a-660-income-how-dealers-make-thefgffgsd-math-work/

I’m using the default templates from Pulses Pro. Using the tagdiv composer I can delete the entire ad block. However, I only want to replace the image with my own image. Can you provide instructions on how to do this?

Fryant
tagDiv Member

It works like a charm, I was doing that but using the ID on the title block instead of the row.

Thanks!

gpm79
Participant
#0

I have problems with the tagdiv composer, after the last update when I want to edit my pages, particularly in the text blocks, when I put edit, the wp editor window opens, and it does not show me any content, neither in visual mode, nor in html mode. Can you help me?

ludyma
tagDiv Member

I need your help, I have sponsored content packages and I need it to be shown in the posts that appear on the main page or in the header of the post itself, how could I do it?

brand or label

brand or label in post

The other is how do I create new classes in the posts or pages?

Try the advanced section of a post block and nothing is not

class

Vlad S
tagDiv Staff

Hello !

By going in Theme Panel – Blocks Settings -Thumbs you will be able to see What sizes each block uses. By inspecting your website you will be able to see what blocks do you use. Then deactivate all the unused thumb sizes.

The Mobile theme was specially designed for optimization on mobile devices. Unfortunately on mobile theme you cannot do much changes of design. If you want to have the same design as on desktop mode you can achieve that by simply disabling the mobile theme.

You will have to recreate your pages into the Mobile editor or completely disable the mobile theme. The mobile editor will not render shortcodes !

Also you can disable mobile theme on certain pages or posts by following this setting:

Please take a look here: https://forum.tagdiv.com/the-mobile-theme/

Mobile theme plugin can be disabled from Newspaper Plugins as you can see here: https://www.screencast.com/t/LnkZCEVC

Also please make sure that you clear your cache!

Thank you !

GabrielVB1100
Participant
#0

Hello, sor some reason, the blocks are not updating in the homepage, the blocks are set to show the lastest post, but they seem to be stuck, also, the mega menus ajax is apparently malfunctioning as well
I have deactivated all plugins and theme but that didnt fix it

Any help is appreciated.

Viewing 25 results - 12,376 through 12,400 (of 39,816 total)