If you are using the default post template then you need to edit loop-single.php. Copy the file to the child theme and replace <?php echo $td_mod_single->get_date(false);?> with the code below.
<?php $postType = get_post_type( $td_mod_single->post->ID ); ?>
<?php
if ( 'YOUR_POST_TYPE_SLUG' == $postType ) {
} else {
echo $td_mod_single->get_date(false);
}
?>
-
This reply was modified 11 years by
shubhra.
Slight update: I’ve been digging in even more, and still cannot find a way to modify this. I assume it’s coming from one of the modules?
I’ve disabled any potential conflicting plugins I can think of. But custom post or not, I still can’t trace how the posts are being built to the point that I can stop the date output. I am using a child theme and I have followed the instructions in your documentation as well.
Hi,
the past few days I was busy getting the performance up and running without plugins (and doing not too bad so far).
But it seems that something messed up the slider display, photos are enlarged and the actual slider is not visible. And I can’t figure out what is causing this. Also the images show a darkened bottom, any chance to remove this ?
Since I’m here google pagespeed annoys with should fix this for mobiles (but not for desktop!):
Optimize CSS Delivery of the following:
http://www.dinckol.com/…-content/plugins/jetpack/css/jetpack.css
http://www.dinckol.com/…cons/genericons/genericons.css?ver=1.7.1
http://www.dinckol.com/…themes/Newsmag-child/style.css?ver=1.7.1
http://www.dinckol.com/wp-content/themes/Newsmag/style.css
I understand from what I have read so far the theme css’ hast to be loaded at top. Once you open my page you will see nonetheless a brief delay the style gets applied. any suggestions to improve mobile speed and visual experience?
Thanks
Hi,
We have changed the child theme system (for which we will have a documentation available soon) and because of that at the moment only the file from the root of the theme can be overwritten via child theme. Until then please make your changes in the main theme file. Sorry for inconvenience!
Thanks!
Hi, I’ve just purchased NewsMag Template 1.7.1.
Fresh installed + child theme activated.
Whenever I try to modify any overridable file related to your documentation, nothing is working execept for style.css ??
Have I missed something ?
thanks in advance for your Help.
Laurent.
I can’t figure out what is killing the page and menu background on this post: http://seattleglobalist.com/2015/06/08/transgender-teen-brooklyn-buenaventura-crowned-renton-high-school-prom-queen/38098
I thought it was because we have a video and instagram embed on the page, but the background is missing even when I remove them.
If you look at any other posts on our site (e.g. http://seattleglobalist.com/2015/02/27/nestora-salgados-family-prepares-for-long-court-fight-in-mexico-in-vigilante-case/34329), you’ll see how the background is meant to appear.
Thanks for any ideas on what this could be!
Newspaper v 4.6.3 w/Child Theme
WP v 4.2.2
Chris, thanks for the response.
This is what the hosting company told me about the issue – please bear with me since I’m not very accustomed to such issues.
I have checked the logs of rcdronearena.com and found the following error messages:-
------
[Thu Jun 04 15:39:39 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/admin.php?page=td_theme_panel
[Thu Jun 04 15:40:01 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/admin.php?page=td_theme_panel
[Thu Jun 04 15:40:14 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/themes.php
[Thu Jun 04 15:40:43 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/admin.php?page=td_theme_panel
[Thu Jun 04 15:41:18 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/themes.php
------
The issue that you are facing is mainly due to saturation of the number of fcgi processes allocated for your account. We allow 3 child process and for each child process, 256 worker processes. Once that limit is breached, you see that kind of error. However, those errors are auto-fixed once the number of processes reduce.
Killed queries for the database(s):-
----------------------------
<dbName>
Also, the following error message regarding the database(s):-
------
2015-06-02 21:15:16 +0000 [info] killed_thread_id:67165003 user:<user> host:localhost db:<dB> command:Sleep time:23 query:
2015-06-03 20:44:47 +0000 [info] killed_thread_id:68010453 user:<user> host:localhost db:<dB> command:Sleep time:23 query:
------
------
The MySQL queries for the above mentioned databases are getting killed by the server which is causing the intermittent issue with the site loading. You can verify the same from cPanel >> Health checks and Monitoring >> Mysql Killed Queries.
Please note that, the long_query_time set for the MySQL service is 15 seconds.
Since it is a shared server, we can't alter this values for single domain. We have set this limit carefully to avoid any wastage/abuse of server resources and increasing the limit will result in degradation of server's performance.
Do you think I need an older version of Visual Composer?
Thanks once again.
Hi,
We have changed the child theme system (for which we will have a documentation available soon) and because of that at the moment modules and parts files cannot be overwritten via child theme. Until then please make you change in the main theme file.
Thanks!
Hi,
You can try to add margin bottom there. You can try this custom css in Theme Panel > Custom Css – http://screencast.com/t/RpKuRz7Dzwt
.block-mega-child-cats {
margin-bottom: 20px;
}
Thanks!
Hello to all,
I am trying to edit module 6 in my child theme, but it doesn’t work. I am following the instructions mentioned in the documentation. The path to the module in my child theme is ../themes/Newsmag-child/includes/modules/td_module_6.php
Can you please tell me if I need to do something else as well?
Hi,
1. The CPT’s are on our list, we plan to modify the core and check for full functionality. I cannot provide an exact date for this implementation but i talked with the team and we hope to solve this in the near future(1-3 months). The theme was not built with Custom Post Types in mind, we have to make some tests and make the required modifications.
2. With pixels you get the same result/look on all devices. The grid is custom made and some elements have to be carefully controlled. We’ll try to see if it’s possible to transform the grid into a flexible (percentage) one but it will take some time and i don’t know if it’s possible(on some devices it may deliver different results and we don’t want that).
3. We plan to improve on this too in the future updates.
4. We know the limitations on the child-theme, the new API will add more flexibility to the theme customization and we plan to improve this area in the future updates.
Thanks for your suggestions, they are well founded and we’re certainly not offended. 🙂
Hi,
Yes, doing you’ve mentioned above is the right way:
1. Rename or delete current newsmag (main theme) folder
2. Upload new version
3. Update social counter and composer
4. Don’t touch child theme
The child theme should only be updated if there are changes mentioned in theme’s changelog. We have added this to our child theme documentation: http://screencast.com/t/2oOPsulTGHPN and modifications made to files that have also changed within update will have to be made again and yes you can upload directly the latest version of the theme.
Thanks
Hi,
The “no-thumb” images cases are defined in the module file here: http://screencast.com/t/fyc9zhgkp which unfortunately isn’t editable using the child theme: https://forum.tagdiv.com/child-theme-documentation/ so you would have to change it into main theme’s files instead.
You could try a different approach for this by copying the get image function from the module files and place it into the module file you need to change it for then update that file and the function using the child theme. If you don’t know to do it we recommend you hire a freelancer from site’s like: http://studio.envato.com/ to do it for you as you need custom work for this and we cannot offer any type of custom work at this moment.
Thanks
Hi,
That’s because the image for the forth post template is built in a different way using js you can find the code for it here: http://screencast.com/t/4u5bWVncfDn Unfortunately this file isn’t editable using child theme so you would have to do the changes in the main theme.
The uploaded image aren’t handled by the theme, WordPress builds them and the title attribute ins’t added to the images. You can test this by switching to a WordPress default theme and try to find a solution for this online.
Thanks
Hi,
Thanks Chris!
@sjlabar Did you solved the issue? As I have checked you article and it looks fine on my side – http://screencast.com/t/sSwrQa9sp6
If you will have this issue, please make sure that you use the latest theme version(4.6.3) and also Visual Composer(4.4.4) that you have downloaded with the theme files. Also if you use child theme please make sure that it is the same version that your main theme is.
Thanks!
Hi,
Please deactivate all plugins leave just Visual Composer active, empty cache and check if you still have this issue with mobile menu. Also if the issue disappeared please activate your plugins one by one and see which one caused that issue. If you use child theme please also switch to the main theme and check this.
Also please make sure that you use the latest theme version 4.6.3 and update using this guide(FTP method) – https://forum.tagdiv.com/how-to-update-the-theme/ and also update the plugins that come with the theme files from the /plugins folder.
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
I am using a child theme for Newspaper and am trying to modify the no-thumb images (/images/no-thumb/) but for some reason it keeps calling the images from the main theme and not the child theme. Do you know what needs to be included in my child theme to ensure it pulls the images from my child theme?
Thanks
Hello,
Didn’t able to figure out the reason why my single posts suddenly stops working, using child theme with some custom work, everything was fine, but two days before suddenly theme display the notification of broken theme, and since than i am trying to get it back but all in vein. You can have a look at http://www.cookingrecipes.com.pk/russian-salad-recipe/ only single posts are not opening, please help.\
Kind Regards,
Shah Jahan Labar
Hello, I’ve to update the theme. I’m using child theme and I don’t find a tutorial about what to do.
Is it ok to:
1. Rename or delete current newsmag (main theme) folder
2. Upload new version
3. Update social counter and composer
4. Don’t touch child theme
?
I’m using css mod:deflate via htacces, do I have to do anything particular?
<IfModule mod_deflate.c>
<filesMatch “\.(js|css|html)$”>
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
Hi there,
I’ve noticed that when I use SITE POST TEMPLATE Style 4, the title and alt tag are not showing for the main image.
Also I’ve noticed that for the other images that I upload, only alt tag shows. No title.
Can you please tell me how to fix this 2 issues. I have average level coding skills, so it won’t be a problem to fix after a little explanation. It will be best if you tell me how to do it for the child theme.
Thank you
Issue 1: Custom Post Type and taxonomies – Being able to create and distinguish different content types is one of the best features of wordpress. Why would any developer in this day and age not consider it while making a theme?
Issue 2: Grid framework – Why are we using a pixels grid framework and not a percentage? A percentage grid is fluid, uncomplicated and works in all use cases.
Issue 3: Non availability of hooks and filters: I would like to add my CPT (again, why no support by default?) in the search results and the overall wp_query and hence filters would have been nice. Now I have to alter the core td_data_source file and make sure I remember my changes in the next update. I am using a premium version of a form plugin called formidablepro and they have ‘extensive’ hooks available for every small part and hence people take it BEYOND its capabilities and its not a form plugin anymore for me.
Issue 4: Child theme support: Only modules, parts and templates can be modified. In the above case, if the child theme supported it, I would have just copied td_data_source.php file to my child theme.
Please do not be offended by my comments above. I believe these are absolute necessary things that should be made available. Can you please inform me if any of these are being considered for the ‘near’ future.
I own a license to both Newspaper and Newsmag and really like elements of both of them. I would like to use Newspaper as a base theme, but want to include a few elements from the Newsmag theme, such as the sticky sidebars, post templates, and other design elements like the share buttons.
Is it possible to combine these elements somehow? Perhaps through the use of a child theme? Please let me know what is possible.
Thanks
Hi,
If it’s working it’s ok but make sure that you take note of that change and consider it if this appears again.
Regarding the theme’s icons fonts I still see these 404 errors to browser’s console which now I’ve noticed they link to the child theme while this should load from within the main theme. I actually noticed that the whole style loads from your child theme: http://screencast.com/t/sHc48AeMHdqT Have you copied the the theme’s style file to your child theme? In that case you would need to also move the icons fonts to child theme or make sure you move the style back to the main theme and have the child theme configured like instructed here: https://forum.tagdiv.com/child-theme-documentation-newsmag/
Make sure that you test this by switching to thew main theme first and see if this is still happening and let us know how it goes.
Thanks
Hi,
You can change it here: http://screencast.com/t/oxQNFJ1Z but note that the module blog file isn’t editable using the child so you would have to change this into the main theme files: https://forum.tagdiv.com/child-theme-documentation/
Thanks
I don’t use child themes myself for two reasons (keeping in mind I’ve been building wordpress sites for 9 years now; both for our company and clients — and 20 years as of March 1, 2015 doing websites by hand):
1) it’s a CSS redirect; bad for Google, bad for pagespeed, and introduces some oddball gremlins with things loading from two places at once … seriously; have some weird gremlin? often it’s caching or child theme issue
2) often with many themes these days, the child theme gets updated along with the main theme for major security patches, feature updates; etc. (e.g., if you move to Newspaper ‘5’ next month, there will be new child theme — so, defeats the purpose of not editing the main files)
3) better to simply edit the main files and keep track of what you’re doing. This allows you to have fewer elements to keep track of overall and easier to back-up; easier to manage renaming folders for customization, etc.
Your mileage may vary, but that has been my experience. Especially if you use any kind of caching or systems like mod_pagespeed (as we do). Having a CSS redirect (where you’re essentially saying … load my CSS in one folder, but oh wait, NOW go load the real CSS from this other folder) — is NOT recommended by Google, but that is a basic precept of WordPress usage — started by WP, but not necessarily the best way to actually manage a site and content.
So, it’s up to you.
I don’t work here; it’s not my theme. I have been using Newspaper since Fall 2013; and this is just MY way of doing it. So, it’s only a “suggestion” on my part. Up to you. If you can live with some gremlins in how WP works, possibly pagespeed penalty from Google, and loading two sets of style sheet for the site every time the page is loaded … then enjoy. Nothing inherently wrong with it — but TIME magazine isn’t using a child theme when running WordPress; nor do I.
-
This reply was modified 11 years by
simchris.