- NewsmagChild theme support
- NewsmagWhat’s included in Newsmag theme package
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
All my questions are not actual, except for:
But when I activated child theme (file “function.php” located in parent directory of child theme, no changes in php file) I see that error in admin panel and on my site – http://prntscr.com/jl2i4j
When I activated child theme (without file “function.php” in parent directory of child theme) all worked.
I need in the parent directory file functioon.php ?
-
This reply was modified 8 years by
13teen.
I did according to your recommendation.
http://prntscr.com/jl2gm1
http://prntscr.com/jl2gwk
All correct?
But when I activated child theme (file “function.php” located in parent directory of child theme, no changes in php file) I see that error in admin panel and on my site – http://prntscr.com/jl2i4j
When I activated child theme (without file “function.php” in parent directory of child theme) I see that – http://prntscr.com/jl2jkk – not display icons. But changes in td_module_1.php correctly displayed.
I need in the parent directory file functioon.php ?
-
This reply was modified 8 years by
13teen.
Tried it the same as you, first copied the child theme
– https://www.screencast.com/t/bGJMnIF1ko
Then created the path to module 1 and copied the file inside the child theme
– https://www.screencast.com/t/Twkw8OzgQ
Then I removed all the module meta in the child theme file, to see if it applies
– https://www.screencast.com/t/j2N5aHZg
Then as I activated the child theme, the module file used was for it. Module 1 no longer displayed any meta
– https://www.screencast.com/t/qAUnMxjk
This means that the child theme modification applies as it should.
The child theme is provided with a stylesheet and functions file. Do not replace the default code inside the functions or rename the functions file, add code after it if necessary. Do not rename the child theme, this will cause problems as well.
My child theme consist of – http://prntscr.com/jksepq and http://prntscr.com/jksez7
1) Empty “Style.css” with commented lines
/*
Theme Name: Newspaper-child
Theme URI: http://tagdiv.com
Description: Premium WordPress template, clean and easy to use.
Version: 8.7.4
Author: tagDiv
Author URI: http://themeforest.net/user/tagDiv/portfolio
Template: Newspaper
License:
License URI:
Tags:black, white, one-column, two-columns, fixed-layout
*/
2) “Function.php” from actual theme. But, when I activate child-theme with function.php I see this error – http://prntscr.com/jkscos
When I rename function.php, displayed like that – http://prntscr.com/jksc04
3) Module files – http://prntscr.com/jksepq
Actual theme activeted – http://prntscr.com/jks22p
Child theme activeted – http://prntscr.com/jksc04 – without function.php
What exactly files must be in parent directory of child theme ?
What theme must been activated in admin panel – actual theme or child theme ?
-
This reply was modified 8 years by
13teen.
Thanks.
But I not understand how it’s work. I create child theme, copied changed files to child theme, in the parent theme replaced all modified files on a original files (files -> includes -> modules -> td_module_1.php, for example)
child theme – http://prntscr.com/jknc6j
But all my changes not displayed. What I do wrong?
Must be like this – https://prnt.sc/jjz0vb
But now it’s like this – http://prntscr.com/jkngim
Hello leanjucas,
I have inspected your website and I saw that you are not using Featured images for those posts -> https://www.screencast.com/t/7DLFt1Xu and that’s why you do not bring any image on the block and also, I have noticed that it could be a temporary problem with your opacity for the others images. Maybe your images are stuck in opacity 0. This usually happens on a js error caused by plugins or customization or other external optimization tools. Please disable all plugins except visual composer, clear cache and reset CDN files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functioning of the theme.
We recommend using our TD COmposer because all of the major improvements in the future will be made on this plugin.
Hope this helps and let us know how it goes!
Thanks for the message!
The theme files will be replaced. So you could either make a backup of the file and replace the new theme file after then update (be sure to check the changelog before, that file could be modified in the update) or modify it in a child theme. The child theme supports all module files
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Hi,
So you don’t remember where exactly you entered that code. Maybe check the theme panel custom code sections, analytics section as well. Check the theme header file, it could be loading in the head
– https://www.screencast.com/t/AAghZTCxB8
Check your child theme if you have one active.
Thanks
Find the 404.php file inside the Newspaper theme and remove this code (preferably in a child theme not to lose the changes with the theme update).
<h4 class="block-title"><span><?php echo __td('OUR LATEST POSTS', TD_THEME_NAME)?></span></h4> <?php
$args = array(
'post_type'=> 'post',
'showposts' => 6
);
query_posts($args);
$td_loop_block_module = td_util::get_option('tds_404_page_layout');
//$td_loop_block_module
locate_template('loop.php', true);
//get_template_part('category', 'slider');
wp_reset_query();
?>
1. If you don’t think you need to make any changes to the main theme core files, then you do not need a child theme. Here are the files that can be changed via a child theme https://forum.tagdiv.com/the-child-theme-support-tutorial/.
2. The custom CSS is saved in your database. So, you will not lose the custom changes on theme update. But to be safe, always backup your site before updating the theme.
3. The Custom CSS panel is the recommended way by the theme developers to add custom CSS. If you want to add the CSS to the main theme, you would have to make changes to the main style.css file by looking at the main instances where each code appears and make the changes there, but you would need to backup the file (and redeploy the changes with each new theme update) or the changes will be overwritten with each update. The custom CSS panel works for both the main theme and the child theme.
4. Again, see this tutorial on how to use the child theme https://forum.tagdiv.com/the-child-theme-support-tutorial/.
5. TD composer is a page builder specifically built and configured to be used with the Newspaper theme. It will continue to receive updates in future and the theme developers recommend it over visual composer. However, the visual composer will still continue to be bundled together with the theme. It is not recommended to use both page builders at the same time. So, it is your choice really on what you want to use between the two (I personally use td composer).
6. The tagDiv Multi-Purpose adds additional elements to the TD composer. It is more beneficial for building landing pages. Read more about it here https://tagdiv.com/newspaper-8-5-update-what-s-new/.
(FYI, I don’t work here).
First, give me some answer to my question.
1) Is it necessary to create a child theme?
2) If I update my theme in future will I lose all custom CSS if I don’t have a child theme already?
3) I have added all my CSS to a theme panel custom CSS CODE field, is there any way to add that CSS directly to theme? If yes then where to add, in the parent theme, or in a child theme?
4) If a child theme is really good for safety then please guide me step by step to create a child theme of my parent theme.
5) In plugin section, there is two-page builder plugin one is td -composer another one is wp bakery page builder, Is it necessary to keep both or one is enough to build any page? If one is enough then which one should I use.
6)How to use tagDiv Multi-Purpose? And how can i take benefit from this plugin?
I hope I will get all answer.
Hi,
You could first try the basics. Deactivate all plugins as a quick test, leave only theme plugins active. Clear all caching and check if this solves the problem. Plugins are the first thing to check.
If you made any modifications or additions to the theme files directly or through a child theme, try to temporarily remove them. Maybe re-save the permalinks as well.
If possible you could check the error log of the server, maybe something can found there that would indicate why this happens.
Now that is unusual, so when setting a simple background image for the category page, it no longer functions properly and leads to an attachment page. I have not seen this before, this is not proper functionality.
I suggest to begin with the basics. Deactivate all plugins except theme plugins, remove any theme modifications, switch from the child theme to the main theme. Temporarily remove codes entered in the theme panel if you have any.
Also try changing the permalink structure to a default one and save. Ultimatelyy you could try re-installing the theme, by FTP would be most recommended
– https://forum.tagdiv.com/install-via-ftp/
Let us know what you find.
Hi,
There are also other problems from what I can see, besides the search issue. The images are not displaying, the ajax filter on blocks when clicked leads to the top of the page, sign in/join does nothing etc.
There are quite a few errors in the page source
– https://www.screencast.com/t/eSUhigs0
This kind of javascript conflicts are usually caused by plugins, code entered in the theme panel, theme files, or child theme. You could check if that is the case. Take them one at a time and keep testing to see if the problem is solved.
Thanks
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
I would like to recommend a better way to handle Retina logos in the Newspaper theme. Right now I believe it’s using javascript, but you can use the native ‘srcset’ attribute to let the browser pick the Retina logo on 2x displays. The code below works on my child theme:
<img src="<?php echo $td_customLogo?>" srcset="<?php echo $td_customLogo?> 1x, <?php echo esc_attr($td_customLogoR) ?> 2x" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
Right now with the javascript method, it downloads the non-Retina logo and the Retina logo. With ‘srcset’ the browser will pick the correct version it needs. Srcset is supported on all major browsers too:
https://webkit.org/demos/srcset/
https://caniuse.com/#search=srcset
Hi,
There are some topics explaining why that happens sometimes. A few here
– https://forum.tagdiv.com/topic/child-theme-css/
– https://forum.tagdiv.com/topic/old-css-ghost-colors/
– https://forum.tagdiv.com/topic/theme-flashing-default-blue-top-bar-before-loading/
Thanks
The website is broken on both Chrome and Firefox for me
– https://www.screencast.com/t/YdouFrti
– https://www.screencast.com/t/sHV8WnBjWbM9
There could be many causes for this to happen. Plugins, theme modifications, code added in the theme panel custom code sections, code entered in theme files or child theme. Check these one at a time and try to identify what is the problem.
I already had this issue before I activated the lazy load. I even deactivated jetpack.
I am not using a child theme either.
Please remove this code from the child theme
– https://www.screencast.com/t/Dna8DgWoX0
It is overriding the default theme code for the Xing icon, there is no need for that code anymore. Remove it and it will look like this
– https://www.screencast.com/t/O1LG3P1E
Hi,
I have inspected the website, and the images are not loading from what I can see. That is usually caused by code entered in the theme panel (including ad codes in some cases)in a child theme or directly in the theme files, or plugins.
I see that you are using the Jetpack lazy load for your images. Please check if the issue is solved when you disable that setting
– https://jetpack.com/support/lazy-images/
Then clear you cache and CDN if used. Let us know the results of this.
Thanks
It may or may not be. The latest version of the theme is compatible with PHP versions up to 7.2. You could make a test and see if changing the PHP version has any effect. If the problem is only on one of the websites and not on the copy, then it may be something specific to it.
Maybe try and identify differences between them. Check plugins, code additions, theme modifications if any, child theme. Maybe try a theme reinstall as well.
Hi,
Sorry but the mobile theme was never tested in a child theme. It is a plugin and plugins cannot be changed from the child theme.
Thank you!
Hello
It seems that the style.css is not getting loaded on your site.
Please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!