Search Results for 'block'

Results from the Forum
Catalin
tagDiv Staff

Hi,

From what you explain I understand that you want to make your Category page which named BIKES to be set up your HOMEPAGE, right? In that case, you need to use the TD Composer and create another page, using these elements from that page. You can try making a 301 Redirect to your Homepage which is another example which you can follow. Also, using the TD Composer, please notice that you can filter your block by your desired categories from block settings. Check here -> https://www.screencast.com/t/MGzMcMRiP0M

Hope this helps!

If is not what you mean, please provide more details so I will be able to provide a more accurate response. I’m here to assist you.

Thanks for your understanding!

Catalin
tagDiv Staff

Hi MG,

After inspecting your website I saw that your Author appears only for your post pages and not for blocks/module. For the beginning, please check the Theme panel settings from here -> https://www.screencast.com/t/ESPSd6Sw3r Ensure that you have enabled this meta information from there, clear all the caches, purge CDN files and check the results.

Hope this helps and let us know how it goes!

Thanks for your understanding!

Calin
tagDiv Staff

Hi,

Please note that both example that you provide are for posts, and in order to achieve the next or continue button instead of numbered pagination you’ll need to make some changes in theme files.
But you can achieve the next/prev button like in your screenshot using some custom css here is an example -> https://www.screencast.com/t/cGvm7NDMqY
.td-post-next-prev .td-block-span6 {
padding: 15px;
text-align: center;
width: 40%;
margin-left:5%;
margin-right: 5%;
border-radius: 15px;
margin-bottom: 42px;
}
.td-post-next-prev .td-block-span6:nth-child(1) a{
margin: 0;
color: #333;
}
.td-post-next-prev .td-block-span6:nth-child(3) a {
margin: 0;
color: #fff;
}
.td-post-next-prev .td-block-span6:nth-child(1) span{
color: #333;
font-size: 18px;
font-weight: 700;
}
.td-post-next-prev .td-block-span6:nth-child(3) span{
color: #fff;
font-size: 18px;
font-weight: 700;
}
.td-post-next-prev .td-block-span6:nth-child(1){
border: 1px solid #e6e6e6;
background-color: #e6e6e6;
}
.td-post-next-prev .td-block-span6:nth-child(3){
background-color: #4db2ec;
border: 1px solid #4db2ec;
}

-> https://www.screencast.com/t/m1VgxwIc
You need to set this custom css in Newspaper>Theme panel>Custom code>Custom css

Thank you for your understanding!

afrobiz
Participant
#0

Hi,

I’m getting the following error messages on the homepage of my website. But it does not happen on the category pages or the post pages.

Warning: Illegal string offset ‘limit’ in /home/…./…../wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 40

Warning: Illegal string offset ‘class’ in /home/…./…../wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 527

Warning: array_key_exists() expects parameter 2 to be array, string given in /home/…./…../wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 498

EUCMH
Participant
#0

I have had already a contact for the problem of the ‘load more button’ which doesn’t show anymore on my website (while doing a total site redo).
I have just found something out : this is the background image which cover the button. If you click the button space, old your mouse and drag the button outside the background the button is present.
I managed to lower the loading at the start of the homepage and the button is present until the image comes and cover it.
<br>
https://www.eucmh.be

PS : this message counts only for the blocks with a background image and NPP 9

lazdim
tagDiv Member

Hi Catalin,
I have installed the td_api_plugin and I have already used Block 77, although it doesn’t show up in TDComposer.
OK, let’s say I want to create another block: Block 88.
When I go to the API tutorial, it says: “First create a folder and name it for example “td-api-plugin””
Where exactly should I do that? There is already a folder “td-api-plugin” which is part of Block 77.
What about my new Block 88? Where should I create the folder and the files needed?
should I open the same .php file and add td_api_block::add(‘td_block_88 etc?
Can you, please, be more specific?

Thank you in advance.

ySV
Participant
#0

Hello i have a problem with Accent hover color of read more button in block header 8. When i set option in tG composer.

Screenshot of problem:

For resolve problem i try to use this code, but it work only in custom code theme area and not in my style.css of child theme:
.td_module_17 .td-read-more a {
background-color: transparent !important;
}

Screenshot solved problem:

Can you help me to write a code that work on a theme child style.css ?

m0rtyr
tagDiv Member

Thank you for your help
I hardcoded this, cloned blocks biggridslide and biggrid2 and modified the code for not checking columns width before render.

For my surprise, big grid slide works perfectly in a 2/3 column.

Anyway it is bit frustrating when trying to have a conversation but the other side not. I have asked 2 times for a reason, but no answer found 🙁

Calin
tagDiv Staff

Hi,

Only if you chose a footer template that is empty and you set in footer widgets the blocks you want to show, for example -> https://www.screencast.com/t/wQnryIm1bo -> https://www.screencast.com/t/YIvVDaCIHyw -> https://www.screencast.com/t/2o0GOzaPU2

Hope this will help you!

Calin
tagDiv Staff

Hi,

Some of footers templates are custom made and you can not remove the blocks from it, only add new ones, that’s way the footer widgets are empty -> https://www.screencast.com/t/vFtmLxpxo6
Footer templates -> https://forum.tagdiv.com/footer-templates/

Thank you for your understanding!

ebms
tagDiv Member

Hi Calin,

As shown in the screenshot of modified td_module_2.php (http://prntscr.com/mqh9nz), I display the value twice – with and without an “if-condition”.

Both variants work in the Article Display Wiew M2, but only the variant without if-condition works in block 4. But I need the if-condition in block 4. Please have a look at the links and screenshots in my previous comments.

Best regards
Eugen

rtofficial
Participant
#0

Hello Support Staff,

How to relocate/shift/move forward and backwards arrows from bottom of the block to its header (at the right side)?

Please see: https://prnt.sc/mrbm5g

Regards.

Calin
tagDiv Staff

Hi,

Please make a test, remove the if condition save, clear all cache and see if now is appearing in block 4.

Thank you

Diniska
Participant
#0

Hello,
is it posible to deativate all thumb sizes and use only the original images as thumbs in all Modules/Blocks?

Calin
tagDiv Staff

Hi,

In order to set a widget at the top of post you’ll need to import a single post template from tagDIv Cloud Library, edit it and set above the content the widget/block you want to show
-> https://www.screencast.com/t/FP4ghDF7br

Thank you for your understanding!

Catalin
tagDiv Staff

Hi,

All of these sections can be changed with TD Composer from here -> https://www.screencast.com/t/UpzTb5ZY8 Here is talking about Custom Title for these blocks. Also, the Latest Articles section can be changed from the Page Template, from here -> https://www.screencast.com/t/xn87crIjZ At the section Homepage Latest Articles, you have access to change the Posts Loops Settings. For more information about this, please check the following useful guide from here -> https://forum.tagdiv.com/page-templates-2/
-> https://forum.tagdiv.com/tagdiv-composer-tutorial/

Thanks for your understanding!

Calin
tagDiv Staff

Hi,

So if you are set a feature video for post this will show like this in front-end -> https://www.screencast.com/t/4eLdoLyJuE7 and so will look in modules/blocks -> https://www.screencast.com/t/Kzgo8Ew7 also for feature video in posts, you need to set special post styles -> https://www.screencast.com/t/PW6q63tReeNk

Thank you.

Catalin
tagDiv Staff

Hi,

If you want to create your own custom block, you need to create it via API implementation according to our useful guide from here -> https://forum.tagdiv.com/td_api_blockadd/
As a hint, you should follow the steps where block 1 has been made and replicate it for your custom block. Also, please notice that guide is addressed only for advanced users and if you are not aware of the steps which are needed to make in this case, please consider hiring a freelancer/developer to help you because we cannot provide support for API implementation and custom work, sorry!

Thanks for your understanding!

Calin
tagDiv Staff

Hi,

Now I understand, sorry I was thinking that you want only a different layout.
So if you remove the if condition and you let https://www.screencast.com/t/rXZpbihyrG9 this changes appear in block 4 ?
The code seams to be like in AFC documentation -> https://www.advancedcustomfields.com/resources/hiding-empty-fields/
Also please make sure that you clear all cache after you make some changes.

Thank you!

DADDY
Participant
#0

How can I modify BLOCK ? Default Demo -> Latest Articles, Most Popular, Hot News. I can’t modify with TD Composer these 3 BLOCKS.
thanks

sanzatg
Participant
#0

I’m struggling to achieve some features in your demo. I want related posts to look beautifully like yours. Also, can I have the NEXT and PREVIOUS posts look like the demo? How can I have the FLEX BLOCK 1 in the sidebar widget? My site is http://bit.ly/2OBVdDc

lazdim
Participant
#0

Hey guys,
OK, I have created the following .php page which “reads” the 5 best articles form another portal via JSON.
I don’t to mess up with extra CSS code and using iframe so I thought it would be a good idea to create a block which will show these articles. I want the block’s layout to be exactly the same as Block 1.
So, I copied all the HTML code for Block 1 and I ended up with the following:

<?php

$carStr = file_get_contents('http://www.caranddriver.gr/xml/json/getjson.asp?platform=web&ret=cu&method=oPublicationJSON.getCategoryPublications(41547,1,5)');
//Now decode the JSON using json_decode():

$carJson = json_decode($carStr, true);
// decode the JSON into an associative array
$i = 1;
?>

<?php

function trunc($phrase, $max_words) {
$phrase_array = explode(' ',$phrase);
if(count($phrase_array) > $max_words && $max_words > 0)
$phrase = implode(' ',array_slice($phrase_array, 0, $max_words)).'...';
return $phrase;
}
?>

<?php
echo '<div id=car>';

echo '<div class="td-block-row">
<div class="td-block-span6">
<div class="td_module_4 td_module_wrap td-animation-stack td-meta-info-hide">
<div class="td-module-image">
<div class="td-module-thumb">';

$counter = 1;
foreach ($carJson['publications'] as $row) {

$srcid = $row['src_id'];
$imgid = $row['photos'][0]['img_id'];
$img_type_small = 14000;
if($counter == 1) {
$img_type = 14001;

echo '';
echo '
</div></div>';

echo '<h3 class="entry-title td-module-title">' . $row['art_title'] .'</h3>';
echo '<div class="td-module-meta-info"></div>';

echo '<div class="td-excerpt">' . $row['art_summary'] . '</div></div></div> <!-- ./td-block-span6 -->';

} //end if

else {
$img_type = 14001;

echo '<div class="td-block-span6"><div class="td_module_6 td_module_wrap td-animation-stack td-meta-info-hide"><div class="td-module-thumb">';

echo '';
echo '
</div></div>';

echo '<div class="item-details"><h3 class="entry-title td-module-title">';
echo '' . $row['art_title'].'</h3>';
echo '<div class="td-module-meta-info"></div>
</div>

</div>
</div> <!-- ./td-block-span6 -->';

}//end else
$i++;
$counter++;

};// end foreach

echo '</div></div>';
?>

I went to Developer Info and read the instructions of creating a new block using a shortcode.
However, the example is simple. It doesn’t help me a lot.

Can anyone guide me to a more relative tutorial which will help me make this code to a block same as Block 1?

Thank you in advance.

m0rtyr
tagDiv Member

Is there any particular reason to limit this great slider?
As it adapts well to different widths I cant understand why you have limited its use as it could perfectly adapt its size to a 2/3 column.
There is not any other flex block with slider which can show multiple elements.

ebms
tagDiv Member

Hi Calin,
i cant see how flex solve my problem.

I’ve added additional input fields (http://prntscr.com/mqxeqt) with the ACF (Advanced Custom Fields) plugin.

I would like to display these values in the article View – for this I modified the file td_module_2.php.
With “<?php the_field(‘kontext-titel’, $this->post->ID); ?>” this works both in the Article Display Wiew M2 and when using the Block 4 in TD Composer. But as soon as I do an if query “<?php if( get_field(‘kontext-titel’) ): ?><?php the_field(‘kontext-titel’, $this->post->ID); ?><?php endif; ?>” it works only in the Article Display Wiew M2 but not in block 4. Here are the screenshots:
modified td_module_2.php: http://prntscr.com/mqh9nz
Article Display Wiew M2: http://s752582646.online.de/category/magazin/new-business
Block 4 in TD Composer: http://s752582646.online.de/magazin

Best regards
Eugen

4016
Participant
#0

I have a number of questions regarding the template “BUSINESS”:
1. To know where to put the widget on the site where I can see the location of the blocks (position)?
2. How can I place my widget in a specific block (position)?
2. How can I rename the Today widget?
3. How can I turn off the weather widget? I don’t have them in the settings (control panel – appearance – widgets).

Viewing 25 results - 16,576 through 16,600 (of 39,816 total)