- NewsmagHow to update a plugin
- NewspaperHow to update a plugin
- NewsmagHow to update the theme
- NewsmagHow to update the WPBakery plugin
- NewspaperHow to update the WPBakery Page Builder plugin
- NewspaperHow to Update the Newspaper Theme
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_template::update_key
- Apitd_api_category_template::update
Update: Problem solved by deleting and reinstalling.
Sorry, found the instructions for this after I posted this thread. Mods can delete, thanks.
Hi,
I have the full licensed version of NewsMag and I just re-upped on paid support. I have the latest version of NewsMag and I’m also running the newest version of WordPress. Visual composer recently stopped working on my website and now hangs every time I try to load my homepage on my wordpress admin dashboard.
If I create a new page and I have to use visual composer, it won’t let me manually add text or items. But the catch is Visual Composer hangs and won’t let me add anything either. If I click “add element”, it will open the window showing all the elements, but if I click on any of the elements nothing will happen. It also won’t let me get to the visual/text tabs like on the “posts”, so I can’t create a new page without using Visual Composer. Which again, hangs and doesn’t let me add anything. This is a new development I’ve only noticed recently (I don’t often update my homepage).
Sorry in advance but I did not buy a separate license for visual composer, I’m using the version that came with NewsMag, so I don’t qualify for support there. Thanks in advance for any guidance.
CAUTION:
note in my functions.php example above/prior post I have this section which you may not need; I use this for changing the author slug to profile for specific site; but not needed for most folks and you would also need to update the templates for Newsmag to point to /profile/ vs /author/.
This section near top likely NOT useful to most folks and can be removed:
add_action('init', 'cng_author_base');
function cng_author_base() {
global $wp_rewrite;
$author_slug = 'profile'; // change slug name
$wp_rewrite->author_base = $author_slug;
}
UPDATED FUNCTIONS HAXX AUG 2016
— supercedes old and moldy stuff in this long thread
Works for me on Apache; if not for you, then you messed something up elsewhere.
This goes at BOTTOM of the /theme/functions.php file
Don’t know where that is, then stop right now, buddy. Learn to use FTP!
/** ========================================== */
/** CUSTOM OPTIM CODE : by Christopher Simmons - REV 8.17.16 */
// Remove jQuery Migrate Script from header and Load jQuery from Google API
function simmonsbunny_remove_jquery_migrate_load_google_hosted_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, null);
wp_enqueue_script('jquery');
}
}
add_action('init', 'simmonsbunny_remove_jquery_migrate_load_google_hosted_jquery');
add_action('init', 'cng_author_base');
function cng_author_base() {
global $wp_rewrite;
$author_slug = 'profile'; // change slug name
$wp_rewrite->author_base = $author_slug;
}
add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );
/** functions for headcleaner */
function rm_generator_filter() { return ''; }
add_filter('the_generator', 'rm_generator_filter');
remove_action('wp_head','wlwmanifest_link');
remove_action('wp_head','rsd_link');
remove_action('wp_head','feed_links', 2);
remove_action('wp_head','feed_links_extra', 3);
remove_action('wp_head','start_post_rel_link', 10, 0);
remove_action('wp_head','adjacent_posts_rel_link_wp_head', 10, 0);
remove_action('wp_head','print_emoji_detection_script',7);
remove_action('wp_print_styles','print_emoji_styles');
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
function remove_pingback_url( $output, $show ) {
if ( $show == 'pingback_url' ) $output = '';
return $output;
}
add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );
/** functions for security */
function no_errors_please(){
return 'You appear to be up to no good. Your IP logged and will be blocked.';
}
add_filter( 'login_errors', 'no_errors_please' );
function disable_reset_lost_password()
{
return false;
}
add_filter( 'allow_password_reset', 'disable_reset_lost_password');
function remove_lost_your_password($text)
{
return str_replace( array('Lost your password?', 'Lost your password'), '', trim($text, '?') );
}
add_filter( 'gettext', 'remove_lost_your_password' );
add_filter( 'send_email_change_email', '__return_false' );
/** functions for admin bar */
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
add_filter( 'wpseo_use_page_analysis', '__return_false' );
function my_custom_css() {
echo '<style>
.misc-pub-section.yoast-seo-score.content-score { display: none; }
.misc-pub-section.yoast-seo-score.keyword-score { display: none; }
</style>';
}
add_action( 'admin_head', 'my_custom_css' );
function dequeue_yoast_css() {
wp_dequeue_style('yoast-seo-adminbar');
wp_deregister_style('yoast-seo-adminbar');
}
add_action('wp_enqueue_scripts','dequeue_yoast_css');
/*remove embeds */
function disable_embeds_init() {
remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
remove_action('wp_head', 'wp_oembed_add_discovery_links');
remove_action('wp_head', 'wp_oembed_add_host_js');
}
add_action('init', 'disable_embeds_init', 9999);
function project_dequeue_unnecessary_scripts() {
wp_dequeue_script( 'comment-reply' );
wp_deregister_script( 'comment-reply' );
}
add_action( 'wp_print_scripts', 'project_dequeue_unnecessary_scripts',100 );
/** End Christopher's magic bunny code; Copr. (c) 2013-2016 CLS */
========== and again ===============
THESE MISSIVES ARE COPR. © Christopher Simmons, all rights reserved. You may use this info, but you may *NOT* republish on your blog, in a book, or make claim any of this is originated by you. Seriously. I know warlocks and they can get bitchy.
-
This reply was modified 10 years by
simchris.
REV ONE “thinning” a couple of files to re-orient myself on where things are, what they do, etc. — very minor fixes since we do not use the following on our news portals
* WooCommerce
* BBpress
* BuddyPress
=========== THINNING EFFORT PART ONE =============
THINNING BY CHRIS SIMMONS – A QUICKIE NEWSMAG 3.1 TUTORIAL
make backups while editing; you assume all risk for edits. If what I’m doing does not make sense, then stop right now or you might wreck it (check yourself before you wreck yourself) 🙂
<< Edits must be made each theme update if files change! >>
//******
theme/style.css
Remove bbpress and buddypress sections
(save 50kb before compression)
//******
theme/functions.php
(1)
line 17
remove woocommerce and bbpress stuff not used
(saves 2kb prior to compression)
//******
/includes/wp_booster/td_wp_booster_functions.php
(1)
line 187, remove woocommerce support
—
(2)
Remove editor styles
new line 814
—
(3)
Remove echo scripts/theme info
new line 827
(saves 0 KB in file)
//*******
END EFFORT ONE
THESE MISSIVES ARE COPR. © Christopher Simmons, all rights reserved. You may use this info, but you may *NOT* republish on your blog, in a book, or make claim any of this is originated by you. Seriously. I know warlocks and they can get bitchy.
Hello,
I updated Visual composer and the latest version of the Newspaper theme. I noticed that the author’s name i snot showing properly.
The author’s name inside the news post does not appear properly on mobile only.
wv.cloudaccess.host (mobile only)
Click on ANY news post and you will see that the author’s name above the social media icons is not being displayed properly.
Screenshot of the problem: http://wv.cloudaccess.host/mobile.png
Thanks
Instead of displaying the “Posted on,” how can we edit the theme to display the last updated?
I found this article on WpBeginner, but I’m not seeing the exact lines in the code to implement this on.
I’ve looked on the site but I can’t find the answer i’m looking for. Is the a template I can copy over to the child theme and edit so that ‘Trending Now’ can say something else … like: ‘Latest Posts’ or just a symbol ‘>’. I’d like it in the child theme so it’ll stick around after a theme update.
Thanks
Working for me, including with the beta composer plugin 🙂
————
REMINDER: always make BACKUP of your dbase BEFORE any major updates to WP — as it clearly states when doing update to ANY major “dot” version of WordPress. Doing an ‘export’ from tools is a “Plan C” level backup. A “Plan B” level backup is making a dump from MySQL with phpMyadmin from your hosting panel. A “Plan A” backup is using DUPLICATOR, and making full snapshot of website (but remembering to remove the backup once done).
Note also not all plugins may work with WP dot upgrades, not part of theme. Useful to go look on the support forum for those that you use, for each plugin first. A 3 year old plugin not updated for WP 4x might stop working at any time.
All sites with Newspaper and Newsmag (including latest Newsmag with the beta composer; older version of Newspaper) all working with 4.6
REMINDER: always make BACKUP of your dbase BEFORE any major updates to WP — as it clearly states when doing update to ANY major “dot” version of WordPress. Doing an ‘export’ from tools is a “Plan C” level backup. A “Plan B” level backup is making a dump from MySQL with phpMyadmin from your hosting panel. A “Plan A” backup is using DUPLICATOR, and making full snapshot of website (but remembering to remove the backup once done).
Note also not all plugins may work with WP dot upgrades, not part of theme. Useful to go look on the support forum for those that you use, for each plugin first. A 3 year old plugin not updated for WP 4x might stop working at any time.
Today is WordPress 4.6 day.
Is it safe to update WordPress ?
Hello, Bogdan,
the problems are solved (not by miracles…)
we updated the visual composer plugin
now everything is back to normal
the website was subject to a hacker intrusion
it was a soft attack, we managed to clean the problems
this subject can be closed
the theme works flawless!
tnx,
Oraan
Presently in our category page, the number of posts coming in a single page is 10
See this link: http://www.bmcelections.com/category/news-and-updates/
We need to make it 12, so that the remaining 2 empty blocks are also occupied
How can we do that?
Hello,
The update process cannot be done through the envato automatic update since the theme version did not get changed. Please use either the ftp method or the wp method. Not the envato market plugin.
As for the plugins, you simply need to deactivate and delete files for the current plugins (visual composer, social counter and revolution slider) and then install them again from here: http://screencast.com/t/nGoc0tH27
Thank you!
Hi Bodgan,
I followed your suggestions and guide on updating the theme, and went with updating the theme with Envato WordPress plugin and followed the steps listed there (option B: at ). While I have downloaded the latest version of Newspaper theme from downloads section of my themeforest account but as per the instructions with Option B with envato there was no requirement to re-install the theme so I didn’t do it or find a way to do it either from the dashboard.
Just to add more details, I didn’t find the Update available as in Step 6 in the how-to update theme page (listed earlier) but API test returned successful. Regarding step 7, I couldn’t follow Update the plugins. Please suggest me in how to execute step 7. Right now, I continue to face the issue and the problem persists. I would need your further guidance and help in resolving the issue.
Many thanks.
Haj
Hello,
The website is http://www.stiintasitehnica.com
A month ago, we updated the wordpress and the theme
Almost everything went well, except the visual composer
The colored icon redirects to vc.wpbakery.com, to buy the page builder plugin.
So we use Classic Mode only to modify articles in the main slider.
Now we tried to update to the last version of the theme
And the homepage slider dissapears
Also, we encountered some security issues
After a scan, we discoverd exploits in the following plugins:
– wp-content/plugins/js_composer/include/footer88.php
– wp-content/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-customcss.php
– wp-content/plugins/td-social-counter/widget/cache.php
– wp-content/plugins/wordpress-seo/admin/formatter/class-metabox-formatter.php
Any idea is welcome 🙂
tnx,
Oraan
Hello,
The new updated provided a new setting for the homepage. These elements can now be disabled separately for posts and for pages. The new setting can be found here: http://screencast.com/t/nSg3kKwb
Thank you!
Hi, I updated the latest version of newspaper theme, and I can’t hide author name, date and comment count from post.
http://prntscr.com/c6tkli
Theme panel settings – http://prntscr.com/c6tl6m
WPBakery Visual Composer – http://prntscr.com/c6tlot
Hello, so I updated to the latest version of NewsMag and going to re-do it all since I can’t seem to just update the current 1.7.1 correctly.
I been looking through the forum (Maybe I missed it?) but I couldn’t find how to install a child theme?
Hi,
Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. It is most likely a plugin conflict. ALso if you have any redirect rules set, you might want to check those as well.
Also please update your theme to the latest version by following this guide: https://forum.tagdiv.com/how-to-update-the-theme-2/ and also update your visual composer plugin: https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
Thank you!
Hi
Try to update the theme at V 7.3 which is available on themeforest, clear all caches then test the site again. Also I’ve noticed that you’re using child theme so try to deactivate it then then check how t goes. If the problem is caused by the child theme try to update it to the newer version included in theme’s path: http://screencast.com/t/s3BU8yNq1
Let me know how it goes.
Thanks!
Hi,
Please make sure you have the latest version of the social counter (4.1) and clear all caches whether it;s a plugin, cdn or hosting cache. The social counter in not a live count. It makes a few requests per day in over to keep the server as light as possible on the load. Please clear caches and allow it a bit of time to update.
Thank you!
Hi,
You will have to update your theme as there was a problem with the mobile theme and the previous version of the theme. Please use this guide and re-download the theme and install it like so: https://forum.tagdiv.com/how-to-update-the-theme-2/ The version will still be 7.3 as we did not change the version. We only replaced the faulty pack with the correct one.
let us know how it goes.
Thank you!
Hello,
The errors seem to be related to the mobile theme files. Please make sure the file structure is intact. Please remove your current theme install and use one of these 2 methods to install the new version of the theme. Download the theme again from envato and use that package to install the theme:
https://forum.tagdiv.com/install-via-ftp/
https://forum.tagdiv.com/install-via-wordpress/
Please also make sure you disable all plugins except visual composer. clear cache and reset cdn files as plugin conflicts can also affect the theme elements.
Also please make sure you update visual composer. You need version 4.12 installed for the latest theme version to work properly: https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
Thank you!
Hi,
Everything was fine until we updated Visual Composer to new version. Now the sidebar is not working on the homepage.
Please see here: http://www.israellycool.com/
For the Homepage, I have used Visual Composer. I have a 2/3+1/3 layout with a Block 11 and Widgetized Sidebar.
Any ideas what has gone wrong?
Regards,
David