- NewsmagHow to use the Visual Composer plugin
- NewsmagtagDiv Composer Tutorial
- NewsmagWhat’s included in Newsmag theme package
- NewsmagNewsmag documentation
- NewsmagBlock settings tutorial
- NewsmagHow to update the WPBakery plugin
- NewsmagCustom ad spots
Thank you Alin for helping me out.
First, it was hard where to find the visual composer or page build because I didn’t see it from Theme Settings or WP Settings, I found it in Page > Add new after searching from documentation.
🙂
🙂
here is an improved shim (1.0 Beta 3): https://forum.tagdiv.com/files_for_users/td-visual-composer-shim.zip
– fixed an issue with column calculation on 1/1 full width rows
– added vc_separator shortcode
– added vc_column_text shortcode
– added vc_raw_html shortcode
the plugin it’s still a bit messy but after we finish the new Newspaper I will make it much better. All the shortcodes that are supported now are with minimal support 🙁 (ex: no designer tab support yet / no custom visual composer css support).
@Chris … do you want a beta version of Newspaper? Let me know and I will sent it via email.
Yes…. I think you will need to do what we did:
a) use older version of Visual Composer — which the main thing is missing is the extra woocommerce modules, I think.
b) possibly use the SHIM plugin; where you would setup your home page with VC then turn VC off leaving the shim plugin active.
In theory, if you go back to a 4.3.5 version of VC the shim may not be needed. It’s really only needed with the 4.4x versions which added a ton of ‘code bloat’ and hence the CPU issues started to crop up. Likely you’re getting a 503 due to how they have your container setup; in our case having dedicated server, it didn’t kill the box entirely but it started to really slow down when CPU usage jumped by 50 times normal load (!) — might be 500 or 5000 times normal load, actually — dropping a zero someplace there.
Okay, direct from grand wizard Mr. Radu …. here is the code to hide the shim and VC on post pages for those of us who only use VC for home page or whatever and do NOT use it for posts! You don’t need to use *this* version unless you’re using the SHIM plugin to deal with CPU spikes with VC versions post 4.4 (for regular code for just hiding VC on posts, see the prior post ABOVE).
Here is updated from RADU June 5, 2015:
(and this goes in functions.php file in main root of theme folder, for those who did not already know that . . . )
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
wp_dequeue_style('td-vc-composer-css-shim');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
Hello from California 🙂
Hi Chris, the original code does not work for the shim style because I’m using another id for the css (td-vc-composer-css-shim)
Here is the code that will remove the css form js composer and also from my shim on single pages.
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
wp_dequeue_style('td-vc-composer-css-shim');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
Hi,
Thanks @Chirs,@nf_prt!
@LFLizmark Regarding your first issue with images not displaying please provide your site’s url or admin credentials so we can have a closer look as I’m not sure what your issue could be if regenerating thumbnails wasn’t helping, you could also try to empty all caches and test without any plugins active, leave just the Visual Composer plugin active.
If you still can’t manage to find the reason for this please use our email address and send us a message at contact@tagdiv.com and we will get back to you as soon as possible with an answer. Include a link to this tread into your message so we can know who you are.
For organizing your images I suggest you follow Chris’s advises and try to find a plugin that can help you.
@nf_prt Starting with the next version of the newspaper theme ( newspaper 5 ) the theme will have panel thumbs option section (similar to the one that is already available in newsmag theme, that if you are using it) from which you can decide which modules you want to sue and disable the thumbs that you don’t need. Then regenerate thumbnails with a plugin like force regenerate thumbs or a similar one you can delete all thumbs and generate only those needed.
Thanks
Hi,
Please make sure that you also try this without using additional plugins, leave just theme’s Visual Composer and Social Counter plugin’s active and make sure you also empty all caches. If you are using a cache plugin like W3 Total Cache plugin use just page cache: https://forum.tagdiv.com/w3-total-cache-configuration/ then test again.
Thanks!
Hi,
Unfortunately if that plugin doesn’t have shortcode or html code to paste it in the page content I’m afraid that it would not be possible. So if it can be used only as a widget you cannot add it using Visual Composer in the page content.
Thanks!
Hi,
Please disable all plugins leave just Visual Composer active, clear cache and purge your files if you use CDN, also please disable all css/js minification and check again if you still have this issue. You have some errors in the console and also ajax pagination(that’s why you have issues with smartlist) doesn’t work – http://screencast.com/t/4vTI8nJte51
Thanks!
Hi,
Not sure why you have this issue. I also checked this with latest theme version and did not found any issues. Please check this without any plugins active, leave only Visual Composer active, clear cache and check again. Also make sure that you don’t use any special characters on the sidebar’s name as we have some reports about this, when a block is added in a custom sidebar disappears.
Thanks!
Hi,
How can create I a page, which contains only 1 of my widgets?
My Website is http://www.happyworklife.de There I have differents widgets on the right. I want to have the long orange widget with the drop down menus on a single page. That page should only contain that widget, the widget should not be on the right, it should be the main content of the page. Unfortunately I cannot use the html code of that widget, so I have to put/integrate the widget directly into the page.
How can I do that? I cannot find the right function/module in the visual composer.
Thank you!
Hi,
I have also checked this and did not found any issues, please check this with all plugins deactivated leave just Visual Composer active, clear cache and purge your files if you use CDN. Let me know how it goes!
Thanks!
Hi,
If you use Jetpack please disable mobile version – https://forum.tagdiv.com/how-to-manage-the-mobile-theme/
Also you can check this without any plugins active except of Visual Composer and clear cache.
You can activate the theme also on your test site and when you change to your main website you can use the same code. Envato specifies that each theme can be used for one product (site): http://themeforest.net/licenses/standard but you can use on multiple test sites. If you want to use it on multiple sites/domains you’d have to buy a license for each project.
Thanks!
Hi,
After you Install the Demo Data you can Import the Predefined Styles(stacks): http://screencast.com/t/Lc6Dho2jdh – http://screencast.com/t/pumXbxmy3u Please note that if you activate a stack, it will import only settings like fonts, colors…
You have to create an homepage and add elements from Visual Composer(something similar like tech homepage and choose page template) – http://screencast.com/t/ltu9s7WuUXlw go to the block settings and choose filter articles, sort order, pagination.. – http://screencast.com/t/4Lsdy5hlnD – http://screencast.com/t/1sMtJn7k71n8
Also I see that now you use blog…you have to change to a static frontpage from Settings – http://screencast.com/t/nU4WTpuLTPp
Please also check our documentation and let me know if you have issues related to the theme – https://forum.tagdiv.com/newspaper-documentation/
Thanks!
Hello folks.
I’m also having issues with trying to save theme settings. I’m using the latest version of both WordPress and Newsmag themes. I’ve disabled all plug-ins except for Wordfence, WPBakery Visual Composer,Ultimate Addons for Visual Composer, tagDiv Visual Composer Shim and tagDiv Speed Booster.
When in the theme settings page in the admin panel, I’m able to modify most of the settings without any issue. However, when I try to click on the Block predefined style section links to modify them, the ajax spinning icon just hangs and doesn’t pop open the menu. When I pull open the dev console in Chrome, I noticed this:
Uncaught SyntaxError: Unexpected token < admin.php:1
Things that I’ve tried:
Cleared both the server cache and the browser cache.
I’ve spoken with my host, HostGator and asked them to check the admin-ajax.php and confirm that it wasn’t being blocked, which they said it wasn’t. They also stated that the maximum memory limit is already set to 256, and cannot be changed by the end-user on a shared hosting account.
Reference: http://support.hostgator.com/articles/cpanel/php-settings-that-cannot-be-changed
memory_limit = 256M (MAXIMUM)
Per Chris’s link above, I also went into the wp-config.php file and added the following line of code:
/** Increased memory allotment to prevent Ajax Errors. https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
(The official WordPress.org article Chris showed said you had to add it in prior to settings.)
Please note, this has to be put before wp-settings.php inclusion.
You can see it in-line where I included it right after the absolute path section, and before the wp-settings.php section, here:
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Increased memory allotment to prevent Ajax Errors. https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Perhaps this is related, but when I’m on the front end, and try to use the left and right arrows to scroll through content in the various section blocks, the ajax loading icon just spins, and the console spits out the following error:
SyntaxError: Unexpected token < madlymanly.com/:1
Any thoughts as to what is causing the syntax error message in the console? Thank you in advance for the help!
Chris, thanks for the response.
This is what the hosting company told me about the issue – please bear with me since I’m not very accustomed to such issues.
I have checked the logs of rcdronearena.com and found the following error messages:-
------
[Thu Jun 04 15:39:39 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/admin.php?page=td_theme_panel
[Thu Jun 04 15:40:01 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/admin.php?page=td_theme_panel
[Thu Jun 04 15:40:14 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/themes.php
[Thu Jun 04 15:40:43 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/admin.php?page=td_theme_panel
[Thu Jun 04 15:41:18 2015] [warn] [client <myIP>] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php-fcgi, referer: http://www.rcdronearena.com/wp-admin/themes.php
------
The issue that you are facing is mainly due to saturation of the number of fcgi processes allocated for your account. We allow 3 child process and for each child process, 256 worker processes. Once that limit is breached, you see that kind of error. However, those errors are auto-fixed once the number of processes reduce.
Killed queries for the database(s):-
----------------------------
<dbName>
Also, the following error message regarding the database(s):-
------
2015-06-02 21:15:16 +0000 [info] killed_thread_id:67165003 user:<user> host:localhost db:<dB> command:Sleep time:23 query:
2015-06-03 20:44:47 +0000 [info] killed_thread_id:68010453 user:<user> host:localhost db:<dB> command:Sleep time:23 query:
------
------
The MySQL queries for the above mentioned databases are getting killed by the server which is causing the intermittent issue with the site loading. You can verify the same from cPanel >> Health checks and Monitoring >> Mysql Killed Queries.
Please note that, the long_query_time set for the MySQL service is 15 seconds.
Since it is a shared server, we can't alter this values for single domain. We have set this limit carefully to avoid any wastage/abuse of server resources and increasing the limit will result in degradation of server's performance.
Do you think I need an older version of Visual Composer?
Thanks once again.
I’m using a query monitor plugin (https://wordpress.org/plugins/query-monitor/) on our site and one thing keeps cropping up when using it on the front end – I keep getting the following error – Missing Styles – js_composer_front
After having a search around on Google, this missing stylesheet appears to be a common problem – one that is no longer used but still has a reference somewhere. Is there any way to get around this with the bundled version of visual composer? I’m using version 4.4.4 with our Newspaper theme.
Thanks
Hi,
Please make sure that you use the latest theme version 4.6.3 it has the new YouTube API support. If you need to update please use FTP method – https://forum.tagdiv.com/how-to-update-the-theme/ and update also the plugins that come with the theme’s files from the /plugins folder.
You also can check this without any plugins active, leave just Visual Composer active and clear cache and see if it works.
Thanks!
I did somehing wrong with visual composer plagin and now I have this note:
Fatal error: Class ‘Vc_Sort’ not found in /home/user1169608/www/sadovnik.info/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php on line 174
Please tell me how can I return the working capability of sadovnik.info
Damn, meant to say, for those thinking this might be an issue with NewsMag or Newspaper, that the issues with Visual Composer being discussed in this thread are not unique to tagDiv themes. I’m also using A-Bomb by 007Theme, aka Ridwan Reedwan, which uses VC 4.4.4 and is very similar to NewsMag/Newspaper, and experiencing the same kind of load issues. Not as bad as NewsMag 1.7 was for me on the same site, but tagDiv integrates VC with a lot more features than the A-Bomb theme does, so it makes sense that it drains a bit more.
Marius/Radu..
going to post this here since relevant to the SHIM users and also those who follow my thread on optimizations … somebody brought up good point I had forgotten about …. any ideas for updating this functions.php element to remove the SHIM css from the post pages … this code you provided for the VC plugin obviously doesn’t work for the SHIM; and I have hunch we might have to put something into one of the booster files also?
——–old code you created to hide VC css from post pages — does not hide SHIM css on post pages————snip:
add_action('init', 'myoverride', 100);
function myoverride() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
———-/snip
thank you kindly 🙂
-
This reply was modified 11 years by
simchris.
Absolutely true. Everything “weird” started with 4.4 and when they started adding a bunch of new things for WooCommerce and adding some things which I think were designed to roll-in things others were selling as extensions/add-ons to VC.
So, for low traffic site, VC 4.42 and Newsmag 1.71 work fine. High traffic site and VC 4.5x .. not so much.
With VC 4.3.5 we never had *any* problems. Newsmag 1.71 good to update to for the WP security fixes, and then try to either use shim, or older version of VC.
AGAIN TO ANY AND ALL: issue *not* with the theme — it’s nothing TagDiv ‘needs to fix’ with new theme version. It’s an issue with Visual Composer from WP Bakery, bundled with theme to provide dashboard and additional widgets for custom layouts. Issue doesn’t impact ALL sites/servers. Oddly it seems worse with those of use with dedicated servers, but really weird things happen. Only real solution — I think — is for VC to fully re-write their code from ground up based on current version of WP, optimize it, and possibly break some things into extensions that most people don’t use. Why have all the code bloat for WooCommerce if not using that on a magazine site?
Anyway…. just my input on this topic since I was one affected. I don’t speak for TagDiv in any way… just my opinions.
Hi,
@ShowbizCool I suggest you try version 4.3.5 as all this issues with Visual Composer plugin started since plugin’s version 4.4 in which was a major update of the plugin and which included many new features, improvements, fixes and other: http://screencast.com/t/4LrbmLfyfT and since then the plugin doubled in size and started using more resources.
If you don’t have the 4.3.5 version just let us know via email and make a request for it and we will send it to you as soon as possible. Address your message at contact@tagdiv.com
@daimpa As Chris also stated here we are currently also focused on other directions but we will try to have a stable version of the shim ready as soon as possible. Until then you can update the theme to the latest version and use an older version of the plugin, you can use version 4.3.5 for which we didn’t had any reports regarding this even if you have many posts/pages (around 40-50 thousand) which, we’re not certain but seems to cause site’s crash when using recent versions of VC.
Thanks
Hi,
Please check this only with Visual Composer active, disable all other plugins and clear cache. Also do you use the latest theme version(1.7.1) and Visual Composer provided with the theme(4.4.4)? Please install the theme using FTP method – https://forum.tagdiv.com/how-to-update-theme/ Let us know!
Thanks!
Hi,
If you use a template with bg the Big Slider is added automatically on the page and these are options from the backend – http://screencast.com/t/BVzwyKy8wV so it shows the featured articles. If you want to modify this you need to edit page-homepage-slider.php and change the sort order and specify a category(if you want to show articles from a specific category) please check this topic as reference – https://forum.tagdiv.com/topic/exclude-posts-from-big-slide-homepage-bg-no-article/
Or you can change the page template and add Big Slider from Visual Composer elements, so you will be able to change setting for Big Slider from backend – http://screencast.com/t/Kjb5Z6sshJ
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].