Customize Theme Template at code level

Posted in: Newspaper
Post count: 4

When Newspaper theme switched to Cloud Templates it broke my child theme customizations. Specifically I had custom subtitle fields added to the header section. see below for example. How can I fix this using cloud templates?

<header class=”td-post-title”>
<?php echo $td_mod_single->get_category(); ?>
<?php echo $td_mod_single->get_title();?>

<—-Custom code start——>
<?php if (!empty($td_mod_single->td_post_theme_settings[‘td_genetics’])) { ?>
<p class=”td-post-sub-title”><?php echo $td_mod_single->td_post_theme_settings[‘td_genetics’];?></p>
<?php } ?>

<?php if (!empty($td_mod_single->td_post_theme_settings[‘td_breeder’])) { ?>
<p class=”td-post-breeder-header”><?php echo $td_mod_single->td_post_theme_settings[‘td_breeder’];?></p>
<?php } ?>

<—-Custom code End——>
<div class=”td-module-meta-info”>
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>

</header>

Post count: 35449

Hi,

Please note that these kink of customization are not covered by the theme support -> https://forum.tagdiv.com/support-policy-2/

Thank you for your understanding!

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