No search results were found in Documentation!
I’m using the Envato plugin to update the theme. While the theme itself has updated, I’m still seeing Newspaper Child Theme 7.0 as the current child theme. Any insights?
Hi Calin,
nonetheless it’s overwritten by the theme. Is there any way to deactivate your galleries within articles? We’ve got over 3000 posts with approximately 1000 galleries.
If I imagine manually reworking all the articles, it quickly becomes pointless and tiring. Even if I add type=”rectangular”, it won’t work.
Please give me an other solution. Even if is a child theme overwriting some of TagDiv’s code.
Regards,
Roger
Hi,
A child theme is useful if you plan to make code modifications to the theme files, or add code or CSS to it for example.
Note that CSS can also be added in the theme panel code sections, it will not be lost if the theme is updated.
1. The files that can be modified in a child theme are mentioned in the guide. If you have code to add you can which has to be entered in the functions file, add it in the child theme functions file, instead of the main theme.
If you want to add CSS in the child theme add it in the stylesheet provided with it. Then this CSS will be loaded together with the parent theme CSS.
Don’t make any modification to the code existing in the child theme functions file or stylesheet, no need for that.
2. Should be the same date for the whole website, it’s unusual that there are differences between posts and pages.
You could maybe edit the po file of the language with a po editor. The language files should be in wp-content/languages in WordPress files. Check how the months are translated.
Hello stan1111,
Notice that each new theme’s packet has included the Child Theme inside it. You should replace your old child theme version with this new version to be sure if you are using the latest version of Child Theme. Notice that comes bundled with the latest version of the theme packet.
Thanks for your understanding!
Hi,
There is a solution like that for template 8, please see this topic
– https://forum.tagdiv.com/topic/featured-image-show-caption/
It should still work. The CSS can be modified according to your preference. The modification can be made in a child theme if available.
As a side note, in the cloud post templates the featured image element has an option to display/hide the caption
– https://www.screencast.com/t/iai7tuK4aa
You can experiment with the tagDiv composer and cloud library post templates here
– https://affiliate.tagdiv.com/#/load/Single
This allows to preview the template and even edit it with the composer.
Thanks
Hello
I am using child theme that came with version 8. If I update theme to V9 what do I have to do with the child theme, how do I update Child theme to V9 as well.
Thank you
Hi,
1) I’ll try with the child theme, although it’s not entirely clear from the documentation which parts of your -child template should be replaced, e.g. in functions.php:
a) In expression ‘add the parent style + style.css from this folder’ – what exactly is a ‘parent style’ and how to add it and where?
b) what’s the difference between ‘td-theme’ and ‘TD-THEME-VERSION’? Are there any other variables that shall be replaced?
2) Re date suffix – you’re right about English suffix, however I was talking about Polish date format, which is still wrong even without using this suffix. I can’t upload screenshots, but in Polish the name of the month shall change form in dates, and for some reason in the top bar it doesn’t. For example, the name of October in Polish is ‘październik’ (and it shall be lower case, rather than capital letter, by the way). However, in dates the month shall be written in different grammar form, with -a suffix, i.e. “23 października 2018”. Instead, in the top bar it is “23 Październik 2018”, which is double wrong, firstly because of the form, and secondly because of the capital letter.
Interestingly, in posts the date shows correctly as “23 października 2018”, and it corresponds with settings in WP admin panel, so I guess this is rather up to WP coding than your theme coding.
Looked like a simple topic at first… 🙂
If I removed Cloudflare I am getting below error:
Refused to apply a style from ‘https://www.mysite.com/wp-content/themes/mysite-child/font-newspaper.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
If I delete all from a .htaccess file then I am receiving this an ERROR
ERROR IMAGE
Above error, I receive just for “TAGDIV COMPOSER” when I click on edit TAGDIV COMPOSER.
My site speed is OK…
I am trying to follow tagdivs instructions here by making a folder Newspaper-child inside the main folder.
TagDiv Tutorial
I am trying to use this code within the comments.php
Review Tutorial
I am a bit confused on the “Copy the comments.php file from your parent theme to your child theme, then add the following snippet to just above the textbox code in your comments.php file: <?php do_action(‘comment_form_after_fields’); ?>
I am using the comments.php from wp_booster in the child folder and I don’t know where to paste this piece of code.
Missing file in the child theme: font-newspaper.css has fixed while enabling “td-api-plugin__1.0.2” that means 2 errors left now.
Must I have to install “td-custom-post-type” plugin?
Missing file in the child theme: font-newspaper.css
and here are 3 errors (404) with details: Download zip file
Thank you.
Hi,
I see you get 3 errors in console, in order to resolve it please deactivate td Composer, go in theme file and delete it ( do the same with cloud template plugin ), go on themeforest login get the theme with all files and install td composer and cloud template, also please deactivate child theme and all plugins, and update and activate just plugins that are tested on our theme https://www.screencast.com/t/6g7gYbC9Ndu
After you do all that, try again and see if if this time is working.
Thank you for your understanding.
Hi,
Pressing the search icon returns javascript errors from what I can see, each press generates the same error
– https://www.screencast.com/t/gFhctdwMKvb8
I tested on mobile, seems that after trying to use the search and pressing the icon a few times, I cannot scroll down, the website freezes.
Usually these conflicts are caused by plugins, theme modifications, code additions to the theme files,through a child theme or in the theme panel.
You could investigate these one at a time, try to remove custom code or scripts, deactivate all plugins except the theme plugins, deactivate the child theme etc.
But wouldn’t that code be overwritten on a them update? Or can I also use the child theme for this?
Hi,
I don’t quite understand what you want to adjust about the theme in relation to another theme. Only one theme can be active at a time in WordPress (if a child theme is not considered).
Maybe with plugins it would be possible to have multiple themes active at the same time, but that may lead to conflicts between them or other problems.
If you have questions about using our theme, we will try to help you as best I can.
Thanks
Hi,
It is safer, also you won’t have to redo theme modifications or additions after each update when the theme files are replaced.
This is a guide regarding the child theme provided in the theme package
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
About the suffix, I tried that as well. WordPress translates the other parameters like month and day name, but the suffix remains in English
– https://www.screencast.com/t/mwQPP2l1HrW
I believe that is how it should be, in the codex the suffix is called “The English suffix for the day of the month”
– https://codex.wordpress.org/Formatting_Date_and_Time
Maybe there are ways to translate this English suffix, I searched online for a while but I found no definite solutions.
Thanks
Hi,
Thanks for that, I’ve read about child themes and it seems to me that it’s safer to do it via child theme, which is unaffected by potential future theme updates?
On another note, I just noticed that WP date format doesn’t display the date numbers with ordinal indicators (st, nd, rd, th) even when I changed this option in WP settings and WP preview shows it correctly, however the front-end does not (so WP preview shows correctly 20th October 2018 (either when set as default option or custom field), but the front-end still shows “20 October 2018”). The same btw happens when you set it in Polish, which is even more wrong, because the name of the month should change grammar form as well, and it stays in nominative. Is this sth that depends on your coding (theme) or should I ask WP about it? I deleted cache several times, logged out and back in and nothing helps. Am I missing sth here?
Apologies Sinisa for hijacking your thread 🙂
Thanks, regards
Hi,
Welcome to the forum. Indeed, the date format will depend on the language chosen in WordPress settings.
I did find a code which seems to work, it will keep the backend in English despite what language you select. This is the topic (last code in the topic)
– https://wordpress.stackexchange.com/questions/32584/localization-i-want-the-backend-english-and-frontend-in-defined-language
You could give it a try, add it in the theme or child theme functions file.
Thanks
Hi Catalin,
I’m using a child theme with custom functions.php where the following was added in order to show 3 products per row + sidebar on desktop instead of the default 4:
function new_loop_shop_per_page( $cols ) {
// $cols contains the current number of products per page based on the value stored on Options -> Reading
// Return the number of products you wanna show per page.
$cols = 15;
return $cols;
}
// Change number or products per row to 3
add_filter(‘loop_shop_columns’, ‘loop_columns’);
if (!function_exists(‘loop_columns’)) {
function loop_columns() {
return 3; // 3 products per row
}
}
The thing is – the number of products per page on mobile also changed to 15 and so the last row on every category page contains only one product.
The theme comes with its own child theme. Download “All files and documentation” from ThemeForest and extract it. Look inside the ‘code’ folder of the extracted file for the child theme.
I followed the guide from WordPress and TagDiv, but my child theme’s stylesheet is not loading. Here are the codes I have in functions.php:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'td-theme';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
I read the latest post about this issue and followed some examples, but it’s still not working.
- https://forum.tagdiv.com/search/child+theme+how+to+functions.php/
- https://forum.tagdiv.com/topic/woocommerce-single-product-page-and-shop-page/
I created a functions.php, style.css in a new directory called Newspaper-child. The style.css is blank. The functions.php has the code above. Why is it that no stylesheet loads? Doesn’t it fetch AND load the files and stylesheets from the parent template before checking the child? So even if my style.css is blank, it should work, right?
Let me know what I’m not doing right. Thank you.
Hi,
my first post – yay 😉 First of all i want to say thanks for this really great theme!
Now my first questen – there will be lots of..:
* By default it seems, links aren’t given a different color. How can i do it or where is the setting to change the colour? Or do i have to use a child theme?
Regards,
Roger
Hi,
The “Entities” custom post type is added by a plugin, but we are the plugin provider. Can you please tell me a solution to add a snippet of code to the child theme in order to display those settings for the custom post type?
Hi,
Unfortunately I don’t think you can do that ( AMP is a plugin, not a theme to can make a child theme )
Unfortunately if at the next update this issue reappear you need to do this again.
We’ll continue investigation to see why appear this issues for some customers.
Sorry for the inconvenience.
Hi Calin,
It worked perfectly. Can I add this custom CSS on Child theme? How to do it.
Many thanks.