- NewspapertagDiv Composer – Website Manager
- NewspaperWhen tagDiv Composer is Not Working
- NewsmagtagDiv Composer Tutorial
- TutorialsFrom WPBakery to tagDiv Composer
- NewspapertagDiv Composer Tutorial
- NewsmagHow to use the Visual Composer plugin
- NewspaperScroll Animation
- NewspaperSingle External Shortcode and External Shortcode
- NewspaperCredit System
- NewspaperBookmark – Save For Later
- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperModules Builder in Newspaper Theme
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperCreate a frontend submission form
- NewspaperHow to Use the Tabbed Content shortcode
- NewspaperCreate a form contact page
- NewspaperFilters and sorting for taxonomies
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperWooCommerce: Happy âAdd to Favorites!â
Where did the widgets in Visual Composer?
After the changeover from version 4 to version 6, you can not delete the widgets and there are none that can be selected for the page layout.
There is only complete whole pages to choose from, but I want to select individual widgets as in version 4. How can I do that?
Unfortunately the visual composer stop working/showing in front end. http://www.serendii.com/ this is our site. Please see the screenshot for better understand.
and 
Did you
a) turn off all plugins except visual composer
b) clear all your server caching if using that
c) reset your CDN if using that / cloudflare, etc.
Make sure you delete old TD plugins, old theme folder; upload NEW theme folder, new plugins (don’t ‘over write’).
Then go to your “page” for your home page and preview to see if works; if not, then try making new simple page with just list of stories, preview see if works.
Just thoughts on debugging your particular setup.
I couldn’t wait on a response, so I had to hack CSS for now.
Just drop this CSS into Visual Composer’s custom CSS on your homepage only, it’s under gear icon:
body.home .td-container {
width: 1086px;
}
That did the trick for me.
I have every plugin disabled, even speed booster and Visual Composer.
I want to try one more thing. How do I disable retina for the Newsmag theme?
I’ve turned off all the plugins and only have the retina plugin and VC as well as speed booster. Disabling all plugin even composer and speed booster it still produces the same issues.
Looking at the console I am seeing the following errors. What do these mean?
Uncaught TypeError: Cannot read property ‘replace’ of undefined(anonymous function) @ tagdiv_theme.min.js:166m.extend.each @ jquery.min.js:2m.fn.m.each @ jquery.min.js:2td_retina @ tagdiv_theme.min.js:166(anonymous function) @ tagdiv_theme.min.js:156m.Callbacks.j @ jquery.min.js:2m.Callbacks.k.fireWith @ jquery.min.js:2m.extend.ready @ jquery.min.js:2J @ jquery.min.js:2
Hi. I have two questions if I may.
First of all. In order to show category on modules we use echo $this->get_category(). However, if you need to show both category and subcategory on module, what do you use and how?
I have tried :
<?php
$categories = get_the_category();
$separator = ' ';
$output = '';
if($categories){
foreach($categories as $category) {
$output .= 'term_id ).'" class= "cats" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.''.$separator;
}
echo trim($output, $separator);
}
?>
It works fine, but only for the theme pages (authors, categories, search etc.). The modules just ignoring the php and do not show any category/subcategory on the pages created through visual composer.
Second question. In order to get rid of the title tool-tips I have used some JS snippets.
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; i++) {
imgs[i].removeAttribute('title');
}
var alinks = document.getElementsByTagName("a"); for (var i = 0; i < alinks.length; i++) { alinks[i].removeAttribute("title"); }
Or
var titled = document.querySelectorAll('[title]'); // gets all elements with a 'title' attribute, as long as the browser supports the css attribute-selector
var numTitled = titled.length;
for (i=0; i<numTitled; i++){
titled[i].setAttribute('data-title',titled[i].title); // copies from 'title' to 'data-title' attribute
titled[i].removeAttribute('title'); // removes the 'title' attribute
}
They both work fine. However, after Ajax (load more, filters, mega menu etc.) they come back. So, basically JS resets after the ajax process. Is it possible to somehow implement JS so it works even after ajax?
Any help would be appreciated. Thank you in advance.
Hi,
reg: “Iâm not sure if I understand well, when you save it redirects to the above link?”
yes: when I click the button “save” when I’d like to save changes in other language menu settings. and it doesn’t save anything, just forwarding me on http://www.smebanking.club/wp-admin/undefined?lang=en
“Please try to disable all your plugins, leave just Visual Composer active” => It is not acceptable as I need to change second language menu so WMPL should work as well.
Having similar problems.
The big grid slider was replaced by a static grid, I had to add a new grid slider and delete the static grid. Not sure if this is because it is a depreciated Visual composer element.
Haven’t figured out the home logo yet
Hello,
We are still working on the speed booster plugin. To make speed booster run with all plugins, you can easly edit it like so: http://screencast.com/t/Lv17MLygXSZ
the list of tested plugins:
'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'
We will add more plugins as soon as we test them
Hi,
Please provide a link so we can take a look, also you can check this without any plugins active, leave only Visual Composer active, clear cache and see if you still have this issue with megamenu. If you don’t please activate your plugins one by one and see which one caused this issue.
Thanks!
Hi,
1. Please disable all your plugins leave just Visual Composer active and clear cache. You can change the block title from settings – http://screencast.com/t/J7dTw8ny0Cdv
2. You have an option for each block to filter by category – http://screencast.com/t/djlQMLoY7D
3. For tagdiv blocks you can change the title color and background – http://screencast.com/t/wNXFYuwJHqTy please provide more details what title color you want to change as wordpress widgets titles can be changed using custom css.
4. Please provide more details as I’m not sure what you mean, also a screenshot and your site url may help.
Thanks!
Hi,
most of the font settings applied to my selections in theme fonts. but lists in format ul li included with visual composer are not responding.
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.
thx Alin
unfortunately I’m not able to resolve the issue. At this moment all plugins are deactivated except composer and I get
Fatal error: Call to undefined function get_base_recaptcha_lang_code
I think I played too much with fucntion.php would be cool if someone would take a look and I think the prob for the jquery messages may lay here too.
EDIT: ok I commented the lang part out and now it works, somehow it was anyway double. The slider is also visible now though the thumbs and image are scaled too large, how can fix that one ?
On the jquery error before I assume I activate plugins one by one and see where the pain comes right ? and off I go..
<?php
/* ----------------------------------------------------------------------------
WordPress booster framework - this is our theme framework - all the content and settings are there
It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_config.php';
include TEMPLATEPATH . '/includes/wp_booster/td_wp_booster_functions.php';
}
/*include theme.js under newsmag to put modal image on*/
/* include theme.js*/
/*wp_enqueue_script( 'theme-js', get_stylesheet_directory_uri() . '/js/theme.js', array( 'jquery'), NULL, TRUE );*/
remove_action( 'wp_head', 'wp_generator' ) ;
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 );
add_filter( 'pre_comment_content', 'wp_specialchars' );
function no_errors_please(){
return 'You appear to be up to no good. Please stop now!';
}
add_filter( 'login_errors', 'no_errors_please' );
// and we hook our function via
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
function delete_enclosure(){
return '';
}
add_filter( 'get_enclosed', 'delete_enclosure' );
add_filter( 'rss_enclosure', 'delete_enclosure' );
add_filter( 'atom_enclosure', 'delete_enclosure' );
// 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 );
add_filter( 'jpeg_quality', create_function( '', 'return 65;' ) );
//remove render blocking by jetpack
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
function remove_pingback_url( $output, $show ) {
if ( $show == 'pingback_url' ) $output = '';
return $output;
}
add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );
// 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');
}
}
// Defer jQuery Parsing using the HTML5 defer property
if (!(is_admin() )) {
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
// return "$url' defer ";
return "$url' defer onload='";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
}
// Remove WP version number from js and css files.
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 tweakjp_add_sharing_js() {
wp_enqueue_script( 'sharing-js', WP_SHARING_PLUGIN_URL . 'sharing.js', array( ), 4 );
$sharing_js_options = array(
'lang' => get_base_recaptcha_lang_code(),
'counts' => apply_filters( 'jetpack_sharing_counts', true )
);
wp_localize_script( 'sharing-js', 'sharing_js_options', $sharing_js_options );
}
add_action( 'wp_enqueue_scripts', 'tweakjp_add_sharing_js' );
function tweakjp_add_sharing_css() {
wp_enqueue_style( 'sharing', WP_SHARING_PLUGIN_URL. 'sharing.css', false, JETPACK__VERSION );
}
add_action( 'wp_enqueue_scripts', 'tweakjp_add_sharing_css' );
-
This reply was modified 11 years by
cem.
Hi,
Unfortunately I don’t have a copy of this plugin and we don’t tested it with the theme. You can try to deactivate all plugins, leave just Visual Composer and Orbit extension active, clear cache and check again if you still have this issue.
Thanks!
Since updating, quite a few of our pages are showing as full width when they should have a sidebar!
I have made sure that Template Settings -> page has got sidebar right selected and that the individual pages have got default template selected but this is making no difference đ
These pages do not use any VC elements. Interestingly, if I disable Visual composer all my page templates give an error in nginx and I can’t see anything, yet posts and taxonomies still work fine.
Hi,
I’m not sure if I understand well, when you save it redirects to the above link?
Please try to disable all your plugins, leave just Visual Composer active, clear cache, also re-save your permalinks and see if it works.
Thanks!
Hi,
Visual Composer doesn’t come by default with this type of icons. Maybe you have used a plugin/extension.
Thanks!
Hello,
since upgrading I’m getting the following error in Query MonitorâŠ
Broken Dependencies
vc_woocommerce-add-to-cart-js
http://www.mydomain.com/wp-content/plugins/js_composer/assets/js/vendors/woocommerce-add-to-cart.js
wc-add-to-cart (missing)
4.5.2
Is this a js composer issue or is the theme calling a function that no longer exists?
Thanks
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,
@kaygorod There is an error on your category page – http://screencast.com/t/pW71o5MRjp2 Also you can resave the permalinks and try this without any plugins active, leave just Visual Composer and clear cache.
I have checked your article and the bottom ad is displayed – http://screencast.com/t/O11mrhA6b please provide more details. You have an option set the size of ad – http://screencast.com/t/3yvMv7Xu8g
Thanks!
Talking about bugs and adjustments, I cannot edit any element of any page using visual composer after updating. I only can move elements, but not edit them.
Hi,
We implemented a check, if you add visual composer content to the page on the default template the sidebar is disabled. You can easily override this check by adding the following line in page.php – http://screencast.com/t/WvbLIzGyYj
Hope this helps. If it doesn’t work please provide more details about your pages, what template did you use and details about the blocks used.
Sorry for the trouble you encountered with this update.
Thank you, Emil G.
Hi,
We have released version 6 of the theme and has more blocks that can be added with Visual Composer, so you can check the demo and see if there is one like you need – http://demo.tagdiv.com/newspaper/block-1/
Thanks!