- NewsmagHow to use the Visual Composer plugin
- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperModules Builder in Newspaper Theme
- NewspapertagDiv Shop
- NewsmagtagDiv Composer Tutorial
- TutorialsFrom WPBakery to tagDiv Composer
- NewspapertagDiv Composer Tutorial
- TutorialsDefault Block Settings Guide
- NewspaperCreate Custom Code with the browser’s Inspector or the Live CSS Box
- NewspaperCompare theme files – Winmerge tutorial
- NewsmagWhat’s included in Newsmag theme package
- NewsmagNewsmag documentation
- NewsmagBlock settings tutorial
- NewsmagHow to update the WPBakery plugin
- NewsmagCustom ad spots
- NewspaperHow to update the WPBakery Page Builder plugin
- NewspaperBlock settings tutorial
- NewspaperPost Formats (for TinyMCE)
- NewspaperFont Customization
- NewspaperBackground Introduction
Hi,
Sorry for the delay, we take each message from the old ones to the newest. If you bump the message it will go among the latest and the reply time will be increased.
I’ve checked your site and it seems you have some js errors in the console – http://screencast.com/t/vmAV1uusyqRS
The smart sidebar is uses js and those errors may interfere with it’s functionality. I suspect the errors come from a plugin conflict or a custom code added. Try to disable all plugins, remove all custom code and if you use a cdn disable it. Enable only Visual Composer and see if the issue is still there. If it’s gone enable the other plugins one by one and see which one is causing this issue.
Thank you!
Hi,
Please connect via ftp and remove the /wpbakery folder from this path: home/justaguy/androidnewbies.com/wp-content/themes/AndroidNebies/wpbakery that was used by the old theme. Afterwards activate the Visual Composer plugin again.
Let us know how it goes!
Thanks
Hi we like your themes but experiencing some difficulties..
We are upgrading our site from magazinely to newspaper (just bought it).
Just FYI – as i’m sure you know, magazinely used to have the visual composer built into the theme.
We have installed all according to instructions and this is the error we are receive:
Fatal error: Cannot redeclare visual_composer() (previously declared in /home/justaguy/androidnewbies.com/wp-content/plugins/js_composer/include/helpers/helpers_factory.php:25) in /home/justaguy/androidnewbies.com/wp-content/themes/AndroidNebies/wpbakery/js_composer/composer/lib/helpers.php on line 12
Please let us know what to do.
Thanks!
I found how to turn on visual composer for posts. I was hoping to use the built-in author block. It shows the the bio blur, social icons and looks much better.
Is there another way?
Steve
Hi
The theme seems to be missing the main css file, and can be caused by some plugin that overwrite the theme css or the file got corrupted during the ftp transfer, you cab try to re-upload the theme or try to deactivate all plugins except Visual Composer, clear the cache, purge the cdn file if you’re using and test again. If the problem doesn’t solved please provide a link so we can inspect it closer.
Thanks!
Hi
Usually saving settings or updating post should be done really quick, so it’s possible to have an internal problem on your side. Try to deactivate all plugins except Visual Composer and test again, if the problem persist try to find a better host because the theme should work with the same speed of other theme’s on back-end.
Thanks!
Hi,
Please test this without any plugins active, leave just theme’s Visual Composer plugins active, empty all caches, purge files if you use cdn host then test this again. Also make sure that you disable any jss/css/html compression tools.
Let us know how it goes and also provide your site’s url if this still happens.
Thanks
That’s a News ticker we currently have. I want something like this http://www.screencast.com/t/D7HPCOUYM, a separate block, which I can use it to keep “Most Popular” or “Must Read” or simply “Trending”. The screenshot which I have shared is of EXPLICIT theme by Industrial themes.
And, it should have an ON/OFF option to show/hide no. of views. I don’t want it exact, but similar to that which visually impresses the readers “Oh! That’s trending!”
Here is my speed booster file
<?php
/*
Plugin Name: tagDiv Speed Booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper 6 and Newsmag 1.x themes - 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: 4.1
Author URI: http://tagdiv.com
*/
define('TD_SPEED_BOOSTER' , 'v4.1');
class td_speed_booster {
private $style_footer_queue = array(); // here we keep all the stylesheets IDs that we want to move to the footer
private $is_ie = false; // if the browser is detected as IE, treat it differently
// here we keep the theme information
private $td_theme_name = '';
private $td_theme_version = '';
private $td_deploy_mode = '';
private $allowed_plugins = array(
'bbpress/bbpress.php',
'contact-form-7/wp-contact-form-7.php',
'jetpack/jetpack.php',
'js_composer/js_composer.php',
'td-speed-booster/td-speed-booster.php',
'font-awesome-4-menus/n9m-font-awesome-4.php',
'wordpress-seo/wp-seo.php',
'wp-user-avatar/wp-user-avatar.php',
'td-social-counter/td-social-counter.php',
'wp-super-cache/wp-cache.php'
);
// this class is instantiated at the bottom of this page
function __construct() {
add_action('td_wp_booster_loaded', array($this, 'start_booster'));
}
/**
* everything starts from here
*/
function start_booster() {
// 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']) or (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, 'css_mover'), 1002); // 1002 priority - because visual composer has 1000 and we use 1001 in the wp010 theme
add_action('wp_enqueue_scripts', array($this, 'js_mover'), 1002); // 1002 priority - because visual composer has 1000 and we use 1001 in the wp010 theme
add_action('wp_footer', array($this, 'render_footer_styles'), 15);
// hide the body only on IE and Newspaper 6+
if (
$this->is_ie === false
and $this->td_theme_name == 'Newsmag'
) {
//add_action('wp_head', array($this, 'hide_body_inline_css'), 15);
}
/**
* jetpack is 'special' - it has to be moved like this. It has now only one CSS
* the two hooks are needed!
* @since 27.05.2015
*/
add_action('wp_print_styles', array($this, 'jetpack_mover'), 10);
add_action('wp_print_footer_scripts', array($this, 'jetpack_mover'), 10);
}
/**
* jetpack is 'special' - it has to be moved like this. It has now only one CSS
* @since 27.05.2015
*/
function jetpack_mover() {
$this->move_style_to_footer_queue('jetpack_css');
}
/**
* here we move the css
*/
function css_mover() {
if ($this->td_theme_name == 'Newsmag') {
// wp 011 - Newspaper 6
//$this->move_style_to_footer_queue('bbp-default-bbpress'); //bpress old
//$this->move_style_to_footer_queue('bbp-default'); //bpress
$this->move_style_to_footer_queue('google_font_open_sans');
$this->move_style_to_footer_queue('google_font_roboto');
$this->move_style_to_footer_queue('contact-form-7');
if ($this->is_ie === false) {
// move style.css theme style
//$this->move_style_to_footer_queue('js_composer_front');
//$this->move_style_to_footer_queue('td-theme'); //this is the main style of the theme. It's only moved on Newspaper 6!
}
}
//@todo test on newsmag
$this->move_style_to_footer_queue('woocommerce_frontend_styles'); //old woocommerce?
$this->move_style_to_footer_queue('woocommerce-layout');
$this->move_style_to_footer_queue('woocommerce-smallscreen');
$this->move_style_to_footer_queue('woocommerce-general');
$this->move_style_to_footer_queue('bp-legacy-css');
$this->move_style_to_footer_queue('td-theme');
$this->move_style_to_footer_queue('font-awesome-four');
//move revolution slider css
$this->move_style_to_footer_queue('rs-plugin-settings');
$this->move_style_to_footer_queue('genericons'); //still rev slider
}
/**
* move the js
*/
function js_mover() {
global $wp_scripts;
//detect revmin - revolution slider and do not move jquery, the plugin outputs raw js in the page!
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');
}
/**
* move javascript to footer
*/
$this->move_js_to_footer('themepunchtools');
$this->move_js_to_footer('td-site-min');
$this->move_js_to_footer('revmin');
$this->move_js_to_footer('archivesCW');
$this->move_js_to_footer('js_composer_front');
$this->move_style_to_footer_queue('archives-cal-classiclight');
//print_r($wp_scripts);
// replace comment-reply.min.js with inline version
}
/**
* here we render the footer styles
* the styles are already deregistered when you call @see move_style_to_footer_queue ($style_id)
*/
function render_footer_styles() {
//get the theme version for style
$current_theme_version = $this->td_theme_version;
//on demo mode, auto generate version hourly + day - so we get a fresh css hourly
if ($this->td_deploy_mode == 'demo') {
$current_theme_version = date('jG');
}
if (isset($this->style_footer_queue['td-theme'])) {
// whatever the order, make damn sure that our td-theme style is LAST - we remove it from the queue and add it again at the end
$td_theme_value = $this->style_footer_queue['td-theme'];
unset($this->style_footer_queue['td-theme']);
$this->style_footer_queue['td-theme'] = $td_theme_value;
}
// output the new styles
foreach ($this->style_footer_queue 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";
}
}
/**
* prevent flickering of the image until the style is loaded
*/
function hide_body_inline_css() {
echo '<style>body {visibility:hidden;}</style>';
}
/**
* the id of the style can be found in the source of the page, for example:
* <link rel='stylesheet' id='td-theme-css' => the id is 'td-theme' (note that the '-css' part is missing)
* using this method you can move other styles if needed
* Moves a style to the bottom of the page
* @param $style_id string - the id of the style
*/
function move_style_to_footer_queue($style_id) {
global $wp_styles;
if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
$this->style_footer_queue[$style_id] = $wp_styles->registered[$style_id]->src;
wp_deregister_style($style_id);
}
}
/**
* @param $js_id string - the js file id (this is a bit more complex to get) @todo -> add a tutorial about how to get the theme js
*/
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);
}
}
}
new td_speed_booster();
and here is registered scripts
registered scripts
archivesCW | http://www.domain.com/second/wp-content/plugins/archives-calendar-widget/jquery.archivesCW.min.js
aspexi-facebook-like-box | http://www.domain.com/second/wp-content/plugins/aspexi-facebook-like-box/js/aflb.js
jquery | http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
td-site-min | http://www.domain.com/second/wp-content/themes/Newsmag/js/tagdiv_theme.min.js
comment-reply | /wp-includes/js/comment-reply.min.js
registered styles
archives-cal-classiclight | http://www.domain.com/second/wp-content/plugins/archives-calendar-widget/themes/classiclight.css
awesome-weather | http://www.domain.com/second/wp-content/plugins/awesome-weather/awesome-weather.css
opensans-googlefont | https://fonts.googleapis.com/css?family=Open+Sans:400,300
google_font_roboto_cond | http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700
google-fonts-style | http://fonts.googleapis.com/css?family=Open+Sans:400,700
js_composer_front | http://www.domain.com/second/wp-content/plugins/js_composer/assets/css/js_composer.css
td-theme | http://www.domain.com/second/wp-content/themes/Newsmag/style.css
td-theme-child | http://www.domain.com/second/wp-content/themes/Newsmag-child/style.css
Hi,
The background image is stretched using javascript, for best result you have to use a full-hd image. If there are js errors caused by a plugin conflict this function may also be affected. Try to disable all plugins except for Visual Composer and see if the issue is still there.
Thank you!
Hello,

As you see in the image, I want to use responsive select boxes on my home page to list my categories and post. I could not find any suitable plugin or tool in the visual composer. Is there any solution that can help?
I love this theme. The support is undoubtedly great! But, I want to request a feature which I desperately need… That’s a trending block, which can show the Top Posts (no. of posts manually set) as Must Read or Most Popular posts, with a stunning visual icon of “Trending” like we generally see in the stock market or similar.
I would like this feature in the future update. I hope it’s a useful feature request. Because the default wordpress top posts and pages widget looks horrible 🙂
I am unable to add any new blocks, because they don’t show up in Visual Composer. I also can’t edit the ones on the page, only move them around. I can’t delete blocks either (the social counter has wrong accounts in them), only the whole row they are in. This has messed up my site. I was on Newspaper 4 and did the upgrade to 6. I have another site using Newsmag, which is working fine.
Hi,
The tagDiv Visual Composer Shim is an experimental plugin in beta version and it was created like an alternative solution regarding the Visual Composer consuming resources(especially for tagdiv blocks). All this issues with Visual Composer plugin started since plugin’s version 4.4, which was a major update of the plugin and since then the plugin doubled in size and started using more resources.
We did not get any reports regarding this issue from latest version of the plugin, so please make sure that you have increased the php memory limit and try to use only necessarily plugins.
Thanks!
Hi,
Ajax view use javascript so in case that you have some javascript errors it may affect view counter. Please check this without any plugins active, leave just Visual Composer active, clear cache and open an articles and refresh it for few times and check if the view count works – http://screencast.com/t/gJ9uEsRYoIj
Regarding the cache plugin we recommend WP Super Cache, we use it also on our demo and we suggest to be used by default(settings).
Thanks!
Hi,
Please check this without any plugins active, leave only Visual Composer active, enable lazy load animation and clear cache. It may be a js error caused by a plugin or a conflict between them. I have checked your site and you have a js error in the console – http://screencast.com/t/nMYNVsnN
Thanks!
Hello friends,
I’m using Newspaper just 20 days. My site has been around for several years and I made the exchange for this fabulous theme. In the early days worked in reasonable condition with all optimizations taught in documentation and forum, but strangely suddenly began to consume all of my VPS resources(CPU 3/ 4G RAM/ Opcache/ Varnish/ W3 cache), causing overload. After much trouble I discovered that the problem was the Visual Composer plugin. Strangely, just the VC be enabled with any theme or even the WP and be in maintenance mode, which still is in the server overloaded state instantly, causing internal server error 500 and leading to think that it is a conflict which neither I, nor the server team could find out.
Well, I did numerous searches in the forum and follow all the tips provided to other users with the same problem, but the only salvation with good results was the SHIM beta which I take me long to figure out just. After seeing the server normalize and vibrate with the SHIM, a new bad surprise: the Tabs feature of Visual Composer plugin was broken on my site.
I would love to guidance to rehabilitate the tabs function through the SHIM. This would be a wonderful help, even with the problem of having to return to the VC and face all that slow in cases of necessary future customizations.
I believe strongly in the powerful help of the staff Tag Div.
Thank you, friends.
Hi,
We are aware for those warnings which still appear unfortunately in the latest version of the VC plugin included in the latest version of the theme but those happen from the Visual Composer plugin and should be fixed in the next version of the plugin which we will include in the next update.
Finally you shouldn’t worry about it as it’s just a warning and doesn’t cause any issues, from my tests the elements still work as they should.
Sorry for the inconvenience!
Thanks for the message!
How can I make the dropcap circle background a true circle?
When I go to the Post Editor > Formats > Dropcaps > Circle the circle shows, but it is an oval shape, not a true circle.
So for example a dropcap with the number 1 shows an verticaly elognated oval, and with the number 10 it becomes a horizontally elongated oval.
The code for the circle dropcap used to work well in Newspaper 4. I’ve tried changing the font size for the dropcaps and font type, but nothing works.
It’s a small detail, but visually an important one
Thanks
Hi,
Not sure what you mean. Do you cannot edit the homepage?
Also if you use a widget to display recent comments and it doesn’t appear through Visual Composer elements and you can use it only from Widgets, you can create a custom sidebar and add your widgets to it(elements that you have now in the page) – http://screencast.com/t/4BG9WcGjY6d and use Widgetised sidebar block to display it on the page – http://screencast.com/t/WugW6kJv
Hope this helps!
Hi,
Please check this without any plugins active, leave just Visual Composer active, clear cache and purge your files if you use CDN. If you minify css/js disable it. Also paste a link so we can take a look.
Thanks!
I think I am part way there.
With the help of the example in the API documentation, I have code for the new thumbnail, block and module, and have put what I thought was the correct code in the td_api_plugin.php (links to all code below)
1) The new block initially appeared in the visual composer but when used, and I tried to view the page, it gave a 404 error.
2) I directly edited td_page_builder_widgets.php to include the new block. The new block initially showed in the widgets but when used in a sidebar there were NO images on the page (the featured image also disappeared).
I didn’t know if I should reactivate the plugin after changes so tried to do so and now consistently get the following, and the widget of the new block is no longer available in the list:
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: jc_block_7 is not set.
/homepages/8/d453795254/htdocs/SiteHome/wp-content/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php
Links to code:
https://dl.dropboxusercontent.com/u/4800576/TagDiv%20questions/jc_block_7.php
https://dl.dropboxusercontent.com/u/4800576/TagDiv%20questions/jc_module_6.php
https://dl.dropboxusercontent.com/u/4800576/TagDiv%20questions/td-api-plugin.php
I would really like to see where this code is wrong please to help my general understanding, but I have found an alternative solution for this particular need.
td_block_21 also uses square images but in the theme is not in the widgets list. Having now found the way to get blocks in the list I put the block 21 in there and works great. I assume I cannot edit this file via the API or child theme? A direct edit is not ideal even though it is a simple one.
Thanks
OK, I finally found out the origin of the problem.
The problem is being caused by Visual composer. How can I solve this?
-
This reply was modified 11 years by
jonybigude.
-
This reply was modified 11 years by
jonybigude.
Hi,
The background transparency comes from the following file – http://screencast.com/t/6H42FHMsU Do you use a plugin which alters/combines the css? Try to disable all plugins except of Visual Composer and see if the issue is still there. If you use CDN disable it and check again.
Thanks!
Hi,
Please check if you don’t have any custom css that may affect this and also you can disable all plugins leave just Visual Composer and Woocommerce active, clear cache and see if you still have this issue maybe there is a plugin conflict.
If this doesn’t help you can try to target more specific and use this custom css: http://screencast.com/t/Mpy2RPq8Oo
.woocommerce .td-main-page-wrap div.product .woocommerce-tabs ul.tabs li.active {
background-color: #0d732f !important;
}
Thanks!