Hello,
I would like to know how to add the author email ( email icon with linked email ) on the single posts on the text line just below the poss title. By Authorname Email – date
I would like toknow how to do it using the cloud_template system and also to do it in one of my websites usign Newspaper Theme version 9.7.2 … I am using the Single Template 2 but changing in the single_template_2.php in my Child theme makes no effect.
Thanks.
Hello !
Unfortunately this option is not available with Newspaper Theme. Since your request is not covered by the support team you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Thank you for your understanding !
I understand, but I dont want a custom work, I know how to do it in any other theme and I have the code, its just that in your theme I don’t know where to do it ..
It should work when I change in the single_template_2.php file, but wahtever i change on that file is not happening on the website.
I just need to know what file is the one that i need to modify.
Thanks.
Hello !
You will have to add the code in both single template and the loop single. For example, loop single 1 is connected to single template 1.
Also make sure that you are editing an applied template. The templates that you edit are this ones: https://www.screencast.com/t/XtKMby0TM
I hope this was helpful !
Thank you !
Thanks for your help.
In the single-template-2.php I see where to add the code next to the author-date under the title:
<header class="td-post-title">
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
</header>
But on the loop-single-2.php there is no place to add the code …
if (have_posts()) {
the_post();
$td_mod_single = new td_module_single($post);
?>
<?php echo $td_mod_single->get_social_sharing_top();?>
<div class="td-post-content">
Anyway, any change I make to the single-template-2.php is not printed on the website.. is like it doesnt work … i just try to print the XXXXXXXXXXXXXXXXXXXX and its like doing nothing…
Hi,
For some templates the meta info is set in single_template_x.php this is the case for loop-single-2.php, -> https://i.imgur.com/upT1GjL.png
Hope this will help you!
Thank you!
yes, I know that, and any change that I do to that file its not reflected in the website…. I have tried doing it on the child theme and in the main theme file, but any change I make to that file is simply not ocurring… and its the template I am using for single post ( number 2 ) … BTW I have tried in all the templates.
Hi,
Let try one more time together.
1. First please make sure that you are using the latest version of Newspaper theme, 10.3.1 also make sure that you are using the child from the current package.
2. Inside the child theme mane two sub-folders parts and single(Newspaper-child/parts/single) after that copy from wp-content/plugins/td-standard-pack/Newspaper/parts/single the loop-style-2.php and single_template_2.php -> https://i.imgur.com/Pj77q5U.png
3. Make sure that you have set the child theme -> https://i.imgur.com/MbJ82bi.png set the post style 2 on posts -> https://i.imgur.com/whjYPbK.png
4. Make the changes -> https://i.imgur.com/yUynyEX.png and check the results -> https://i.imgur.com/XiT2nnK.png
Also all these can be done using a single post template from tagDiv Cloud Library, you can edit it with tagDiv Composer and set the text you want where you want.
Hope this will help you!
Thank you!
I am trying now to fix for the 9.7.2 version … I am unable now to update my website to latest 10.X because you changed all the system and is a big mess for me now bc my sites handle sometimes 10.000 concurrent users and I still don’t know if your 10.X version can handle all that traffic in my dedicated server….
Hi,
Unfortunately in Newspaper v9.7.2 the child theme works only for few files -> https://i.imgur.com/1dIYy9l.png only from Newspaper v9.7.4 the child works for the rest of the files.
If you want you can get the v9.7.4 from here or v9.8 from here
Thank you for your understanding!