- NewsmagChild theme support
- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewsmagWhat’s included in Newsmag theme package
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- ApiThe Theme API
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
Hi,
In order to do that you need to use a custom css, please go in Newspaper> Theme panel> Custom code> Custom css and past the code:
.td-category-header .td-pulldown-filter-list li:nth-child(5) {
display:none;
}
See results: https://www.screencast.com/t/5Qj8hiZIaYv
Thanks.
Can I add a conditional PHP the header of the site anywhere in the Theme Panel? I want to add this:
<?php if ( in_category('15') ) : ?>
<meta name="googlebot-news" content="noindex, nofollow">
<?php endif ; ?>
So I only want that to appear in the <head> for any posts within that one category so Google does not index it. It seems like no way to do this/ So I can only create a header.php in the child theme to do this?
Try something like this in the main or child theme functions file
– https://pastebin.com/UdtVfMmZ
Thanks for reply,
1. I asked the hosting supporter for cache and he showed me hot to disable opcache on server.
2. I fixed images cropped on Module Flex 1 by modified the child theme
3. I tested my site again with Google PageSpeed and they showed 4 css are render-blocking include td-composer css and theme css
” alt=”css render-blocking” />
i was send acount info to contact@tagdiv.com
Hi,
@sparklegemini_0408 Seems the mobile menu is not accessible in both websites, but there are no errors which would indicate a starting point to investigate.
You could begin with the basic suggestions, which usually work. Investigate all your plugins, all and any kind of code added in the theme panel or theme files (test without it), and also child themes.
Thanks
Hi,
Shortcodes provided by a plugin would still work, if the plugin is active. Shortcodes provided by one theme will most likely not work with another theme.
I believe that is supposed to display the post title, try this code in the theme or child theme functions file
function title_shortcode() {
return get_the_title();
}
add_shortcode('post-title', 'title_shortcode');
It should display the post title where used.
Thanks
Hi,
Post template 8 displays the article title under the featured image/video
– https://demo.tagdiv.com/newsmag/workout-routine-for-big-forearms-and-a-crushing-grip/
You could modify the other post template files, change the order of the elements. These are the post template files
– https://www.screencast.com/t/CGwOLXJkLw
If you open a loop single file you will see the structure of the template. They can be modified in a child theme as well
– https://forum.tagdiv.com/newsmag-child-theme-support/
So you can experiment with the re-positioning of the post elements.
Thanks
Hi,
The theme javascript can’t be modified in a child theme, you could add your code in the main theme javascript. The javascript files the theme uses are in the js folder
– https://www.screencast.com/t/65tBOyLu
The javascript is modified in almost every update by us, so even if it would be possible with a child theme, you would still need to update the file.
Thanks
1st issue:
There are couple blog posts are getting a fatal error message from the mobile device. (On PC are fine, just not issue on mobile device)
fatal error class’td_page_views’ not found in ……./newspaper-child/mobile/single.php on line 10.
2nd issue:
There are a lots of pages and post’s theme are totally broken on mobile site (by the way, the theme has no problem on PC, just not perfectly working on mobile device)
3rd issue:
My homepage is showing white blank on mobile device (Again, on PC is fine)
Waiting for your assist online. thanks! I spent 8 hours trying to fix this by myself…..but just wanna kill myself. please help me with these issues….
Hi,
I am using a plugin which auto block any script/iframe on the website if the user does not give the consent to the cookie policy. However, also the javascript files in the Newsmag/js folder are now blocked.
In order to not block them I would need to add a comment in each js file with a specific keyword.
Now I would like to do that by using the child theme. Is there any way to do that or should I just update the files and then remember to add again the custom line in case of a theme update?
Thanks
Hi,
So the speed booster plugin finally activated. This should not be so difficult, all it requires is that the plugin be installed and activated.
If the booster detects plugins that are not part of the list mentioned above, it will have an inactive status.
If there are no such plugins it will have an active status.
If you remove the code as shown it will be active at all times, but note that it can create problems with your plugins. They might stop working or not function correctly if their resources are moved.
1. Maybe the hosting provides a cache system, you could contact them and ask about it. The theme has no caching by itself.
2. So there is a difference regarding how the flex block modules display with and without the speedbooster? We could take a look at that.
We will require admin access to your website, send the details by email at contact@tagdiv.com and also include a link to this topic in the email.
3. The loading of the theme CSS and also the child theme CSS should be moved. I also tested this and it works
– https://www.screencast.com/t/3sjfUzec
I checked this using only the allowed plugins and also with the code removed from the plugin, both the CSS are moved.
Thanks
Hi François S.
You need to make some manually change in a file, please go in your site host open wp-content > theme> includes> shortcodes and open td_config.php wit an editor ( notepad++) go at 7760 line and increase the “show_child_cat” ( https://www.screencast.com/t/eI6xS9X5SF5 ), by default it set to show only 30 categories , after that save the change on the file and refresh your web page.
Thank you.
-
This reply was modified 7 years by
Calin.
Maybe I did not explain clearly or you read it so quick.
I mean I read all the issues, follow the instructions, even editing the td-speed-booster.php file but still Disabled.
Surprisingly, after many hours of installation and modification, the system status display Activated.
And now the images on Module Flex 1 are cropped above and below.
There are 3 issues here:
1. I did not install any plugin cache, why my modifications take many hours to refresh.
2. Images on Module Flex 1 are cropped.
3. The js moved but the css style of the theme and child-theme wasn’t move to the footer.
Is the plugin error?
-
This reply was modified 7 years by
phanthanhan.
-
This reply was modified 7 years by
phanthanhan.
Hello mamito,
Yes, when you upgrade the theme, all of the code and plugins have to be updated with the latest version of them which come bundled with the theme packet. Update the Child Theme and replace it with the new version of it and check the results. Also, clear all the caches, purge CDN files before checking the new results.
Hope this helps and let us know how it goes!
Thanks.
Hello, i have problem in my child theme after the upgrade from 8.5 to 9.0.1 .
I got white page when i activate the old version of child theme. Should i upgrade and the child theme also?
here is my website link
https://goo.gl/AiDGrx
what i doing wrong?
Hi,
I wrote custom code within the custom javascript section on my Newspaper 9 themed-website to create a script that executes a function and when I made the update to 9, that script was no longer executed. Is custom code being read differently in this theme update? do you have any advice on how to make this script run?
This is currently what I have:
if (window.location.pathname === “/”) {
var div = document.createElement(“div”);
div.setAttribute(“id”, “tpd-native-ad-d”);
var s = document.createElement(‘script’);
s.setAttribute(‘type’, ‘text/javascript’);
s.innerText = “googletag.cmd.push( function() {googletag.display( ‘tpd-native-ad-d’);} );”
div.appendChild(s);
var block = document.querySelectorAll(‘div[data-td-block-uid^=”td_uid_7″]’);
if (block && block.length > 0) {
var elem = block[0].getElementsByClassName(‘td_module_6’);
}
if (elem && elem.length > 1) {
elem[1].appendChild(div);
console.log(‘adding style’);
}
Thanks!
Hello PetrovM,
You have not remove the page.php template, sorry! We recommend making a full backup before each modification you should make, sorry! I have made some tests regarding on page.php with the child theme and the code it seems to be overwritten by the child theme. Check the useful guide from here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks for your understanding!
Hi,
That could be done by entering the verification code manually in the theme header file, between the head tags (it can be done in a child theme as well)
– https://www.screencast.com/t/VHAJnaPo
There is also a section in the theme panel which will output the code in the header
– https://www.screencast.com/t/Kx9sZmWG
Enter the code there, it will not be lost once entered, not even after updating the theme.
You could also try a plugin like the one mentioned above by iamkingsleyf, a guide here
– https://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/
Thanks
Hi,
You mean that all that code appears in the search results page? That would be unusual. I could take a look at this, post a link to your website so I can check a search results page.
Did you make any modifications to theme files directly or thorough a child theme? if you did remove them temporarily and test again.
Try to also test while having only theme plugins active, that will eliminate a plugin being the cause.
Thanks
Hello jalmz,
Did you maybe add any code in the theme files or theme panel, or maybe by a child theme? Or maybe modified the AMP plugin? Temporarily remove them if you did and test again. Between your errors, I saw something like this regarding AMP Ads. Please notice that your AMP Ads must be amp compatible. Please access your Adsense account and create amp compatible ads for the amp version of your site: https://support.google.com/adsense/answer/7183212?hl=en -> https://www.ampproject.org/docs/reference/components/amp-ad
Hope this helps and let us know how it goes!
Thank you!
Hi there. I tried to edit page.php in child theme and page hung and the content was removed. Now I see blank pages instead of site pages. Please help to understand what is the matter and restore the page.php
Hi,
I have inspected your website on FireFox and I saw that your More Articles box does not work as expected. The images are not correctly displayed. This strange behavior happens due only for FireFox browser. After some deeper investigations, I notice that your images are stuck in opacity 0. This usually happens on a js error caused by plugins (WP Rocket) or customization or other external optimization tools. Please disable all plugins except Visual Composer or TD Composer, remove all of unknown Ad Code, 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.
Hope this helps and let us know how it goes!
Thanks for your understanding!
Hi!
In my case, I can not show the images whith lightbox:
https://lascigarreras.net/producto/disco-madre-cigarrera/
This is the code that I added in childtheme’s functions.pho:
/* Woocommerce galerías */
add_action( 'after_setup_theme', 'yourtheme_setup' );
function yourtheme_setup() {
add_theme_support( 'wc-product-gallery-lightbox' );
}
I am doing something wrong?
So that error appears when you access AMP versions of posts? Did you maybe add any code in the theme files or theme panel, or maybe by a child theme? Or maybe modified the AMP plugin? Temporarily remove theme if you did and test again.
Regarding the mobile theme plugin, once activated plugins don’t deactivate themselves. Unless this is defined in their code maybe. Our mobile theme plugin doesn’t have an auto deactivation function.
Could be insufficient resources maybe, you could check that
– https://forum.tagdiv.com/requirements-for-newspaper/
Or maybe a server problem. You could also ask your hosting to check if there are any errors in the server error log, that might indicate why plugins deactivate themselves.
I’m trying to modify td_module.php on Child Theme, in order to remove < h3 > in modules Title. It’s working fine If I modify it on parent theme, but not in child theme… You has answered me:
Unfortunately not all theme files will work from the child theme. Some modifications can only be done from the main theme such as the one you describe. Sorry.
Any alternative to do this? I’m using [tagDiv] Block 14 on sidebar and the < h3 > titles are breaking my post headings hierarchy.