hi
I’m trying to create a special template for one of my Custom Post Type
I did everything listed in this tutorial
https://forum.tagdiv.com/custom-post-type-support/
at the end of the tutorial it says
“…How to create a custom taxonomy list:
Copy the taxonomy.php file from the root of the theme to the root of the child theme and rename it to taxonomy-YourTaxonomy.php…”
but I can’t find it taxonomy.php file in the root of the Newspaper theme (Version: 11.4.1)
I did the upload “td-custom-post-type.zip” and I installed the plugin, but even then the taxonomy.php file did not appear
how can i solve this?
thanks in advance
Hello,
– The first thumbnail of my CPT is cropped and larger than the others as you can see here
=> https://confrontations.org/la-revue/ (it’s CPT la Revue 133). Do you know how to fix this ? Featured image have the same size.
– When I toogle OFF some settings (such as SHOW AUTHOR NAME) in Theme Panel < Post Settings < Post and CPT they don’t apply in my CPT :-/ I’m forced to use CSS in my child theme. Again do you know why this is happening ?
Thanks
Hi,
Please make sure you are installing the actual theme, not the whole package
– https://forum.tagdiv.com/whats-included/
So if you download the full theme package, once it is extracted the theme zip can be seen, like in this example
– https://i.imgur.com/MTmQrYE.png
These are the theme install guides you can follow
– https://forum.tagdiv.com/install-via-ftp/
– https://forum.tagdiv.com/install-via-wordpress/
If you previously used a child theme please deactivate it in case it is active. The newspaper has a child theme included in the package if you require one
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
Hello,
You can change the caption colour with tagDiv Composer, select the Single Post Featured Image and in the tab “Style” you can change the colour -> https://i.imgur.com/nZKy0Dp.jpg also, inside the Single Post Content -> https://i.imgur.com/LX5yWKx.png
Also, to change the colours for Single Post Comments -> https://i.imgur.com/ZkK9NOn.png, but please make sure the settings that you do are saved.
Please check the console when you try to save the changes made with tagDiv Composer maybe is possible to be from the firewall or security module which blocks the admin-ajax.php request, which usually displays a 403 or 404 error.
If you don’t use a security plugin, please ask your host about this, maybe you have a security module that blocks this.
If you use a plugin like Wordfence please set it in learning mode.
Also, if you are using Cloudflare, please make sure that is set as in our guide https://forum.tagdiv.com/cloudflare-cdn/, you need to disable the Rocket Loader.
Please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv ones, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.
Let me know the results!
Thank you!
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.
Just purchased and uploaded to wp; this error comes up. please help?=
It’s a child theme after TagDiv customisation work, but has always updated ok with other recent updates – could that be the issue?
Will do the plugins check as soon as I can Anamaria
Can I copy the change file into the child theme directory to prevent it from overwriting after an update?
Thanks!
Hello,
You can find the folder of the child theme in this path => Newspaper-tf\code\Newspaper-child also, this is a guide that can help you to create a child theme https://forum.tagdiv.com/the-child-theme-support-tutorial/
Hope this helps you!
Thank you!
Hi,
I’ve installed Newspaper-child-theme, but any directive on the child theme is ignored and the css properties in the style.css work only with the “!important” directive.
Has anyone had this problem? How can I solve?
thanks
I have one more question. When I do have category/tag-list item with hierarcial tags, is there a way to filter it with only parents ID so the children are displaying? I need to have it like that, if someone ads new children to the parent tag, the child will be automatically in the menu. Should I modify the theme code to make this possible?
I made my tag list hierarcial with this snippet if it does matter:
`function wd_hierarchical_tags_register() {
// Maintain the built-in rewrite functionality of WordPress tags
global $wp_rewrite;
$rewrite = array(
'hierarchical' => false, // Maintains tag permalink structure
'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',
'with_front' => ! get_option('tag_base') || $wp_rewrite->using_index_permalinks(),
'ep_mask' => EP_TAGS,
);
// Redefine tag labels (or leave them the same)
$labels = array(
'name' => _x( 'Tags', 'Taxonomy General Name', 'hierarchical_tags' ),
'singular_name' => _x( 'Tag', 'Taxonomy Singular Name', 'hierarchical_tags' ),
'menu_name' => __( 'Hierarkiset tagit', 'hierarchical_tags' ),
'all_items' => __( 'All Tags', 'hierarchical_tags' ),
'parent_item' => __( 'Parent Tag', 'hierarchical_tags' ),
'parent_item_colon' => __( 'Parent Tag:', 'hierarchical_tags' ),
'new_item_name' => __( 'New Tag Name', 'hierarchical_tags' ),
'add_new_item' => __( 'Add New Tag', 'hierarchical_tags' ),
'edit_item' => __( 'Edit Tag', 'hierarchical_tags' ),
'update_item' => __( 'Update Tag', 'hierarchical_tags' ),
'view_item' => __( 'View Tag', 'hierarchical_tags' ),
'separate_items_with_commas' => __( 'Separate tags with commas', 'hierarchical_tags' ),
'add_or_remove_items' => __( 'Add or remove tags', 'hierarchical_tags' ),
'choose_from_most_used' => __( 'Choose from the most used', 'hierarchical_tags' ),
'popular_items' => __( 'Popular Tags', 'hierarchical_tags' ),
'search_items' => __( 'Search Tags', 'hierarchical_tags' ),
'not_found' => __( 'Not Found', 'hierarchical_tags' ),
);
// Override structure of built-in WordPress tags
register_taxonomy( 'post_tag', 'post', array(
'hierarchical' => true, // Was false, now set to true
'query_var' => 'tag',
'labels' => $labels,
'rewrite' => $rewrite,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'_builtin' => true,
) );
}
add_action('init', 'wd_hierarchical_tags_register');`
Hello @mmcafe!
This functionality is from WordPress and not from the theme. In order to add your own color palette there, please check this video guide: https://webdesign.tutsplus.com/tutorials/create-custom-color-palettes-in-wordpress-gutenberg–cms-37019 [5:38]
I recommend you to use a child theme for this: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
Hello @dibbes !
Unfortunately, this can not be overwritten in the child theme, only the default templates from the Standard Pack plugin.
Thank you for understanding!
Hi Bettina,
As I wrote, I’m using a child theme. But because of the template are from the plugin td-cloud-library I was wondering how to override the behavior of this template in the child theme. So I make a proper use of the childtheme.
Thank you
Hello @Dibbes !
We have a template for 404 only. A guide for the child theme, you can find here: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
Hi Lalit,
I think that the font(https://fonts.googleapis.com/css?family=Muli%3A400%2C600%2C800&ver=11.4) is coming from an extra plugin or maybe it is set in the child theme.
For me with the the plugins only and with the fonts disabled I do not have any fonts loaded -> https://i.imgur.com/qR98oik.png -> https://i.imgur.com/IGq8iMu.png -> https://i.imgur.com/IYX8JH0.png
On your website I see > https://i.imgur.com/XqNxhBT.png so it is possible to be added by a plugin or it can also be set in a child theme.
Thank you!
Hi,
I managed to change the 404 response for non-existing / deleted posts to a 410 by modifying
wp-content/plugins/td-cloud-library/wp_templates/tdb_view_404.php
added : header($_SERVER[“SERVER_PROTOCOL”] . ” 410 Gone”);
It would be much better that I could that in the child-theme functions. As when the theme will update the code will be removed.
I would even prefer that I could create a special page for the 410 response like doing something like this:
$custom_410_page_ID = 76761;//Error 410 page ID
header($_SERVER[“SERVER_PROTOCOL”] . ” 410 Gone”);
header(“Refresh: 0; url=” . get_permalink($custom_410_page_ID));
Could you explain how I can add this functionality in the child theme?
Hi,
Unfortunately, the file can not be set in child theme and for the moment it is the only why you can edit the mobile menu, sorry!
Now, if will be to set the code in the theme header.php file, I think that will be triger this file wp-content/plugins/td-composer/legacy/Newspaper/header.php (our theme has 3 header.php files, but if the tagDiv Standard Pack is not installed and you use a cloud header, the above one will be use). Just copy the file from there in child theme (Newspaper-child/header.php) and set the code in that file, it should work properly.
Thank you for your understanding!
I asked you if I can overrdie this template in child theme.
We want to add more data in mobile menu, such as logo and a html block.
Can we do this with a cloud header?
Thanks!
Hi jojumper,
Please try the follow steps that can fix the problem:
1. Please make sure that you are using the last them version, Newspaper v11.4.
2. Please make sure that the tagDiv plugins are install properly (disable them, delete and reinstall the plugins from Newspaper plugins).
3. In case that you are using a child theme please disable it, also check only with theme plugins.
If the problem still persists after you made all those steps, then, please make a full backup and contact us via email at contact@tagdiv.com and provide the link of this topic and wp-admin access. We’ll check it as soon as possible.
Thank you!
Hello @romi!
We recommend child theme because any change you make in the files after update will be overwritten and you have to make the changes again. Please take a look in the documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
This is the part of code shared by Calin: .td-meta-box-row:first-child Does this code work only on child theme? If it does, I don’t know how to make child theme.
Let’s make it easier for me, how about give me the code that can work on Parent Template, so that I can simpy paste the code and save, done without the need to make child theme.
Thank you
Romi
Hi,
Our theme live search is custom made, therefore, can not be overwrite by a plugin (also if you change the theme files, those can not be saved in a child theme, therefore the operation will be needed after each theme update). What can be done it is to disable it -> https://i.imgur.com/x5x7mLz.png also it is possible that the SearchWP to be apply on “Search Form” element -> https://i.imgur.com/rcG4Ey4.png this is the one from the WordPress, the other two are custom from our theme.
Thank you!
Hi, I’m still using the old theme ionMag and I need to add some script directly to the post template.
I create folder parts/single/ where I upload two files
loop-single-rd9.php
single_template_rd_9.php
I’ve made the change and nothing. Doesn’t work at all.
Hi Romi, there is a solution, but this will hide the post templates for all users that are not admin. For this you need to use this code:
-> https://pastebin.com/zcB66QAi
You need to set it in functions.php, I recommend to set it in the child theme functions.php.
I hope this will help you!