Subtitle in front

Posted in: Newspaper
Post count: 13

Hi!
i need to change subtitle order, just above the title but i dont find the php file to edit the code.. where is???
no css solution please.

<header class=”td-post-title”>
<h1 class=”entry-title”>text title</h1>
<p class=”td-post-sub-title”>text subtitle

</header>

to

<header class=”td-post-title”>
<p class=”td-post-sub-title”>text subtitle

<h1 class=”entry-title”>text title</h1>
</header>

thanks

Post count: 18283

Hello !

The codes can be found in here: https://www.screencast.com/t/aqrlYHKGGh

Path: wp-content\plugins\td-composer\legacy\Newspaper\parts\single

Thank you !

Post count: 13

what file???
only i see especific code in single_template_xx.php but all are the same..

original in all files:
<header class=”td-post-title”>

<?php echo $td_mod_single->get_category(); ?>
<?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);?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>

</header>

i edit (all files) so:

<header class=”td-post-title”>

<?php echo $td_mod_single->get_category(); ?>

<?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 } ?>

<?php echo $td_mod_single->get_title();?>

<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>


but does not work.. please what file?? and what is the correct code to change order (subtitle above the title)

thank you

Post count: 18283

Hello !

Please make sure that you have modified the template that you are using. Also please note that Loop is related with single post template. For example: Loop 1 with post template 1 and so on.

Thank you !

Post count: 13

that is not the files.
the correct file is [Path: wp-content\plugins\td-composer\legacy\Newspaper\loop-single.php]

so when I update the plugin, changes will be lost, how can i make this changes in my child theme???

thanx

Post count: 13

another question, can i add another field (subtitle2)???
I need two subtitles..

thanx

Post count: 18283

Hello !

That will require custom coding. We do offer custom services now. You can contact us for a quotation here: https://tagdiv.com/premium-customization-services/

Also please you can set up your child theme from here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Please note that even child theme is not update proof.

Thank you !

Post count: 13

ok

1) can you give me a budget???
2) does not work, i think because i changed theme name “Newspaper” to “publicaciones-digitales” and “Newspaper-child” to “publicaciones-digitales-child”
(also I changed in style.css theme name etc.. to work):
/*
Theme Name: publicaciones-digitales child theme
Theme URI: http://themeforest.net/user/tagDiv/portfolio
Description: Child theme made by tagDiv
Author: tagDiv
Author URI: http://themeforest.net/user/tagDiv/portfolio
Template: publicaciones-digitales
Version: 9.0c
*/

why does not work? how can i make work file loop-single.php in my custom child theme??
thanks

Post count: 18283

Hello !

Since you have made changes to name you will be facing issues. Our Newspaper theme has been design and edited with specific name. You will have to modify almost every theme file in order to rename it. Please revert your names and then see if your child theme works.

Thank you !

Post count: 13

I restored all template and theme child with correct Newspaper theme name.

I use DEFAULT post template: https://prnt.sc/pb06r4
what file must i edit???
only works on [Path: wp-content\plugins\td-composer\legacy\Newspaper\loop-single.php] but not in my child theme putting loop-single.php in child theme root.

Post count: 13

and most important
what Path must i create in child theme to work my customization???

Post count: 13

works perfect when you select another post template (1-13) but not when is default

Post count: 35449

Hello,

That is because there you need to copy one more file, the single_template_x.php, please check this part from our documentation -> http://prntscr.com/p1jktp -> https://forum.tagdiv.com/the-child-theme-support-tutorial/ also if you want to edit the default post template you’ll need to copy those to files single.php – loop-single.php from wp-content/plugins/td-composer/legacy/Newspaper/loop-single.php directly in the child theme folder, only the post templates from 1 to 13 need to be set in Newspaper-child\parts\single.

Hope this will help you!
Thank you!

Post count: 13

thanks!

[solution] copy single.php to my child theme.

Post count: 35449

Hello,

If you have other questions related to our theme, do not hesitate to ask us!

Thank you!

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