- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
Thank you for your answer. I understand now the method of contain the menubar.
Regarding the CSS solution, it’s interesting — works when entered in the Custom Code CSS in the Theme Panel, but not when added to the style.css in the child theme. Anyway, it solved the issue.
And one final question — what is the font used instead when logo is absent? It looks very similar to PT Serif, but it’s not. Could you tell me the name of it and if possible, how to replace my current PT Serif with this one across the website?
Thank you.
Hi,
I believe this issue happens if you are not using the standard child theme name (Newspaper-child). If you renamed the child theme then there could be issues. Please try to use the default child theme and check the results.
Thanks
I think my function is not calling at all. I tried below function still it is not displaying anything. I put the below function in functions.php under child theme. I have only “add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 1001);” with theme_enqueue_styles function and below function in child theme’s functions.php.
// Shortcode to output a page content in Visual Composer
function page_output_vc_shortcode() {
$test_var = “This is just for testing”;
return $test_var;
}
add_shortcode(‘my_vc_page_output’, ‘page_output_vc_shortcode’);
Do i have to put above function in other file? My shortcode is listed in VC element.
Thank you
You could do that in two ways. Either with a function in functions.php (main or child theme)
function disable_comment_url_email($fields) {
unset($fields['url']);
unset($fields['email']);
return $fields;
}
add_filter('comment_form_default_fields','disable_comment_url_email');
Or hide them with CSS (code entered in Theme panel->Custom CSS)
– https://www.screencast.com/t/nKAHr91cdy
.comments .td-form-email,
.comments .td-form-url {
display: none;
}
Thanks
I ended up creating a child theme just to make a template for my custom post type. The post type used by EDD is “download” so I created the template single-download.php and a corresponding loop-download.php with my tweaks. I based them on single.php and loop-single.php respectively.
I’m using the latet version. If I switch back to the Main theme ie not the child then I have to re-install the plugin but it works. If I use the child theme then it doesn’t work.
Hello tonejarvis,
Most likely, this problem happens due because you have changed the original name of main theme and child theme. Please leave the default name which is in the theme’s packet because if you will change them, the multi-purpose will does not work. Try to do this and let us know. (Newspaper for main theme and Newspaper-child for child theme).
Thanks.
After updating to 8.6 and using the child theme the theme panel gives a 500 error. If I switch to the main theme it works.
Other than that guide, there is no documentation available. If you follow the guide there will be no problem creating and using a child theme. Simply copy the provided child theme in the WordPress themes folder on your server
– https://www.screencast.com/t/cJaurbYFQIsc
The files that can be modified are mentioned in the guide. Note that a similar directory structure or path leading to the file as in the main theme, has to be created in the child theme.
I have tried the number of products modification
– https://www.screencast.com/t/ym1XSEcG
The number of displayed products changed accordingly
– https://www.screencast.com/t/0HApQywN
So it should work for you as well. Try the other method with a child theme as well.
Thanks
Hi,
I see there are customization made to the post template, I would suggest to try for the moment to deactivate the child theme where you made these changes and check if the smart sidebar works properly.
However I see that you have Adsense ads in the sidebar. Note the warning in the matter
– https://www.screencast.com/t/uFmn1ZJntDZ
If you use Adsense ads in the sidebar then it is not recommended to use the smart sidebar feature according to Google policies
– https://www.screencast.com/t/aztyvtdGZCiU
– https://support.google.com/adsense/answer/48182?hl=en
Thanks
dev.cbdmedicalnews.com (Dev site, password-protected; password is “tagDiv”). My homepage looks fine and the header ad’s width is correct (ad is 1428×180, double the standard 720×90 size; but the same undesirable behavior is exhibited when using the 128×90 ad). But when I go to any other page (category, or post), the header ad space extends fully edge to edge. No matter what I do, I cannot get this behavior to change. There is no customizations to the child theme – it’s the bare-bones default files from the Newspaper-child.zip (so there are no customizations). I’ve looked through all the places in the backend where custom CSS and other code could be added, but there is nothing there. We are running NP 8.6
At the same time, we have another site running NP 8.5.1 that appears to be fine (cbdwellnessguide.com), and the header stays body width on all pages like it should. Not sure if the version of NP has anything to do with it; but I’ve gone through the backend settings and compared them to see if I could find a discrepancy, and I don’t see why one site would be working and the other does not.
Any ideas? Thanks!
Is there a video documentation / step by step on how to set up the child theme?
As for the product page.. I modified the number But, any way to set it up like https://demo.tagdiv.com/newspaper_tech/shop/ with widgets?
thank you!
Please check the similar Woocommerce topic I provided in your other topic. The number of products can be modified either with that code, or directly in the theme files
– https://www.screencast.com/t/wQrPBlnv
You can create a child theme for example and enter the code there, so it will not be lost after a theme update
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks
Hello nexgen,
Most likely, this problem happens due because you have changed the original name of main theme and child theme. Please leave the default name which is in the theme’s packet because if you will change them, the multi-purpose will does not work. Try to do this and let us know. (Newspaper for main theme and Newspaper-child for child theme)
Thanks.
Firstly i updated everything to the latest version and installed a child theme.
And I ran into the following problem.
Newspaper theme – Theme panel stopped working correctly.
Take a look – https://gyazo.com/11cddb956264c0b70e67cbbda2e7b1da
Some settings items just stopped working.
At first I thought it was because of the updates, then I rechecked everything and reinstalled it again. But it did not help.
https://gyazo.com/c84acf03c9f3ddedb7c666ce6eba926b
I have the errors when i go into the panel and try to change something.
Then using the experimentally way, I came to the fact, that this is happen because of the child theme. (This is nonsense, this should not be) If you have the opportunity, please contact technical support. Ask them to look at this problem. Maybe they will prompt a solution.
If you do not have the opportunity to contact technical support then,
I havent created a child theme and im looking for a way to remove the newspaper theme label from source code
Hi. Our theme panel stop working correctly after installing the child theme. We followed all the suggestions you provided in the forum below but still have the same issue. We sent you an email to contact@tagdiv.com on Jan 28 with more info.
https://forum.tagdiv.com/topic/theme-panel-font-settings-not-working/
Any update? Looking forward to a solution. Thanks.
That error is displayed because the code is missing a closing brace
– https://www.screencast.com/t/xoJHwGkvTy
– https://www.screencast.com/t/ibOFfGgodAw
However that code may not be necessary anymore, try to remove it and check the results. If it is needed, leave it in the theme panel custom CSS section. It will not be lost after a theme update. Nothing from the theme panel will be lost. You can even make backups of the theme panel like this
– https://forum.tagdiv.com/import-export-theme-settings/
Regarding the post template modification, if you want to modify theme files without losing the changes, you will have to use a child theme
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Such code modifications cannot be made in the theme panel, only directly in the theme files, or through a child theme. Check the guide, it is mentioned there which files can be modified through it.
Thanks
Good Morning Simon, Thanks for your reply. You’re right I just looked in dreamweaver and there is no code in either the style sheet and functions docent even have a line 208 in either the child or the parent theme. I am truly stumped. I will take you up on your offer to contact support by email to hear everyone’s insight. My brain can only go so far, and you guys can really see the bigger picture and details.
I will do my backups and then send my logins for my staging to the email you provided. Thank you, Tonia
I create below shortcode in function.php in child theme.
function page_output_vc_shortcode($atts) {
$pagecontent = ”;
$arg = array(
‘page_id’=>$atts[‘page_id’]
);
$the_query = new WP_Query($arg);
while ($the_query->have_posts()) : $the_query->the_post();
$title = get_the_title();
$pagecontent = ‘<h2 class=”widgettitle”>’.$title.'</h2>’;
$pagecontent .= get_the_content();
endwhile;
return $pagecontent;
}
add_shortcode(‘my_vc_page_output’, ‘page_output_vc_shortcode’);
but it is not displaying page content. Same code is working fine on other theme with VC but it is not working with Newspaper theme VC.
Is there any settings i have to do with newspaper theme?
I want to display whole page content.
Now this is unusual, the default child theme contains no code that could affect the website and cause such issues.
The error seems to point to lines in the code that would be nonexistent, unless code was entered in the either theme functions file or child theme functions. Remove any code you might have entered in theme functions, and use a default child theme.
Indeed files have to be copied in the child theme if you want to modify them. The same directory path has to be created as in the main theme. In the tutorial it is mentioned what files can be customized through it.
If there is still an issue using a default child theme, send us an email at contact@tagdiv.com and provide admin login information, as well as FTP access. Make a backup of the website before. Include a link to this topic in the email.
Thanks
Hi,
The composer should work properly using the latest WordPress version, there is no need to downgrade. Regarding PHP versions, the theme is tested with versions up to 7.1 anything higher may cause issues.
First steps would be deactivating plugins, child theme, also trying the composer on a new page. The system status recommended values are mentioned here, but I believe you already seen the guide
– https://forum.tagdiv.com/system-status-parameters-guide/
If everything is within parameters and there is still an issue, please sen us an email at contact@tagdiv.com and provide admin login information. We will take a look.
Thanks
do I have to copy the single, smart lists, module etc to the child theme for it to work?
Hello Simon Thanks for the reply, Yes this blank page is happening when I upload the Child theme, So I have downloaded a new folder with a new child theme zip file and I just now uploaded it and when I activate the theme the live site and the admin site go blank. I called wpengine to see if they could help me and they said its a 500 error and to write your team back that created the theme.
on my staging I also added the child theme and when I went to live site or close the customize section on my admin side I get this message:
Fatal error: Cannot redeclare _check_isactive_widgets() (previously declared in /nas/content/staging/feline13/wp-content/themes/Newspaper-child/functions.php:30) in /nas/content/staging/feline13/wp-content/themes/Newspaper/functions.php on line 208
Would love some help, I too have never had this issue on a child theme, so I don’t know what to do.
T
-
This reply was modified 8 years by
toniacat.
My site sits behind Cloudflare as well. The style sheet does *not* minify completely with their auto-minify option. Very early into the file, cloudflare detects some kind of error and stops minifying. Their tech support says that they stop once they detect any form of error and suggest running the file through a validator. I do not know what “level” of CSS to validate against for their minifier to work, but I haven’t found a validator setting that likes the style.css file.
You can see it failing at https://www.morebusiness.com/wp-content/themes/Newspaper/style.css?ver=8.6
The first screen or two are minified, then it reverts back to the original.
In any case, I have successfully used https://css.github.io/csso/csso.html to minify it. I have my child theme load the minified version directly rather than overwriting the original.