- 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
That is most definitely not due to the latest update of the theme.
This could be a plugin conflict so please disable all plugins except the page builder, 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 functionality of the theme.
Thank you!
i changed element of my homepage with TD-composer
i’ve choosed ‘Big Grid 3’ (module : mx5 + mx6 + mx11)
but the size font is too big especially with ‘module mx5’
so i went to ‘Theme Panel’ of Newspaper / ‘theme fonts’ / ‘module mx & other – article title’ :
to change the size font of ‘module mx5’ to the minimum (size 5px)
i save but nothing change
i do the same change with ‘module mx6’ and ‘mx11’ = nothing change
and nothing change too, with parent or child theme
any idea what i do wrong or miss, please ?
WP 4.9.1
Newspaper 8.7.2
I moved the following code into the child themes functions file like this:
https://www.screencast.com/t/8AmrzGwtAv
I get this error on the site because of it though:
https://www.screencast.com/t/EfGFQGVB5Bx
Any way to fix that?
You have to recreate the path to the file (same directory structure) and copy the files there. They will then be served from the child theme, you can modify them safely.
Example – https://www.screencast.com/t/Vm4swZokzrO
Also more about the child theme here in this guide
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Remember to activate the child theme from Appearance->Themes once created.
Hi,
You can create post templates for custom post types in a child theme, like this
– https://forum.tagdiv.com/custom-post-type-support/
Each custom post type can have a post template, create them as mentioned in the guide.
Thank you!
Unfortunately the theme panel cannot be translated, there is no option for that. That could only be done by actually translating the terms in the theme files, that would require a lot of work
– https://www.screencast.com/t/hNHvTrMq
Also you would have to make these changes directly in the main theme files, not through a child theme.
So can I just copy the code section to the child theme or is there a specific way I have to do it?
Just wondering if there is any CSS documentation for developers.
Looking because I have lot of Custom Post Types, and I want to use the in built grid system for the post template code in the child theme.
Any pointers appreciated.
All the files from the header folder can be modified through a child theme, there should be no problem. That will be useful if you made modifications to files from that folder.
Anyway you guys could add the ability to toggle
function hook_wp_head() {
if (is_single()) {
global $post;
// facebook sharing fix for videos, we add the custom meta data
if (has_post_thumbnail($post->ID)) {
$td_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘full’ );
if (!empty($td_image[0])) {
echo ‘<meta property=”og:image” content=”‘ . $td_image[0] . ‘” />’;
}
}
on or off in the theme panel?
I haven’t been able to figure out how to child theme it out and every update I have to manually go in and just delete <meta property=”og:image” content=”‘ . $td_image[0] . ‘” /> manually.
I have tried using yoast but the above snippet always overrides what I set in yoast and as a result what gets shared via fb share button is the feature image instead of our customized fb image.
How can I make Module 3 show 3 columns. I know by default this is not built into the theme.
I have been doing modification to the theme as a child. If you could point me in the rigt direction im sure I can figure it out. Basically need to tell it to use span4 instead of span6 and put 3 items in the row and not 2 items. Any ides be great.
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, 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 functionality of the theme.
Thank you!
OKay, one last question and i’ll stop bugging the crap out of you guys 😉
Is there a way to copy the code for the login page and put into the child theme so I don’t have to keep updating it each time I update the theme?
This time system asked me to update the child theme, not the main one, is this normal? All the modifications that I did are gone now…. Is this the way that a child theme should work? I mean, the child theme has disappeared. Can I use the last backup of the child theme as a child theme or should it be also updated?
Changing the theme name or child theme name may create issues, try if possible not to change their name. If you want to prevent users from viewing the page source or inspect the page with browser inspectors, you could try content protection plugins. Such plugins are increasingly popular from what I can see.
Dear tagDiv Team,
My TD Composer is getting hung up loading when I try to edit on my freshly (!) installed page. The error it’s is throwing is:
Uncaught TypeError: Cannot read property ‘deleteItem’ of undefined
at Object.deleteCallback (js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:200)
at job.h.success_callback (js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:171)
at Object.success (js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:22)
at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=4.9.4:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=4.9.4:2)
at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=4.9.4:4)
at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=4.9.4:4)
See also: https://imgur.com/a/Evqeq
I’ve already deleted the theme (I have no child themes), uploaded it again via FTP, deleted all the tagDiv plugins, reinstalled them, deactivated in the meantime all other plugins on the site and added “ define(‘CONCATENATE_SCRIPTS’, true ); ” in the wp-config.php and I haven’t had a caching plugin on this site up to now, but the error persists for all the (even completely new) pages.
On top of that the search function and all the images on the front-pages aren’t working.
My server setup is looking fine as you can see here: https://imgur.com/a/9SO39
I would really appreciate your help here! Thanks a lot in advance,
Florian from Vienna
Hi, I’m in the same boat as di_aeiou. Youtube links are displaying in excerpts which look ugly. The fix for this is commented out in td_util.php and seems to work for us:
$post_content = preg_replace('~(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@?&%=+\/\$_.-]*~i', '', $post_content);
Unfortunately there doesn’t appear to be a way to implement it in a child theme.
I recently purchased you theme. I made a fresh install of WordPress and the theme, but when it’s activated it keeps throwing the error: PHP Fatal error: require_once(): Failed opening required ‘td_deploy_mode.php’
Same if I try to activate the child theme…
Hello zirzy,
In order to achieve the best results after you will install the latest update you have to follow some rigorous steps like this -> you have to delete both of your themes, child theme, and main theme. All your customizations from your Newspaper 4 theme will do not work because all the files from this were changed in Newspaper 8 and as the main theme and also you lose all changes.
The Newspaper 8 is a whole new theme so an update from 4 to 8 may cause the same issues as switching to another theme (but we did try to maintain compatibility where ever possible).
Always make a full backup of your current installation – https://codex.wordpress.org/WordPress_Backups and then do a clean update, meaning that we recommend that you delete the old version of the theme before uploading the new one – https://forum.tagdiv.com/how-to-update-the-theme-2/ update also the plugins that come bundled with the theme files from the /plugins folder.
The shortcodes have been changed so old ones will not work anymore. Please note that old files customization or custom CSS will not work with the new version and you will have to adjust or re-add them.
Bottom line is that Newspaper 8 is a whole new theme built from scratch.
Unfortunately, you will have to clear your agenda and spare a bit of time to adjust all your settings to the new version of the theme.
Hope this helps and let us know how it goes!
Thank you for the message!
The files contained inside the provided child theme are the same, the files you modified or code entered in your child theme may not be the same or work properly anymore. Update the main theme and check if the child theme customization still works by activating it. If there are problems the child theme modifications will have to be adjusted for the new main theme version.
Some files are subject to change in each update, if you have modified those files in the child theme, the modifications might need to be redone, or they might not. Make tests and check. An important note, do not change the child theme name, there will be issues.
Thanks
This will involve editing theme files and it would be better if you use a child theme to prevent the changes being lost when updating the main theme.
1. Go to Newspaper>Includes>Modules and look for td_module_mx4.php (main theme). Then open it and replace the code inside it with this and save.
<?php
class td_module_mx4 extends td_module {
function __construct($post, $module_atts = array()) {
//run the parrent constructor
parent::__construct($post, $module_atts);
}
function render() {
ob_start();
$title_length = $this->get_shortcode_att(‘mx4_tl’);
?>
<div class=”<?php echo $this->get_module_classes();?>”>
<div class=”td-module-image”>
<?php echo $this->get_image(‘td_218x150’);?>
<?php if (td_util::get_option(‘tds_category_module_mx4’) == ‘yes’) { echo $this->get_category(); }?>
</div>
<?php echo $this->get_title($title_length); ?>
<?php echo $this->get_date();?>
</div>
<?php
return ob_get_clean();
}
}
2. If you use a child theme, create a similar path inside the child theme. To do this, create a folder called ‘includes” inside the child theme, open the modules folder and create another folder inside it called ‘modules’, and finally, create a PHP file with the extension td_module_mx4.php inside the modules folder. Open the created php file and paste the code above and save. Go to your theme and see the changes.
CSS customizations are saved in the database if you saved them in the custom CSS section of the theme panel (assuming you don’t use a child theme). But if you made any custom modifications to theme files, they will be lost when you delete the theme before updating, unless you back them up and upload them afresh to replace the new ones (assuming nothing was modified in those files). But if you use a child theme, you can delete and upload the parent theme without any problems.
Hi,
1. You can download the theme once and use it for both installs, there will be no problem. The same package is provided.
2. You should download the full package, this will contain all the plugins (both required and optional) child theme etc
– https://forum.tagdiv.com/whats-included/
The latest theme version is 8.7.1.
The most recommended method of updating is by FTP upload
– https://forum.tagdiv.com/how-to-update-the-theme-2/
After updating check if the tagDiv composer and multi-purpose plugins have been updated automatically. The composer should be version 2.1 and the multi-purpose plugin 2.0
– https://www.screencast.com/t/qUQ9uTJkd
Let us know if you have problems. In the following week there will be a theme update released which will fix some issues that are currently happening for some users.
Thanks
Sorry Bodgan.
I check the documentation but trying to update from “8.2” –> “8.7.1” i do not find any differences in the Child folder downloaded from themeforest.
The files are 3:
– functions.php
– screenshot.png
– style.css
These 3 files are the same that i have find in the child folder of 8.2 that download in the past.
“Child folder 8.2” and “Child folder 8.7.1” have the same files.
– functions.php
– screenshot.png
– style.css
Please can you confirm?
Thanks.
Can you guys tell me how to make a child theme. Read the instructions on WordPress.org, but did not understand.
I saw that there is a code folder and there is a child theme. Just do not understand how to do it, copy all of the txt section? I would be grateful for help