Hi @Bettina
The solution that is found in the link you sent I described that I can do and I even gave the path to the file where the content should be corrected.
The problem is that if I update the theme (td-cloud-library plugin) then the fix disappears. I would like to update normally in such a way that the change remains overwritten, which is why I started this topic asking for help.
I will ask again. How can I fix these items but in such a way that the changes remain after the update. Can you send me a filter that I can put in the functions.php file or how can I create a path in child-theme that will work and in it will be the modification of this code from Path to the file – td-cloud-library/shortcodes/single/tdb_single_author.php
I think this is a problem that I’m not the only one having, because a lot of SEOs want to have a good crawl budget on the site and don’t want to index author links.
Can you please check my answer again and help me with this problem?
Hello,
i have installed child theme and made some changes to functions.php which are working fine. but they are not working on mobile as I have mobile theme plugin installed. i had to make changes to wp-content\plugins\td-composer\mobile\functions.php to make them appear on mobile. but after theme update they are gone and i have to edit mobile’s functions.php again, is there any way keep those changes in mobile’s functions.php after update?? like child theme’s changes which stay on desktop?
Hello,
By default, there is a template that should be applied for all users that are registered on your website.
Now to disable it I believe it can be done with some custom code that can be set in a child theme in functions.php, maybe this article https://wordpress.stackexchange.com/questions/244351/disabling-author-page-only-for-subscribers will help you!
Thank you!
Hi,
Unfortunately, there is no option for this, but I believe it can be done with some javascript and custom css and the code can be set in the child theme in functions.php or even in the theme panel.
Thank you!
Maybe you set it in the wrong functions.php file
I just tested again and for me is working, I also test it in child theme -> https://i.imgur.com/RCDPZC3.png -> https://i.imgur.com/3tQEDB4.png
Hello Bettina,
thank you. I think I have to go the functions.php route. However, I would need more information. I’m using a child theme for the Newspaper, so of course the functions.php doesn’t have line 102, it only has the code for the child theme. However, even when I look at the main theme’s line 102 of functions.php, it says
add_theme_support(‘align-full’);
Which doesn’t seem to be the thing to edit here. So what should I edit and how should I include it in the child themes functions.php?
Thank you,
Manu PĂ€rssinen
You recently added the very valuable “Duplicate” option to the edit options available on the WordPress dashboard Page options – seen when you hover the cursor over a page title in the Page listing :-
Edit with TagDiv Composer | Edit | Quick Edit | Bin | Preview | Duplicate
However, I would like to remove this option, as I use Yoast Duplicate Post. Can this be safely done, if only by using my child theme functions.php or similar?
(The reason is due to the greater number of duplicate options available in the Yeost plugin, most importantly, preserving the parent-child relationship and adding a prefix to the title to indicate it is a duplicate.)
Thanks!
Hi,
If you are using the child theme (child theme must be enabled) and you set the function in the functions.php file from the child theme, then this should be apply.
Thanks,
Hi,
The child theme is already available in the /code/ folder in the package that you downloaded from Themeforest. It includes the style.css and functions.php files by default.
Thank you!
Hello,
My suggestion is to try first the theme option for this -> https://i.imgur.com/8iB5qME.png -> https://i.imgur.com/4QNFQk8.png
Also, if that code need to be set in functions.php, the please use a child theme and set that code in the functions.php from the child theme.
Thank you!
Hi Satyajit,
If you have custom functions then you can set theme in the child theme on functions.php also the css can be set in the style.css (the css code can be also set in the theme panel in custom css section).
I hope this will help you!
Thank you!
Hello,
Please check this article https://webhostinghero.org/how-to-exclude-categories-from-search-in-wordpress/ -> wp-content/plugins/td-composer/legacy/Newspaper/functions.php
You can build a child theme and implement this, so it wonât get overwritten by the updates.
Thank you for understanding!
Hello!
Please provide some screenshots with the child theme functions.php file.
Thank you!
My site is here:
I just started developing the site. I installed the child theme included in the download and it seems to be working properly, but when I make changes to the child theme CSS they won’t show up on the site.
Troubleshooting so far:
–If I navigate to https://redstateroundup.com/wp-content/themes/Newspaper-child/style.css in a browser the changes are there.
–The CSS is valid: It works when I test it in the CSS panel in Console, in the WP Customize tool and in the CSS field in Theme Panel > Custom Code.
–When I look at any page’s source code there’s no link to the child theme CSS.
–I checked functions.php to make sure the enqueue function is there.
–I deleted and reinstalled the child theme from scratch but it didn’t help.
–I flushed the cache in my browser and on my host (IONOS).
–I tried hard-coding a link to the child theme CSS in header.php but that didn’t help. The hard-coded CSS link doesn’t show up.
–When I make file changes and check in my FTP client (CyberDuck) the file changes and date modified time update.
As far as I can tell I’m doing everything right, but the site won’t write any child theme changes even though the files seem to be right where they belong.
I can use the Custom Code in Theme Panel if I have to, but also I need to modify PHP files in the child theme.
Any help greatly appreciated!
Hello,
This type the code that you want to add, needs to be added in the funtions.php file.
You can set it in a child theme, there is a file called functions.php -> https://forum.tagdiv.com/the-child-theme-support-tutorial/, and then you will not lose your changes after the update
Thank you!
For someone looking for a solution that does not override your changes, place this one in your functions.php of your child theme:
add_filter( 'comment_form_defaults', 'custom_reply_title' );
function custom_reply_title( $defaults ){
$defaults['title_reply_before'] = '<span id="reply-title" class="h4 comment-reply-title">';
$defaults['title_reply_after'] = '</span>';
return $defaults;
}
Hi tricksraman0923, one of the best solutions it is the one recommended by Satwik. You can use the code suggested and you can set it in a child theme, there is a file called functions.php -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
Hi,
The above code is not a css is a function and that need to be set in functions.php, for this is recommended to use a child theme.
Unfortunately, our theme do not have an option for nofollow on feature images, so maybe the code that you found can help with this.
Thank you!
Hi Ckyd,
Using the Newspaper theme the Google Analytics need to be inserted here -> https://i.imgur.com/LfZlRu4.png
About that code, I think that it is a part from a function, and usually those need to be set in functions.php, for this we recommend to use the child theme .
In case that the code need to be set in the header.php then the file path is wp-content/plugins/td-composer/legacy/Newspaper/header.php
I hope this will help you!
Hi Romi, there is a solution, but this will hide the post templates for all users that are not admin. For this you need to use this code:
-> https://pastebin.com/zcB66QAi
You need to set it in functions.php, I recommend to set it in the child theme functions.php.
I hope this will help you!
Hi,
Depends, if the fonts are used on your website and you remove them, then this will no longer be display.
But, I think that you can use a better solution, please try to preload those fonts:
-> https://pastebin.com/KxSP2ERL
Hope this code to work.
Also if you are using a child theme, then the code need to be set in the child theme functions.php
Let me know the results!
It is my functions.php in child theme:

Hello,
your solution not working đ
Please tell me, why in functions.php I don’t see “?>” in latest line?
Can you create to me functions.php for child theme without www?
Hello,
Unfortunately, another method to set the excerpt for pages we don’t have, only this, to set the code in functions.php, but you can set the file in a child theme, and then you will not lose your changes after the update -> https://theme.co/forum/t/add-excerpt-to-pages/55460
Thank you!
HI,
In order to fix this – https://prnt.sc/22pey9o , I am adding the following code in the child theme’s funtions.php but getting the error showing in the last.
// Preload Newspaper fonts for responsive theme (main theme) function
dns_prefetch_responsive()
{
echo '<link rel="preload" href="https://techreek.com/wp-content/plugins/td-composer/mobile/images/icons/mobile-theme.woff?10" as="font">';
}
add_action( 'wp_head', 'dns_prefetch_responsive', 0 );
Your PHP code changes were rolled back due to an error on line 12 of file wp-content/themes/techreek-child/functions.php. Please fix and try saving again.
syntax error, unexpected token “echo”