Creating new template of a block ?

Posted in: Newspaper
Post count: 12

Hello team,
How can I create a new template of a block ?

The result of the block will be something like that :
Template of the block

Thank you in advance,
Regards,

  • This topic was modified 9 years by Simon_.
Post count: 22421

Hello,

In order to create a whole new block to use in our theme you will require substantial coding skills. You will have to use the theme api system. Here is an example: https://forum.tagdiv.com/td_api_blockadd/
Please note that this is not covered by the theme support as it represents customization.

Thank you!

Post count: 12

Hello,
Thanks for your answer.

So if I want to change the appearence editing the HTML template of a block, where can I find it ?

Thanks a lots,

Post count: 22421

Hi,

Tha api system shows how a block is being created. It is added with php and js, not standard html. You have access to the html to a certain extent though. Depending on the block you are searching for it can be one of these files: http://screencast.com/t/lZDYy5yDza and as each block is made out of 1 or more modules: http://screencast.com/t/LhjCGOowQm
In order to see which block uses which module, you can check this list: http://screencast.com/t/12Ki9n0zDh

Thank you!

Post count: 12

Ok so if I want to modify the block22,
module
I have to :

  • Dupplicate, edit, and rename : includes/shortcodes/td_block_22.php
  • Dupplicate, edit, and rename : includes/modules/td_module_17.php

Is it right ?

Regards,

  • This reply was modified 9 years by Simon_.
Post count: 23312

Hello Simon_,

Yes, the first steps are correct but are not enough. If you want to create a new block, please notice that the only way of doing this is using the API implementation. For more information about this regard, please consult our documentation here -> https://forum.tagdiv.com/td_api_blockadd/ You should read all our documentation for this way of implementing and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at this moment, and the API implementation is not covered by our support, sorry!

Thanks for your understanding!

Post count: 12

Thank you,
I read that, but I don’t saw where can I call the API ?
In wich file do I have to call it ?

Regards,

Post count: 23312

Hello Simon_,

The API implementation should have to be done inside the td_config.php core file, like this -> http://screencast.com/t/oAbXUMNl5v Please notice that implementation is not a simple task and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for the message!

Post count: 12

Thank you for your answer.
I don’t want a custom work of your team and I’m aware that the support don’t recover customization…
I just need clear elements to begin customization of the theme without crash it.

Regards,

Post count: 23312

Hello Simon_,

Please notice that above I gave you all the hints to achieve as you wish. (our documentation regarding on API implementation and which is the core file where you need to make these changes).

Thanks for your understanding!

Post count: 12

The api is very flexible:)

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.