- NewsmagChild theme support
- NewsmagWhat’s included in Newsmag theme package
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
After I install the theme via FTP to wp-content/themes, I find added theme appears at themes folder. However, when I go back to the “manage theme”, there is no new theme, and said:
Broken Themes
The following themes are installed but incomplete.
Name Description
Newspaper Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.
What’s going on? How was I done? PLS help.
I have a few questions about the way categories display on posts.
1. Can the categories show up at the bottom with the tags? Should I make a child theme and alter the post template there? Or is there a better way to do it?
2. When I check off sub-categories on a post, the category that it’s inside shows up in the category list as well, even if it’s not checked off. How do I get only categories/sub-categories I check in the post to show up?
Still do not understand what steps are required to be made by me in order to make the code work in the child theme 🙁
And how to provide the higher priority to the code in the child them than the code from the main theme?
For now I added this code to the functions.php of the main theme
<?php
add_action( 'init', 'videogames', 0 ); //exit;
function videogames() {
register_taxonomy( 'lydi', 'post', array( 'hierarchical' => false, 'label' => 'Люди', 'query_var' => true, 'rewrite' => true ) );
register_taxonomy( 'temi', 'post', array( 'hierarchical' => false, 'label' => 'Темы', 'query_var' => true, 'rewrite' => true ) );
register_taxonomy( 'strani', 'post', array( 'hierarchical' => false, 'label' => 'Страны', 'query_var' => true, 'rewrite' => true ) );
register_taxonomy( 'istochniki', 'post', array( 'hierarchical' => false, 'label' => 'Зарубежные источники', 'query_var' => true, 'rewrite' => true ) );
register_taxonomy( 'organizacii', 'post', array( 'hierarchical' => false, 'label' => 'Организации', 'query_var' => true, 'rewrite' => true ) );
register_taxonomy( 'regiony', 'post', array( 'hierarchical' => false, 'label' => 'Регионы', 'query_var' => true, 'rewrite' => true ) );
}
The code works perfectly, but I can’t understand how to placed it in the child theme.
Sorry but plugins cannot be over-written from the child theme. You will have to modify the main files. luckily, the plugins do not get updated on every theme update so you will probably not need to re-add this modification very often.
Thanks.
Hi,
Unfortunately function.php is a bit different when used from a child theme. It will not re-write the file in the main theme, but rather the code will apply over it. this is better detailed here: https://codex.wordpress.org/Child_Themes#Using_functions.php
Basically the code you add in the child theme’s functions.php has to have a higher priority than the code from the main theme, otherwise your code will not apply.
I hope this helps.
Thank you!
thanks.done. Ideally it would be great if there is any possibility of adding td_social_icons and td_block_social_counter for child theme support.
for the test reasons, can you please give me any code for the functions.php child theme in order to check if my child theme support works properly?
A sample child theme is available in the /code/ folder in the package that you downloaded form Themeforest.
I need help installing the theme -child. What are the steps? I really can not find the location of the wp -content / themes folder …
Hello SanjaKokica,
Please notice that you cannot install our demo using the child theme, sorry! If you like our recipe demo, please try to make a new install (another sub-domain) from scratch and then you will have to install our latest update of the theme and then our recipe demo with content or not and then, having that example it is easiest to create your own page by model than from scratch. Also, please notice that all of this information are part of custom work and this is not covered by our support. For more information about our installing demo, please check the documentation here -> https://forum.tagdiv.com/installing-demos/
If you want to display more levels in this regard and you are not aware of the steps, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Thanks for your understanding!
Hi,
Unfortunately the entire wp-booster folder cannot be changed from the child theme. It will not work. This modification will have to be made in the main theme files.
Thank you!
Can you please give me some suggestion on what should we do? Maybe better question would be – how to setup demo recipe on child theme? Do we need to copy files manualy? Please, help.
Hi, today we installed recipe demo without content on our child theme. After that, nothing happened. So, we imported theme settings from the txt file, than almost everything was ok. Some module settings were not ok, for example: in demo, for latest posts, there is only heading and category under image, but on our site was the same setting from our old settings.
Second, <div class=”td-recipe-time”>
<div class=”td-recipe-info”>Prepare time: 20 min</div>
<div class=”td-recipe-info”>Cook: 2 hr 30 min</div>
<div class=”td-recipe-info”>Ready in: 2 hr 50 min</div>
<div class=”clearfix”></div>
</div>
did not do anything, we could just see prepare time, cook, ready in in separate rows, not as it should have looked.
Please, how do we install demo on our child theme, so that everything looks as it should, but without content? Thanks.
Hi!!
I modified the function you showed in the screencast and it’s working!
Can you tell me how to duplicate this funcion in the child theme, so it’s not overwritten when I update the theme? 🙂
Thanks!!!
Hello Balleto,
Please notice that the child theme come bundled with the main theme and you will have to edit that version of child theme (the right child theme folde you will find in Newspaper-tf\code\Newspaper-child). For more infroamtion about child theme suppost, please check our documentation here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks for your understanding!
ohh ok…first update main theme and second update child theme?in my child theme just put the customization function in wp backend theme
The custom code in the theme panel will not be lost as it is kept in the database.
The child theme however is an entirely different matter. It may sound complicated now but it’s actually not. The child theme simply feeds a version of the file you can modify. If you update the theme and the files in thee main theme get replaced (and you did not replace anything in the child theme) then you would be feeding the same old files you modified with the old code onto the new theme which requires the new files with the new code. It will not work. You have to look at the changelog and get the list of modified files from there and if the files in your child theme you modified are on that list, after you update, you must replace them as well in the child theme. Otherwise your site will break as you will feed the old code through the child theme. You must re-add the modification on to the new files.
I hope I was explicit enough.
Thank you!
Hi there I am running Newspaper Version 6.6.3. My Installatron automatically updated Visusal Composer, but it was not loading. The website was unaffected but I wanted to adjust the frontpage.
Today I needed to change the frontpage. So I downloaded the latest newspaper package so I could re-install the visual composer manually. When I went to plugins and disabled wp bakery visual composer the website displayed error 500. Now the entire website has crashed.
Any thoughts on how to fix this?
I have root access so httpd log:
[Mon May 23 15:12:29.873142 2016] [proxy_fcgi:error] [pid 3346:tid 140512614889216] [client 83.82.170.196:59885] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/pcinside/…’)\n#5 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’, referer: http://www.pcinside.info/wp-admin/post.php?post=31&action=edit
[Mon May 23 15:12:45.470177 2016] [proxy_fcgi:error] [pid 3346:tid 140512667338496] [client 83.82.170.196:59903] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/pcinside/…’)\n#5 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’, referer: http://www.pcinside.info/wp-admin/post.php?post=31&action=edit
[Mon May 23 15:12:47.208747 2016] [proxy_fcgi:error] [pid 6708:tid 140512604399360] [client 83.82.170.196:59905] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-admin/admin.php(31): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/wp-admin/index.php(10): require_once(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
[Mon May 23 15:12:50.246849 2016] [proxy_fcgi:error] [pid 3346:tid 140512100886272] [client 83.82.170.196:59912] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-blog-header.php(13): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/index.php(17): require(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
[Mon May 23 15:13:00.543908 2016] [proxy_fcgi:error] [pid 3346:tid 140512352642816] [client 83.82.170.196:59920] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-blog-header.php(13): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/index.php(17): require(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
[Mon May 23 15:13:00.864341 2016] [proxy_fcgi:error] [pid 3346:tid 140512163825408] [client 83.82.170.196:59922] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/pcinside/…’)\n#5 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’, referer: http://www.pcinside.info/wp-admin/post.php?post=31&action=edit
[Mon May 23 15:13:00.995235 2016] [proxy_fcgi:error] [pid 6708:tid 140512447051520] [client 83.82.170.196:59923] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-blog-header.php(13): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/index.php(17): require(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
[Mon May 23 15:13:01.186471 2016] [proxy_fcgi:error] [pid 6708:tid 140512226764544] [client 83.82.170.196:59925] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-blog-header.php(13): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/index.php(17): require(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
[Mon May 23 15:13:01.350611 2016] [proxy_fcgi:error] [pid 6708:tid 140512835868416] [client 83.82.170.196:59926] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-blog-header.php(13): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/index.php(17): require(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
[Mon May 23 15:13:01.536382 2016] [proxy_fcgi:error] [pid 6708:tid 140512572929792] [client 83.82.170.196:59927] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function visual_composer() in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php:29\nStack trace:\n#0 /home/pcinside/domains/pcinside.info/public_html/wp-includes/plugin.php(525): myoverride(”)\n#1 /home/pcinside/domains/pcinside.info/public_html/wp-settings.php(393): do_action(‘init’)\n#2 /home/pcinside/domains/pcinside.info/public_html/wp-config.php(106): require_once(‘/home/pcinside/…’)\n#3 /home/pcinside/domains/pcinside.info/public_html/wp-load.php(37): require_once(‘/home/pcinside/…’)\n#4 /home/pcinside/domains/pcinside.info/public_html/wp-blog-header.php(13): require_once(‘/home/pcinside/…’)\n#5 /home/pcinside/domains/pcinside.info/public_html/index.php(17): require(‘/home/pcinside/…’)\n#6 {main}\n thrown in /home/pcinside/domains/pcinside.info/public_html/wp-content/themes/Newspaper-child/functions.php on line 29\n’
I already renamed the js_composer directory to .js_composer to effectively disable it. I also reverted to PHP 5.6 legacy mode instead of PHP 7.0. So far no joy.
Hi
Child theme functionality it’s covered in theme’s documentation here: https://forum.tagdiv.com/the-child-theme-support-tutorial/ Only the files indicated there are available to be edited via child theme. Also I’ve mentioned in my previous reply that I’ve tested jpeg compression from child theme and works fine. Here is a an example: http://screencast.com/t/bnE5F4cmi2E – http://screencast.com/t/CluFke3o
Here are the images generated at a compression by 100 from child theme: http://screencast.com/t/zpnNS3UdERy4 –
http://screencast.com/t/4qefyWgrJp6J Noe that I’ve regenerated the thumbnails after each modification made in child theme, otherwise the compression won’t take effect.
As for cropping system that cannot be overwritten from child theme as Catalin already pointed in its previous replies. I can be changed only by editing main theme’s files or creating a plugin.
Thanks!
Hi,
Unfortunately functions.php will not work from the child theme. The functions.php file in the child theme is different from the one in the main theme. This modification will have to be applied in the main file.
Thank you!
Hi,
This could happen if you have any custom modifications in place or a plugin conflict. You can try to disable all plugins except visual composer, clear cache and reset cdn files. ALso if you have any custom modifications, try to revert them to the original form. If you use a child theme please also test this in the main theme to see if files in the child theme are not responsible.
Let us know how it goes.
Thanks.
Hi,
Unfortunately the modification cannot be made in the child theme as the plugins cannot work from there and the wp-booster folder does not work from the child theme either. Please make the modification in the main theme.
Thank you!
custom code added in the panel spots will not be lost?how for childtheme update??
Hi,
It depends on the modification actually. If you edited the theme files, this modification will be lost if you do not back it up. Theme files get replaced on an update. You must create a back-up of your modifications and then re-apply them to the new theme files. There is no update proof way of altering the theme files unfortunately. Not even a child theme is update proof. Any modifications that is made on the theme code will be lost. Settings from the theme panel or custom code added in the panel spots will not be lost as they are kept in the database.
Thank you!