Custom Fields on Flex Blocks

Posted in: Newspaper
Post count: 3

hi,

How can we modified a Flex Blocks with custom fields?
For example: Change Author Post for and custom field called “Autor” (Sometimes, an article has 2 authors)

Best regards

Post count: 18283

Hello !

Unfortunately this option is not yet available in Newspaper Theme. This will require coding skills and custom work which is not covered by the support team.

Thank you !

Post count: 22

Hi Vlad,

Can you please tell me where I can find the HTML template for the box “Single Post Author Box”? I would like to customize it.

Br

Post count: 35449

Hi infogate2020, maybe you can use a plugin like Edit Author Slug to display more authors.
Hi V3N0M, this is a cloud element, it is set in -> wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_author_box.php
Hope this will help you!

Post count: 22

Hi Calin,

Can I rework/overwrite the file without hesitation or will it be overwritten again with the next theme update? What exactly does it mean that it is in the cloud? Should I store it somewhere else in my system to protect it from being overwritten?

Br

Post count: 3

Thanks for your answers.
But can we insert an article signed by someone as an “autor” but that was writter for a journalist registered on wordpress local Database

Post count: 35449

Hi V3N0M, the cloud elements can be edited using tagDiv Composer and these elements can not be set in a child theme, therefore when you’ll update the theme, the changes made in these files will be lost.
Hi infogate2020, sorry I indicate a wrong plugin, the one that I was referring is this one -> https://wordpress.org/plugins/molongui-authorship/ -> https://i.imgur.com/sv61xrc.png -> https://i.imgur.com/JYGTRP3.png -> https://i.imgur.com/A3OUITe.png

Thank you!

Post count: 22

Hi Calin,
Thanks for your fast response.

How can I create my own author box that will not be overwritten by an update? What are the requirements for the theme editor to recognize my file/template as an element and embed it into the template?

Is this the right guideline for my adaptation? => https://forum.tagdiv.com/developer-info/

Br

  • This reply was modified 5 years by V3N0M.
Post count: 35449

Hi V3N0M, this will not be so easy to do it since the changes from theme files are overwrite when you’ll update the theme, only the element that can be set in a child theme can be keep.
The standard file that is responsible for author box it is wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> https://i.imgur.com/YiHzguY.png
Thank you!

Post count: 22

Hi Calin,

I have not yet fully understood the principle. Creating the Childtheme was no problem, but the Composer is a plugin, and the ‘Single Post Author Box’ is defined in the plugin. But I cannot overwrite plugins in a Childtheme or code elements for a plugin. Or can I?

I also extended the code in “wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php”, but it doesn’t seem to run. Does this file only serve as a base and must be compiled whenever changes are made? How can I tell the compiler that there are new changes? Even after removing and adding the module in the manager no changes are shown.

Br

Post count: 35449

Hi V3N0M,

The old theme functions was set in two plugins tagDiv Standard Pack and tagDiv Composer, from these two plugins you can set the files under the wp-content/plugins/tagdiv-plugin/legacy/Newspaper in in child theme.
Noe if you want to edit the elements that are in tagDiv Cloud Library, these can not be set in child theme, for example changing this file -> wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_author_box.php will work only in theme plugins files and is a cloud element. Editing this file will work in child theme wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php

Hope this is make sens.

Post count: 22

Hi, Calin,

Yes, it’s a little confusing, but I think once i understand it, and it works, I’ll be able to handle it 🙂

I have now adapted the file “wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php”, but no change appears on the author’s box. I tested it in the main-theme and in the child theme, removed the author-box and added it again, but nothing changes. Of course, all cache plugins are deactivated, too.

Wouldn’t it be the easiest to create a complete own block for the tagDiv Composer? (In the composer it is called “Single Post shortcodes”). To avoid confusion or misunderstandings when naming elements like modules, blocks, etc. I have attached a screen to show exactly which element I want to replace/rebuild.

https://prnt.sc/ujzhai

Br

  • This reply was modified 5 years by V3N0M.
Post count: 35449

Hi V3N0M,

That element can not be set in child theme, but it can be edited in main theme file -> wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_author_box.php for example -> https://i.imgur.com/LKQEiRR.png -> https://i.imgur.com/sHkWfDA.png
Also there is not easy to make a new element for tagDiv Composer, you need to have very good knowledge about our theme builder and how as made.

Thank you for your understanding!

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