Hi,
Before update please backup the site (database and files) β https://codex.wordpress.org/WordPress_Backups
Please remove the old theme via FTP and install the new one and also the plugins that come with the theme files, you can find them it in the theme package inside the Plugins folder β http://screencast.com/t/lkrma6blYE
After the update run the script included in the Welcome panel β http://screencast.com/t/eZxxuqvsTir
And regenerate the thumbs β https://forum.tagdiv.com/using-the-theme-with-existing-content/
Also check the documentation here β https://forum.tagdiv.com/how-to-update-the-theme-2/
Hope this helps!
Just saw this as well: https://forum.tagdiv.com/how-to-update-the-theme-2/
Hi Alin,
Thanks for this. I’ll try these suggestions. It may well be a plugin conflict because those options in the screencast [under General, Filter, Ajax Filter, Pagination] don’t show up when I click the edit icon.
Will let you know how it works out.
One more question: I had the Newspaper 4.6 (or whatever was the previous update) loaded before this 6 update. Do I need to upload the script in the welcome page?
Thanks
Hello,
I tried newspaper 6 on my test site with old version and i followed this https://forum.tagdiv.com/how-to-update-the-theme-2/ but no good test site link: http://723.8f9.myftpupload.com/. I did many customization in CSS. Is there any way that i can keep both? So i start working with new theme and fit as per my need then i can switch? like rename the folder name of theme? it would work?
Thanks.
Hi,
Please try this, but before make a full backup!!!
Edit this code like here: http://screencast.com/t/715rSw8nBYf then run the update script again http://screencast.com/t/o8q7wNDmnEm
Thanks for the message!
Hi Team,
Please help me with the steps involved in updating the new theme.
Regards
Amlan
Hi!
Just downloaded the new update. I made a new database and installed it on a new local server address (XAMPP). After I installed the theme and imported the theme settings from an existing Newspaper 4 website (also running on XAMPP) a lot of things worked bad.
The WP admin panel has a broken design and I have two errors:
“Please update your [tagDiv social counter] Plugin!”
“Hi! Would you like to activate your version of Revolution Slider to receive automatic updates & get premium support? This is optional and not needed if the slider came bundled with a theme.”
Not only I cannot get rid of these but as well there are no more updates available. Also, the Revolutions Slider is already activated!
I also get the following error on when viewing the website:
“wp booster error:
Please update your [tagDiv social counter] Plugin!” – I already did this.
So, what to do? I seriously love the Newspaper 4, wonder if it is really worth the trouble of upgrading? Can someone help me out with a solution for all these issues?
Thanks in advance!
I just followed this guide by @neotrope aka Chris S
https://forum.tagdiv.com/topic/how-to-guide-to-moving-from-newspaper-to-newsmag/
Once you have done that I went ahead and use the Upgrade from 4 to 6 script on the Welcome Screen.
I’ve had to make some changes, but overall most things went smoothly. Still trying to figure out all the updates and changes. But my site was never broken like some describe.
the slider gets messed up by the speedbooster plugin, sooo…here is the code π as I don’t know what I did other than the performance improvement tips ( Is this required? As the performance drops from 93 to 91 after activating it).
<?php
/*
Plugin Name: tagDiv Speed Booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper and Newsmag theme - It moves the styles and all the scripts of the theme to the bottom when needed. It activates internal theme optimizations for better speed and it adds async js .
Author: tagDiv
Version: 3.2
Author URI: http://tagdiv.com
*/
/*
3.2 - better bbpress support on newsmag
3.1 - fixed issue with flashing white on load on newspaper theme
- better compatibility with themes that do not have wp booster framework
- Newsmag loads fonts in a bundle now
3.0 - better visual composer support
2.8 - Newsmag support added :)
2.7 - fixed ie 9 10 11 window resize bug
2.6 - fixed rendering bug on the loading of the page
2.5 - code improvements, newspaper 4 compatibility
- makes most of the javascript files use defer parsing
- better compatibility with revolution slider
2.4 - updated jquery version
- support for https
2.3 - fixed warnings when trying to move javascript files that are not registered
*/
define('TD_SPEED_BOOSTER' , 'v3.2');
class td_speed_booster {
var $styles_for_footer = array(); // here we keep all the stylesheets IDs that we want to move to the footer
var $is_ie = false; // if the browser is detected as IE, treat it differently
var $async_js_scripts = array(
'contact-form-7',
'bbpress',
'woocommerce',
'site',
'devicepx',
'js_composer_front'
);
var $td_theme_name = '';
var $td_theme_version = '';
var $td_deploy_mode = '';
function __construct() {
add_action('td_wp_booster_loaded', array($this, 'td_wp_booster_loaded'));
}
function td_wp_booster_loaded() {
// read the theme version and name if defined
if (defined('TD_THEME_VERSION') and defined('TD_THEME_NAME') and defined('TD_DEPLOY_MODE')) {
$this->td_theme_version = TD_THEME_VERSION;
$this->td_theme_name = TD_THEME_NAME;
$this->td_deploy_mode = TD_DEPLOY_MODE;
} else {
return;
}
// detect IE 8 9 10 11
if (!empty($_SERVER['HTTP_USER_AGENT']) and (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false))) {
$this->is_ie = true;
}
// add hooks
add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts_hook'), 1002); // 1002 priority - because visual composer has 1000 and we use 1001 in the wp010 theme
add_action('wp_footer', array($this, 'wp_footer_hook'), 15);
if ($this->is_ie === false) {
add_action('wp_head', array($this, 'wp_head_hook'), 15);
}
}
function enqueue_scripts_hook() {
global $wp_scripts;
//detect revmin - revolution slider and do not move jquery
if( !is_admin() and !isset($wp_scripts->registered['revmin'])){
if (is_ssl()) {
$td_protocol = 'https';
} else {
$td_protocol = 'http';
}
wp_deregister_script('jquery');
wp_register_script('jquery', ($td_protocol . '://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'), true, '1.11.1', true);
wp_enqueue_script('jquery');
}
if ($this->td_theme_name == 'Newsmag') {
/* wp 010*/
$this->move_style_to_footer('js_composer_front');
$this->move_style_to_footer('js_composer_custom_css');
}
// Newsmag dosn't move the css to the bottom as such, bbpress should stay at the top
if ($this->td_theme_name != 'Newsmag') {
$this->move_style_to_footer('bbp-default-bbpress'); //bpress old
$this->move_style_to_footer('bbp-default'); //bpress
$this->move_style_to_footer('google-font-rest');
$this->move_style_to_footer('contact-form-7');
$this->move_style_to_footer('genericons');
$this->move_style_to_footer('jetpack');
$this->move_style_to_footer('jetpack-widgets');
$this->move_style_to_footer('jetpack-subscriptions');
$this->move_style_to_footer('sharing-css');
}
/**
* Move the style only on newspaper
* @todo move the style also on newsmag after we fix all the issues
*/
if ($this->is_ie === false and $this->td_theme_name == 'Newspaper') {
$this->move_style_to_footer('td-bootstrap');
$this->move_style_to_footer('td-theme'); //this is the main style of the theme, it depends on td-bootstrap to load
}
$this->move_style_to_footer('woocommerce_frontend_styles');
//jetpack lost styles
$this->move_style_to_footer('jetpack-subscriptions');
$this->move_style_to_footer('jetpack-widgets');
$this->move_style_to_footer('genericons');
$this->move_style_to_footer('jetpack');
$this->move_style_to_footer('td-theme');
$this->move_style_to_footer('sharing-css');
/**
* move javascript to footer
*/
$this->move_js_to_footer('themepunchtools');
$this->move_js_to_footer('revmin');
// remove strange custom.css file loaded by visual composer
wp_deregister_style('js_composer_custom_css');
// replace comment-reply.min.js with inline version
}
function wp_footer_hook() {
//get the theme version for style
$current_theme_version = $this->td_theme_version;
//on demo mode, autogenerate version hourly + day
if ($this->td_deploy_mode == 'demo') {
$current_theme_version = date('jG');
}
foreach ($this->styles_for_footer as $style_id => $style_src) {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $style_src . "?ver=" . $current_theme_version . "' type='text/css' media='all' />\n";
}
}
function wp_head_hook() {
if ($this->td_theme_name == 'Newspaper') {
echo '<style>body {visibility:hidden;}</style>';
}
}
function move_style_to_footer($style_id) {
global $wp_styles;
if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
$this->styles_for_footer[$style_id] = $wp_styles->registered[$style_id]->src;
wp_deregister_style($style_id);
}
}
function move_js_to_footer($js_id) {
global $wp_scripts;
if (isset($wp_scripts->registered[$js_id])) {
wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
}
}
function async_js_hook($url) {
//check to see if we have js
if (strpos( $url, '.js' ) === false) {
return $url;
}
if ($this->strpos_array($url, $this->async_js_scripts) === false) {
return $url;
} else {
return "$url' defer='defer";
}
}
private function strpos_array($haystack_string, $needle_array, $offset=0) {
foreach($needle_array as $query) {
if(strpos($haystack_string, $query, $offset) !== false) {
return true; // stop on first true result
}
}
return false;
}
}
new td_speed_booster();
-
This reply was modified 11 years by
cem.
but the reason i got Newspaper before was because of its bbpress layout – which was like the one above…
now after the update it became the default version, similar to Newsmag.
now i have to pay extra to bring it back to what it was before?
Hi,
The old Newspaper theme full width was around 1170px and the width of the new theme is – http://screencast.com/t/JKpaAQXuu
Unfortunately the theme was initially designed at that width with an fixed grid layout and changing it would not be easy as it needs changing the width value for all elements on pages and for this you would need custom work.
I suggest to hire a freelancer from sites like β http://studio.envato.com/ if you need this, as we cannot provide any type of custom work at this time because we work hard on development, updates and support.
Thanks!
Hi,
Unfortunately we cannot help you with this. You have to contact the guy who bought the theme for you or envato as the theme is sold exclusively on Envato and also the updates you have to download from there.
Thanks!
Hi,
Unfortunately the theme doesn’t have an option to display 2 inline ads, you will need custom work for this an it is not an easy task. Please take a look to the inline code and try to duplicate that function – http://screencast.com/t/hHiI9H3Ll
If you don’t know how to do it, I suggest to hire a freelancer from sites like – http://studio.envato.com/ as we cannot provide any type of custom work at this time because we work hard on development, updates and support.
Thanks!
Hi,
If you want categories and forums to appear like in your screenshot you will need custom works as the theme using bbpress doesn’t look like this. You can check our demo to see how it looks – http://demo.tagdiv.com/newspaper/forums/
I suggest to hire a freelancer to help you to change the design of your forum, if you don’t know how to do it as we cannot provide any type of custom work at this time because we work hard on development, updates and support.
Thanks!
Could you explain how to do this for a Child theme? Can’t see an example of the API Child Theme method that applies to shortcodes replacement/update ie replacing /includes/shortcodes/td_block_authors.php.
Thanks
After upgrading theme from 4 to 6 i have a lot of “wp booster” errors.
For example http://47oporalo.ru/news/federalnye
Screenshots:
Chrome-https://s.mail.ru/39Rg8vVdn9Cw/newspaper_chrome.png
Firefox-https://s.mail.ru/5AhyNTHLgurb/newspaper_firefox.png
All plugins updated.
no way. tried everything but all pages are simply empty. Deleted old theme and installed new one….just update…via ftp…via wordpress…always the same result.
why this problem? anyone else? do i need to revert back to old version 4 and forget 6?
Okay! I never thought about it because I am in love with the new update, whatever the version be! In the end, your work matters and that’s awesome!
I am currently running old version of Newspaper and testing the Newspaper 6 offline using InstantWP 4.4v. If I run into any problem I’ll let you know π
Again, Thanks A lot for the major update!
Cheers!
Updated to newspaper 6 and….no way to display my site. Please someone can explain where is the problem? I’ve followed the instructions, including script (www.fotografareindigitale.com)
Hi,
Before update please backup the site (database and files) β https://codex.wordpress.org/WordPress_Backups
You have to remove theme via FTP and install the new one(the theme was practically rewritten ) and also the plugins that come with the theme files, you can find them it in the theme package inside the Plugins folder β http://screencast.com/t/lkrma6blYE
After the update run the script included in the Welcome panel β http://screencast.com/t/eZxxuqvsTir
And regenerate the thumbs β https://forum.tagdiv.com/using-the-theme-with-existing-content/
Also check the documentation here β https://forum.tagdiv.com/how-to-update-the-theme-2/
Or if you have updated automatically please make sure that youe delete these files(old page templates):
page-homepage-bg.php
page-homepage-bg-loop.php
page-homepage-blank.php
page-homepage-loop.php
page-homepage-timeline.php
Thanks and sorry for inconvenience!
the new update caused my site to crash after i installed the new composer. im getting the line
Fatal error: Call to a member function get_map() on a non-object in /home/content/00/10923500/html/3/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 11
is it possible to send me the previous version of the composer and theme so i can change it back
Hi,
You can set a static frontpage from Settings – http://screencast.com/t/z2J6lQ6EHg
Please make a fresh install of new theme and also the plugins that come with the theme files, you can find them it in the theme package inside the Plugins folder β http://screencast.com/t/lkrma6blYE
After the update run the script included in the Welcome panel β http://screencast.com/t/eZxxuqvsTir
And regenerate the thumbs β https://forum.tagdiv.com/using-the-theme-with-existing-content/
Also check the documentation here β https://forum.tagdiv.com/how-to-update-the-theme-2/
Thanks and sorry for inconvenience!