Search Results for 'block'

Results from the Forum
Tibbar
Participant
#0

Hello,

I have an important question : is it possible to put the featured image, the title and the review in a block ?
Exemples : https://puu.sh/Bp8c7.png
https://puu.sh/Bp8cu.png
https://puu.sh/Bp8cM.png

When i try, the title is too high for the image and the review is at the bottom of the page
I can’t find a solution or an adequate template for it, is it possible to edit a post with TD Composer ? I don’t find this solution, have you got a CSS that can help me, thanks a lot, this design is very important to me !! 🙂

oointah
tagDiv Member

Thanks Bogdan.

Any plans to support the editing of Smart Lists with TD composer? The actual Smart List block.

Simion C.
tagDiv Staff

The website does not load at the moment – http://prntscr.com/kq2qty

So from what I understand you used a flex block at the top and a post loop below. It all depends on your filtering and sorting used.
If the filtering used is set to display posts from that category and ordered by latest, they will be the same as in the loop. In that case set in the loop an offset according to the number of posts (modules) the flex block has.

For example if the flex block shows 3 posts, set an offset of 3 in the loop. That will avoid repeating posts.

Simion C.
tagDiv Staff

Hi,

That would be block 25, it should look like this
https://demo.tagdiv.com/newspaper/block-25/
First I thought the image you used as featured was small, but for me the same image allow the creation of the proper thumbnail
http://prntscr.com/kq2nvw

Try to install the force regenerate plugin and regenerate that thumbnail
https://www.screencast.com/t/kmK1RlIC35D
Then check if the issue is solved, maybe clear the cache after regenerating.

Catalin
tagDiv Staff

Hello manu31,

Try to use the Flex Block to have more control over the cropping of your images.

Thanks.

Simion C.
tagDiv Staff

Hi,

The image is set as background, so you could use background position
https://www.w3schools.com/cssref/pr_background-position.asp
https://developer.mozilla.org/en-US/docs/Web/CSS/background-position

This is an example where the image will have a space of 50px to the left
https://www.screencast.com/t/ORMzR5Mym
A no repeat would also be necessary so the image will not repeat itself in the crated space.
Code used in example, it will affect all the image boxes if not made more precise

.td_block_image_box .td-custom-image a {
background-position: 50px 0px;
background-repeat: no-repeat;
}

In the advanced CSS sections you can enter it according to what is needed. For example in the phones section to make it apply only on phones.

If I misunderstand something please correct me.
Thanks

Ryansmccain
tagDiv Member

Oh I see. Thanks. Are there any plans to offer font customization for mobile in the theme?

Regarding my featured post. This is how I understand it:

My featured post is using block 24, so I need to edit module 19 font settings.

The modules listed in that table for Block 24 are:

Block 24 Module 19 Module 19 Module MX16

So, I have module 19 set to Gil Sans which correctly sets the font of the post title, but the post body excerpt is still at Arial. I’m trying to change the post excerpt font.

See these:

https://i.imgur.com/ZvqCQVx.png

https://i.imgur.com/WR0TxSu.png

Thanks

  • This reply was modified 8 years by Ryansmccain. Reason: Added question about my body except font
Ryansmccain
tagDiv Member

Thanks for the response. Yes, I am using Jetpack for this. It’s the only reasons I have Jetpack installed. Everything else is disabled.

I changed the popular post number from 3 to 6 and it doesn’t even load the animation like its trying to load more posts. The next button works fine for other blocks.

I made a video you can watch here if you’d like.

If I change the pagination to LOAD MORE, the loads the same 3 posts.

  • This reply was modified 8 years by Ryansmccain. Reason: added bit about the LOAD MORE button
beppepicaro
tagDiv Member

Exactly! Thank you for your reply, your code was not enough I think since the border at the top and bottom was too thick on mobile (desktop is fine) and the bottom frame touched the title of the next block, but I think I managed to achieve what I needed adjusting the padding.

Simion C.
tagDiv Staff

I see this one currently – https://www.screencast.com/t/lxz41rmfiY

If the block is no longer in the page structure, why would it still appear there? Quite unusual.
A persistent cache would explain it, but you say it has been cleared fully. It should clear automatically when the page is modified or updated however.
Could be browser cache then, but that will not switch back and forth from the old block to the new one in the same browser.
I browsed the website for a while, returning to the homepage periodically. The old block is not to be seen so far.

Bogdan B.
tagDiv Staff

Hello,

If you want to remove the block titles, you can use this code:

.td-footer-wrapper .block-title span{
display:none
}

Thank you!

Simion C.
tagDiv Staff

Hi,

I believe you use the Jetpack popular sorting, that means the the plugin will filter and display the resulting posts, everything is done through the Jetpack plugin. But it should work properly.

What happens if you increase the number of posts in the block settings? Do other posts appear?

Bogdan B.
tagDiv Staff

Hi,

The more stories font is altered from the font of the module used on that section. If for example you have module 6 here: https://www.screencast.com/t/uqJ0UdopmOm you can change the font from here: https://www.screencast.com/t/7YzXFVELxco4
You have to use the modules, not the particular blocks. A block is made out of 1 or more modules: https://forum.tagdiv.com/theme-blocks-modules/
Mobile fonts cannot be changed. Sorry. It can only be done with custom css. The theme offers no font customization for mobile devices.

Thanks

Diario Carioca
tagDiv Member

I downloaded the blank category template in the cloud library and created one my way. But the modules repeat the posts … I used flex block 1 and loop posts to create the template of the category, but the posts insist on appearing duplicates … as a palliative I used offset posts, but it does not always turn out well.

Exemple:

https://odiariocarioca.com/noticias-sobre/famosos

Simion C.
tagDiv Staff

Hi,

So you mean the thumbnails disappeared from blocks/grids modules? Maybe after changing the filter settings the new posts which appear don’t have featured images set
https://forum.tagdiv.com/featured-image-or-video/
If that is the case there will be no thumbnails created
https://forum.tagdiv.com/theme-thumbs/

But you say the images disappeared in the whole website and also the tagDiv composer plugin has been removed? Now that is unusual. Could be related to insufficient resources, specially WP memory
https://forum.tagdiv.com/requirements-for-newspaper/
I would suggest that you contact the hosting provider and ask them to increase the values of the parameters mentioned in the guide if necessary.
Also maybe they can check if something happened with the server or database recently.

Bogdan B.
tagDiv Staff

Hi,

Please provide a link to your site so we can investigate the block.

Thank you!

Bogdan B.
tagDiv Staff

Sorry but our theme has only 3 sliding elements possibilities.
A big grid slide: https://demo.tagdiv.com/newspaper/big-grid-slide/
A simple sliding block: https://demo.tagdiv.com/newspaper/ios-slider/
And the revolution slider plugin.
These are the only sliding options available. If none of these meet your criteria, you will have to search for a plugin that can provide the needed implementation

Thank you!

Bogdan B.
tagDiv Staff

Hello,

The block is custom made. It is not a default implementation. The user modified a theme block in order to get that design. It is block 21 but altered.

Thank you!

Simion C.
tagDiv Staff

Hi,

Some elements will still not work properly when both composers are active, some issues were fixed. For example theme provided blocks and grids should work and display the same with both active.
Visual composer specific elements or addons will not work if Visual composer is deactivated. Also they may not display or work properly if both page builders are active. So this may not be easy.

One way to check what will happen in your case is to create a local copy of the website, install and activate the tagDiv composer, then identify whatever problems should present themselves. Better this way than doing it on the live website.

Thanks

Simion C.
tagDiv Staff

Hi,

Maybe you can check what files exactly occupy that space somehow. Note that the theme will create multiple thumbnails from the images you set as featured, that could be it
https://forum.tagdiv.com/theme-thumbs/
Disable unused sizes to save up space if that is the case. A list of the modules used by blocks and grids here
https://forum.tagdiv.com/theme-blocks-modules/

simos
Participant
#0

I need a help. using 9 version I have custom content I try to build a new block module with using td-api-plugin.
Please have a look the link
http://suman.gr/devne/suman/
its showing block but its out side of the block at the top left of the page. It might show bottom.. what parameter missing.. need to call any other function.. This might be huge help for me.
Best regards
Simos

Here is my custom code under module >> td_module_77.php

<?php

$exclude = array();

/* OPED */
$oped_tag_post_args = array(
‘no_found_rows’ => true,
‘numberposts’ => -1,
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘order’ => ‘DESC’,
‘orderby’ => ‘date’,
‘ignore_sticky_posts’ => false,
‘tag_slug__in’ => ‘oped’
);

$oped_tag_posts = get_posts($oped_tag_post_args);
foreach ($oped_tag_posts as $post) { $exclude[] = $post->ID; }

?>

<div class=”row” style = “padding:0 10px;” id =””>
<?php $limit = 6; if ($oped_tag_posts) : foreach (array_slice($oped_tag_posts, 0, $limit) as $post) : setup_postdata($post); ?>
<div class=”col-sm-2 col-md-2″ style = “max-width:200px;min-width:180px;margin:0 auto;min-height: 400px;”>
<?php
$post->box_class = ‘medium’;
$post->show_author_thumb = true;
get_template_part(‘partials/post-item7’, ‘box’);
?>
</div>
<?php endforeach; array_splice($oped_tag_posts, 0, $limit); endif; ?>

</div>

<?php

class td_module_77 extends td_module {

function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}

function render() {
ob_start();

?>

<?php return ob_get_clean();
}
}

PatWire
tagDiv Member

Simion in fact it just happened ( 0847am ) see now the block is this: https://imgur.com/a/I8tmwZB – the latest chosen block and indeed this block also shows as the block in TD Composer ‘edit page’ screen – they both exist at different times and the same time both on page and in edit screen of TD Composer ( parallel universe? :-))

If you view the home page you will see one or the other

Pat

PatWire
tagDiv Member

That’s exactly it Simion – I cannot replicate it on demand but it happened this morning again – it’s the home page https://westbridgfordwire.com

Currently ( 8:45am UK) this is showing https://imgur.com/a/yuvOofv – but that isn’t the current block chosen in TD Composer, and earlier today a different block was showing, the last chosen block – I haven’t done anything except browse the site to see this

Note that if I edit page with TD Composer, the block is there – view the page then on a mobile device, and you will see the other block, the last chosen block showing, mobile isn’t the issue though – because that same block will show on the homepage again later at some random time

After advice from Bogdan I switched ‘duplicate articles’ to allowed, but this doesn’t fix it

Thanks

Pat

Simion C.
tagDiv Staff

Hi,

The same happened for me, if the booster is active the value set in the flex block image height does not apply anymore. I will add this on our list and it will be investigated.

Sorry for the inconvenience, best you leave the booster deactivated so you can use the flex block setting properly.

Simion C.
tagDiv Staff

Hi,

This is unusual, so you delete a block in the sidebar and set a new one, then sometimes the old block is still displayed? Once removed and saved/updated it would be somewhat impossible that the old one is still displayed.

Are you checking and seeing the problem in the same conditions? If you could provide a link to where this happens, we will take a look. Provide a link, mention what you are doing and what happens exactly.

Thanks

Viewing 25 results - 18,676 through 18,700 (of 39,816 total)