- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to Update the WPBakery Page Builder plugin
Hi,
Maybe there is some sort of plugin interference. I see you have some extra classes on your pages so maybe they affect the search in some way. Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Then check the search again.
Let us know how it goes.
Thank you!
Hi,
the best way to insert ads through the php files is the do_shortcode function: https://developer.wordpress.org/reference/functions/do_shortcode/
This nifty function will render all visual composer shortcodes including an ad box. So the best way to do it is create a dummy ad box on a page and set it up the way you like (you must make use of the ad spots in the theme panel) and then simply enter classic mode and text m,ode to get the shortcode for the element.
Then you can use the function like so:
Mind the php tags as some places already have them open so you do not need them there.
FOr your specific case with the search results, you can add the code like so: http://screencast.com/t/jSjEOEbrtu
Hope this helps.
Thank you!
Or for those who are possibly lost:
====================================
“changed_files_6.6.5_6.7.html”
Newspaper theme
Here is a list of all the changes between v 6.6.5 and v 6.7
Modified files – 12 files
page-pagebuilder-title.php
page.php
style.css
includes\td_config.php
includes\plugins\js_composer.zip
includes\shortcodes\td_block_authors.php
includes\wp_booster\td_global.php
includes\wp_booster\td_wp_booster_functions.php
includes\wp_booster\wp-admin\panel\views\td_panel_categories.php
includes\wp_booster\wp-admin\panel\td_view_theme_plugins.php
js\tagdiv_theme.js
js\tagdiv_theme.min.js
Deleted files – 1 files
includes\plugins\revslider.zip
Deleted files – 0 files
=============================
“update_log.txt”
[ Version 6.7 ]
– new: Visual Composer plugin updated to the latest version 4.11
– new: Revolution Slider plugin updated to the latest version 5.2.2
– fix: Theme Panel fixed the structure for categories that have multiple branches(subcategories with their own subcategories)
– fix: Visual Composer 4.10 – Video Player resize problem for aspect ratio 4:3 and 2.35:1
– fix: removed some old Visual Composer detection code from td_wp_booster_functions.php, it was causing an error in certain cases
– fix: improved the Visual Composer detection code inside the default page template file, it was triggered when the shortcodes didn’t have unique names(ex. Woocommerce shortcodes)
– improvement: Authors box widget/block – added user roles option, now you can set it to display only the desired role(s) – https://codex.wordpress.org/Roles_and_Capabilities
– other: to keep the theme size under 8MB we removed the Revolution Slider install from the Newspaper->Plugins section. You have to install it manually – https://forum.tagdiv.com/how-to-install-revolution-slider-v5/
– other: removed unused code from “page-pagebuilder-title.php” template file
When I use the Newspaper theme search function, any page that was created with visual composer shows some crazy results.
It shows all of the shortcodes and gibberish used to create the VC pages.
Example:
http://i.imgur.com/GMsVrK1.jpg>
Posts return normally, it’s only for visual composer pages, which we have a lot of in our site.
How can I prevent this from happening?
Here’s the staging site if you want to try for yourself.
http://dev-seedbed-blog.pantheon.io/
Hello waqas,
You can use Tabs element from Visual Composer and for each tab section you have to insert the Video Player, like this -> http://screencast.com/t/5H5H5y23wC6 and then you have to take this code and place it in your post editor, like this -> http://screencast.com/t/O3BcsOHV -> http://screencast.com/t/HSb0Jso7 and then you have to use a bit of CSS code for a good results. Please use the code below and place it in Theme panel->Custom CSS area.
The code is ->
.vc_tta-container .wpb_video_wrapper iframe {
height:100%!important;
}
The result you should see here -> http://screencast.com/t/2SUfXpvqkl
Please notice that this kind of Visual Composer element was not built for such cases and can appear some errors in the theme which involves more adjustments in the theme.
Hope this helps and let us know how it goes!
Thank you for the message!
Hi,
What version of the theme and what version of visual composer do you use? Maybe you have an older version that does not have these options.
Thanks.
Hello heisenberg234,
Yes, it is okay in your case. Above, I gave you an example with do_shortcode because this kind of method offers you the way to add the ads anywhere on the site and you can use it when you do not have an option from Theme panel.
If you need only 2 columns in your post content, you can set it from editor, like this -> http://screencast.com/t/bhNecroT and if you need more than 2 columns, you have to create the code from Visual Composer editor and then you have to copy/paste the code in the HTML source of the post, like this -> http://screencast.com/t/UJfUJPnz -> http://screencast.com/t/rnuVk21z6oQj -> http://screencast.com/t/hlK5SRP4SoA
and the result you should see here -> http://screencast.com/t/bo0oqWUQcb
Hope this helps!
Thank you for the message!
Hi,
1) The method Alin posted works as expected. The code adds a condition to check for a certain category. He used ‘vogue’ but you can change it to your own category name. You can ad multiple conditions if you know a bit of PHP: http://php.net/manual/en/control-structures.if.php
I’m not sure how saving is not possible. You need a text editor (we recommend notepad ++) and access to ftp. Then simply edit the file, add the code and hit the save button. (Please note that if you use a child theme, it will not work as none of the files inside wp-booster will work from the child theme)
The names of the post templates are specified here:
If you cannot get it to work, please note that custom work falls beyond what support can offer you so you might want to consider hiring some help as we cannot offer customization services. We can only point you in the right direction.
2) Regarding the AccessPress Social Counter plugin, we have no clue of it’s functionality as it’s not tested so we cannot provide a solution for it.
3)We do not recommend upgrading to pro as all of the features visual composer has to offer were tested with our theme. If the pro version provides even more features, there is a chance they will not work as visual composer was adapted to work with our theme. That is why we provide it bundled with the theme and we provide the updates ourselves.
Thank you!
Hello lewis-wass,
I have checked your website and I saw the issue with your featured image (it seems to be a front-end issue). I suspect this problem being from your untested plugins which interact with our theme and could cause these type of issues. Please try to disable all the active plugins, leave just Visual Composer to active, clear all cache and install only the plugins that come bundled with our theme and rule out the conflicting plugins. Also, please try to disable the lazy load from your panel if this option is active, like this -> http://screencast.com/t/tBpvdpDr9MRB
Hope this helps and let us know how it goes!
Thank you for the message!
I have an odd problem. My site has a number of different custom post types. When I go into Visual Composer, in the Roles Manager and set it so that Visual Composer is accessible to these other custom posts types, it works fine for a while but then always resets back to just being available on Page post type.
I go back into Roles Manager, select the other post types again, and then it works until it resets itself again. This can happen once a day or every couple minutes. There doesn’t seem to be any logic as to when it happens.
Related to this, I bought a paid version of Visual Composer in case I need to get support from them. How do I integrate a paid version into the site? I tried several ways: add via wordpress backend upload and via FTP, but neither method worked and in fact caused 500 server errors.
Thanks
Greg
Hello Bogdan,
I’m having problem saving changes made to the td_wp_booster_functions.php. I added the codes as instructed, but saving it is not possible, how do I go about this.
Hi, I want to start working on the code,
$current_categories = get_the_category($post->ID);
foreach ($current_categories as $category){
if ($category->cat_name == ‘Vogue’){
$td_default_site_post_template = ‘single_template_6’;
}
}
$current_categories = get_the_category($post->ID);
foreach ($current_categories as $category){
if ($category->cat_name == ‘Vogue’){
$td_post_theme_settings[‘td_post_template’] = ‘single_template_6’;
}
}
Ok, the category here is Vogue, what is the name of the post template used. I am thinking ‘single_template_6’ right?, just want to know the name of the post template and can I use it for more than one category
Secondly, I uploaded AccessPress Social Counter plugin, how do I make the widget available on the Elements window so I can use it in the visual composer.
Thirdly, Is there any benefit of upgrading the visual composer to pro?
Thanks for all your help.
We recently added the plugin Visual Composer – Social Streams With Carousel (http://codecanyon.net/item/visual-composer-social-streams-with-carousel/11471294) to our website. Once activated it causes some errors to the theme:
1. removes back to top button.
2. removes read more pop up module.
3. removes category filters on block’s
Wondering if you had any idea on why this would be. Still waiting on a response from plugin developer.
Thanks,
Hi,
The sidebars sometimes display “broken” if certain html is used on a post or if a smart list is not created properly in such a way that html tags remain open. Please check the text mode of your posts and see if there are any html tags open.
It can also be caused by plugin. Not all plugins are compatible with the theme so please try to disable all your plugins except visual composer, clear cache and reset cdn files if you use it. This way a plugin conflict can be excluded.
Let us know how it goes.
Thank you!
Hello newtag,
I have tested on my side, without Visual Composer and with the infinite loading for the category page and it are working as properly. Please try without untested plugins if you are using because its could cause som errors in the theme and could cause this type of issue. The only recommended plugin used to move the js to the footer is our tagDiv speed booster. For more references about this kind of plugin you will find in our documentation here -> https://forum.tagdiv.com/how-to-make-the-site-faster/ and please notice that this tutorial is only addressed for advanced users.
If you need more assistance in this regard and if your pagination for category pages are not working, please provide your WEBSITE URL so I can further inspect the issue.
Thank you for your understanding!
Hi,
Unfortunately I cannot provide a precise answer as Visual Composer add-ons are not among our tested items and their not on our to do list. Maybe our users can help you out if they used such add-ons.
Thank you!
Hi,
You can use css to achieve this result, but you need to leave the color settings to default (grey) otherwise visual composer will make the tabs lose their style and apply the plugin style to them.
You can use this code:
.vc_tta-tabs-list :nth-child(2) a {
background-color:red!important;
}
.vc_tta-tabs-list :nth-child(3) a {
background-color:green!important;
}
.vc_tta-tabs-list :nth-child(4) a {
background-color:blue!important;
}
This was created for an element that has 4 tabs. if you have more or less, then either add another line of code and change the num,ber 4 with 5 from the child selector or simply remove the last part if you have 3 tabs.
result:
http://screencast.com/t/lh0OGwei9K
Thank you!
Hello,
if i activate “strech row” in visual composer, the moibile-menu is brokes, when the user change the display-size
i don`t know, if i can explain that exactly, so i have made some screenshots:
https://www.asuro.de/files/screenshot_01.jpg
https://www.asuro.de/files/screenshot_02.jpg
https://www.asuro.de/files/screenshot_03.jpg
https://www.asuro.de/files/screenshot_04.jpg
on the first two screenshoots all its fine, but when i change the displaysize (screenshot_03) you can see, that the menu is broken.
IF i deactivate “strech row” it work`s
Maybe you can help me to fix the problem?
Thank Bodgan for your answer, but i activeted the child theme before the last theme update. In meantime, i written at the author of plugin that i use for to create the child theme. He answer me that Visual composer is loading after the parent stylesheet. He has added a temporary workaround and it is working for now, and he will try to put a permanent fix in the functions file. For the moment it works perfectly. I thinked that this information is useful also for you, because is a plugin rather used
Hello @thanik30 and @ChroniclesTV
I have checked your website and saw that your Facebook counter does not work as properly. Also, I noticed that you do not have the latest update of Visual Composer. -> http://screencast.com/t/4PEo5Sf0z Please try to update this plugin (latest version is 4.11) and see how it work after these changes.
For more information about Visual Composer updating, please check our documentation here -> https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
Also, you can follow the below guide for an accurate setting ->>
1) Please make sure you have the latest theme version: 6.7. If not, you need to follow this guide to update your theme: https://forum.tagdiv.com/how-to-update-the-theme-2/
2) Having the latest version of the theme is not enough if you do not update the social counter as well. You need to remove the current version you use: http://screencast.com/t/4jvRwNzK and then install the version of the plugin that comes with the 6.7 theme: http://screencast.com/t/9AKKURjTjX
You can recognize if you have the correct version of the plugin when you see the new app key settings: http://screencast.com/t/CIXxklBanNl If you do not have these settings in your social counter it means you do not have the correct version.
3)You need to follow this guide to get the requirements from facebook:
https://forum.tagdiv.com/tagdiv-social-counter-tutorial-2/
Please keep in mind that the social counter is not a live count. It will update once every few hours.
Also, if your problem is still there after these advices, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so I will further inspect your setup page. Also, please provide the link of this topic so we can know who you are and what the issue is.
Hope this helps and let us know how it goes!
Thank you for the message!
Hi,
There should be an alert if something goes wrong with the token. Please make sure you have the correct app key from facebook and try to disable all your plugins except visual composer, clear cache and reset cdn files if you use it. Then try the token again.If you still get the same error, please send us an email at contact@tagdiv.com and provide wp-admin so we can take a look. Also include a link to this topic.
Thank you!
Hello,
1) You can use this css to remove the bottom padding:
.td_block_big_grid_8{
padding-bottom:0!important;
}
But this will cause the block 1 below the big grid to stick to it so you need to assign an extra class to the row containing block 1 and use css with the class you assign like so:
http://screencast.com/t/iSvCwa5Dj6dX
.customrow1{
padding-top:20px!important;
}
2)You can assign a background color to the rest of the page by editin every row in visual composer lie you did the one with the big grid and assign that color to it.
3)Unfortunately I cannot see the ad at the moment. Please add it back in so I can inspect it and provide the proper code.
Thank you!
Hi,
sorry but I could not see the blocks in question: http://screencast.com/t/feBxsHuxXqe. In any case, every block can be removed. The blocks are on pages that can be edited in visual composer: https://forum.tagdiv.com/how-to-use-visual-composer/
I guess you already removed them.
Thank you!
Hi,
Every post template has a specific class you can check here: http://screencast.com/t/GgiEwozGrpSQ
You can add multiple conditions to the code if you wish to change it.
As for the plugin, we are not sure how the plugin works. You will need to use the implementation method specified by the plugin author. If you want to modify this behavior, we cannot offer any suggestions as we have not tested the plugin and have no idea of it;s functionality.
For the third part, there is no benefit at all, as different versions of visual composer will not work with pur theme properly except for the one that comes bundled with our theme. Please use just the version you can install from here: http://screencast.com/t/iuv6drOf (we will update the plugin along with the theme)
Thank you!
Hello Bogdan,
I added the code to the php file as directed, but it is not saving the changes in the php file, I can see the changes in Adobe Edge code but not the theme folder, how do I make the changes appear in the newspaper theme folder?
Thanks.
Hi!
I’m using Tabs of Visual Composer, in particular 1 tab with 3 sections in a row, now I need to hide the second section without delete it because I need to show it next days without build the content again, how can do this? CSS can help?
Thanks!
Hello. I have a problem with the static home page in the child theme, but don’t find a solution. In the Child Theme all pages and styles work correctly, but not the home page. In the home page (static page from Word Press, with Visual Composer) don’t appear the sidebar. In the Child Theme copy there are all files required, in the admin panel all sections are configurated with the same options of the parent theme, but in the home page, only, the sidebar don’t appear and do not work it the proportions 2/3 and 1/3 indicated in visual composer. After two days of trying I decided, for the moment, to renounce from using the theme child, though, having made several changes, it would be important to use it. Instead in the theme Parents all works well, also the home page. Do you have some idea? Maybe I missed something … bye, thanks