Custom Field in block meta info

Posted in: Newspaper
Post count: 13

Hi!
Can you help me into changing the code in the child theme?
I want to replace (or add the possibility) the category in meta info by a custom field I have.

Here: https://imgur.com/a/jkDkQ86

Post count: 20688

Hi,

The modules can be modified in a child theme if needed. A child theme is provided in the theme package (code folder)
https://forum.tagdiv.com/whats-included/
There is a guide for it – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Copy the module you want in the child theme (create the same directory path to the file as in the main theme). Opening a module file you can see what it is designed to display, for example module 1
https://www.screencast.com/t/w8Q3PphLU
So if you copy the module you want in the child theme and add code in it or modify it, it should display the additional information.

Thanks

Post count: 13

It worked.
Here is what I did:
<?php //if ($category_position == 'image') { echo $this->get_category(); }?>
<span class="td-post-category">
<?php if ($category_position == 'image') { echo get_field( 'retranca', $this->post->ID ); }?>
</span>

Post count: 34

Trying to do the same in Posts Loop 2.
Any help?

Post count: 20688

Hi,


@Mercurial
the module used by the loop 2 element is located inside the cloud library plugin
https://www.screencast.com/t/AYh78gWrDSY
Plugin files cannot be modified in a child theme, so any modifications to them will be lost after a theme update when all the plugins are updated. Old versions of the plugins cannot be used with a newer theme version.

Thanks

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