Hi,
please help!
I add custom body class code thrue theme panel and every page that I enter has this error: wpb-js-composer js-comp-ver-4.11 vc_responsive td-animation-stack-type0 td-boxed-layout td-ad-background-link” itemscope=”itemscope” itemtype=”http://schema.org/WebPage”>
Where can I remove custom body class code?
Hello,
As you’re providing the Visual composer plugin for free with every purchase. If you can, then you should try enabling the automatic updates of Visual composer plugins for your user. For what? For security reasons… If there’s a new plugin version, that means there may be a security vulnerability in the previous version (may be a serious thing or a least thing of concern).
However, you provide new plugin updates along with a new version of Newspaper. You try to give it as soon as possible. I understand. But, “Security Breaches” don’t really wait for “as soon as possible”. Hope you understand my security concern. And, I don’t want anyone’s site getting compromised because of the outdated Visual Composer plugin.
Hello willysawa,
If you are using more block 9 for your website, and you want to target the specific one, you have to add custom class for each row that contains your block and this you can set from Visual Composer, like this -> http://screencast.com/t/ZQmbJHLEz and then you have to use this code ->
.customclass .td-post-author-name{
display:none!important;
}
Hope this helps!
Thanks.
Hello hvatinat,
I suspect this issue come from your untested plugins. 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. For a quick solution, you should try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td_block_wrap {
padding-top: 48px;
}
The result you should see here -> http://screencast.com/t/ESUO79beHcN
Thank you for the message!
Hi
6. Try this css in theme panel > custom code > custom css: http://screencast.com/t/Zf4I9taD8l
.td_module_14 .td-module-thumb{
margin-bottom: 0;
}
7. I’ve checked your site on Google Chrome and the changes are applied fine on my end. If yous till have this issue clear browser’s cache and test again.
The number of posts displayed in a block can be set form visual composer > block settings: http://screencast.com/t/pUeoGlaanbk
Thanks!
Hello,
I’m trying to get rid of Visual Composer on the posts that don’t need it. After looking through the code I’ve noticed that both VC’s js and css files should be loaded only when VC content is present. While this works perfectly fine with js, css is loaded on every page. Digging further I’ve also found that /includes/wp_booster/td_wp_booster_functions.php seem to have VC’s css file loading hardcoded. Is that some kind of workaround for a bug in VC/Newspaper? Is there a way to get rid of unneeded css file?
Thanks!
Hello nomadhermit,
If you want to add the widget to the bottom of individual posts, you have to use the Widgetised Sidebar and place it with do_shortcode method where you want in the posts. First of all, you have to create the code with the desired widget from your Visual Composer editor, like this -> http://screencast.com/t/maoAeYKaIFo -> http://screencast.com/t/pXvfBOVQgU (example for td_demo_category_widget) and then, this snippet of the code <?php echo do_shortcode('[vc_widget_sidebar sidebar_id="td-td_demo_category"]'); ?> you have to place in the post template used by you in the bottom of the page, like this -> http://screencast.com/t/kXiU748n (this is just an example for post template 1). Also, please notice that you can set your widgets from Widgets area section, like this -> http://screencast.com/t/LoSeuujRP0
Hope this helps!
Thanks.
Hi
6,7. Please provide your site url so I can inspect this closer and get back to you with a more accurate answer.
9. You can use one of theme’s ad-spots to display the ad on top of the page. First insert the html ad’s code in one of custom ad-spots from theme panel > ads then use do_shortcode() function to display a banner ad on top of the page. Just edit the file corresponding with the header style used and add this code like here: http://screencast.com/t/itasx4W4T – http://screencast.com/t/FSgnXBREg3
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
I’ve used custom ad 1 for this example but you can use any custom ad, just adapt the shortcode. For example if you use custom ad 5 the shortcode will be: td_block_ad_box spot_id=”custom_ad_5″
To insert the banner ad below big grid you can use the ad-box block from visual composer like here: http://screencast.com/t/trJzEe9Ufr – http://screencast.com/t/veASTnq2d
Thanks!
Hi there, I bought the theme a week ago to update my website. I am still working in localhost and something happened and I don’t know how to fix.
Every page that I enter has this error: class=”archive category category-dicas category-146 logged-in admin-bar no-customize-support td_category_template_6 td_category_top_posts_style_4 wpb-js-composer js-comp-ver-4.11 vc_responsive td-animation-stack-type0 td-full-layout” itemscope=”itemscope” itemtype=”http://schema.org/WebPage”>
As you can see here http://snag.gy/JQmF3.jpg .
I thing this started when I putted the Google Analytics UA,and then take it off.
Can you help me?
Hi
To achieve the current layout on our demos we combined different blocks on the page and set a specific configuration for them.
Please check our documentation for more details about page setup, blocks settings and visual composer usage: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/ – https://forum.tagdiv.com/newsmag-block-settings-tutorial/ – https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/ Also you can check our youtube videos here: https://www.youtube.com/watch?v=TUdVeZ1pbuc&list=PL6CsDkMaejhpWFcFNOIDfdp5nIT0NbUbj
1. On top of our travel demo we use a big grid 6 with grid style 7: http://screencast.com/t/kK4cxADm4M7
2. I assume that you’re referring at this part from our demo: http://screencast.com/t/1K76Jyg8bb6 There we use latest article part and module 14 for layout: http://screencast.com/t/bzWaMkx7qMpq You can also use a block 13 from Visual Composer to achieve the same layout: http://screencast.com/t/uvzjovotqyS
3. To move the title below the featured image on module 14 add this css in theme panel > custom code > custom css: http://screencast.com/t/1N8UqmYG0qw
.td_module_14 .meta-info {
position: initial;
}
Thanks!
Hi
You can set a background color for each bloc title from Visual Composer page-builder: http://screencast.com/t/iiTDFVA80 – http://screencast.com/t/nBOu6Ofz72Si
For more details regarding page setup and visual composer usage with our theme please refer to our documentation: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/ – https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/ – https://forum.tagdiv.com/newsmag-block-settings-tutorial/ Also you can check our youtube videos: https://www.youtube.com/watch?v=TUdVeZ1pbuc&list=PL6CsDkMaejhpWFcFNOIDfdp5nIT0NbUbj
Thanks!
Wow, That is a whole lot of questions in one!
1) Unfortunately the latest articles cannot stretch to the whole width as they are not visual composer elements. There is no easy way to do it.
2) You cannot get the footer ad outside the footer. You will need to place the add in every post template, category template or page as the footer ad is meant to stay in the footer. It cannot create the necessary space for it in every other template that displays above it. If you want this custopmization you have a bit of work to do as you need to use this code:
Then place an ad in the custom ad 1 spot and then use it in every post template you use: http://screencast.com/t/pxohXgHczwym (these are in the root directory), the category pages: http://screencast.com/t/zgs5t556 , search results, and any other content you have on your site.
As you can see it’s not that easy.
3)You cannot add borders to the big grid as borders will increase the width with a few pixels and the grid depends on it’s fixed width. The layout will break if I add borders with css to it.
4)Please follow this topic to see how this issue can be resolved: https://forum.tagdiv.com/topic/chinese-social-icons/
5) a)It’s best to hide the section altogether and simply upload a mobile logo from the theme panel as there is no point in having 2 logos :
@media (max-width:767px){
.td-header-sp-recs{
display:none!important;
}
}
b) same issue as answer 4
Thanks.
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
Hi,
Yes,the latest articles section does not appear in the visual composer editor. You can change that with this css:
.td-pb-article-list{
background-color:grey!important
}
Thanks.
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.
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!
Hello,
1)You can use this css:
.home .td-main-page-wrap{
padding-top:1px!important
}
I left 1 pixel so that it doesn not completely touch the menu. If you want it like that, simply set it to 0px
2)In order to achieve that effect, you can stretch the rows in visual composer and add background to them like so: http://screencast.com/t/ZJD3RAq6v and set a background color from design options.
Hope this helps.
Thanks.
Hello fakamaka,
If you want to have the custom title and colours for some desired elements, you can use Text with Title element from Visual Composer without text and you should leave just the Title, like this -> http://screencast.com/t/5Q9zTjMW and then you have to use a bit of CSS code to decrease the extra white spaces. The result you should see here -> http://screencast.com/t/vzu09EOmc
The code is ->
.td_block_text_with_title{
padding-bottom: 0;
}
.td_block_text_with_title .block-title {
margin-bottom:2px;
}
Hope this helps!
Thanks.
Hi.
I see your featured images on internet explorer not displaying properly, but I also see an altered height of the post template. Please make a back-up of your customization, then remove it and also disable all plugins except visual composer, clear cache and reset cdn files. Revert the theme to it’s defaults then test again.
This is how that particular post template should display by default:
http://demo.tagdiv.com/newspaper/td-post-the-new-screen-savers-the-show-that-launched-video-into-the-stratosphere/
Let us know how it goes.
Thank you!
Hola, este problema que voy a reportar se soluciono hace un tiempo, pero hoy ha vuelto a aparecer.
https://drive.google.com/open?id=0B9mIVhzg2VN_Z3JQTGRJdGROMTg
https://drive.google.com/open?id=0B9mIVhzg2VN_QkE4em82YW9Hazg
Este es el codigo que me indicasteis para solucionar el problema
@media (min-width: 768px){
.td-header-wrap .td-affix .sf-menu > li > a {
line-height: 30px;}}
Por otro lado en las 2 ultimas actualizaciones me sale alerta para actualizar Visual Composer
https://drive.google.com/open?id=0B9mIVhzg2VN_VW5tMjJWaE9UNmc
———–
Hello, this problem will be solved report a while ago, but today has recurred.
https://drive.google.com/open?id=0B9mIVhzg2VN_Z3JQTGRJdGROMTg
https://drive.google.com/open?id=0B9mIVhzg2VN_QkE4em82YW9Hazg
This is the code that you indicasteis me to solve the problem
@media (min-width: 768px) {
.td-header-wrap .td-affix .sf-menu> li> a {
line-height: 30px;}}
On the other hand in the last 2 updates I get alert to update Visual Composer
https://drive.google.com/open?id=0B9mIVhzg2VN_VW5tMjJWaE9UNmc
Hello mahmoudfathymohamed,
I have checked your website and I have noticed that you have not the featured video set it from theme panel, like this -> http://screencast.com/t/wDrk14VdzE Please ensure that you have set it your desired video as Featured video and also make sure that your theme is not influenced by some untested plugins which can cause some errors in the theme. Try to disable all the active plugins, leave just Visual Composer, clear all cache and install only the plugins that come bundled with our theme and rule out the conflicting plugins. I have tested on my side with the same post template with featured video and the video is displayed fine, as you can see in our demo preview, here -> http://demo.tagdiv.com/newspaper/td-post-how-to-make-a-perfect-caffe-macchiato-video/
For more information about our post templates, please consult our documentation here -> https://forum.tagdiv.com/post-templates-2/
Let us know how it goes.
Thank you!
Hello kognitoweb,
Please ensure that you have set it correct this type of feature according to our documentation here -> https://forum.tagdiv.com/gallery-2/ I have tested on my side and the images are fitted as properly, as you can see here -> http://screencast.com/t/RPQGuO6G and also you can check our demo preview and check the results, here -> http://demo.tagdiv.com/newspaper/td-post-aston-villa-beat-liverpool-to-join-arsenal-in-the-fa-cup-final/
Please try to disable all the active plugins, leave just Visual Composer, clear all cache and install only the plugins that come bundled with our theme and rule out the conflicting plugins. If your problem is still there after my advice and if you need more assistance in this regard, please provide your website URL so I can further inspect it closer and also, so I will be able to provide a more accurate response.
Thank you for the message!
Hi,
I disabled all the plugins (also updated Visual Composer to the last theme-included version) but no change.
I think the font size problem is due to the fact that i still have to use a css-hack to actually target the paragraph (p) settings under the individual pages, like:
.page-id-81 p {font-size: 12px !important;}
– if my forum page has 81 as the id-number.
This has been an issue since i brought the theme about a year ago (have had to do it on my contact-page for example). It only applies when using Visual Composer since the divs being created by it seems to be uneffected by the regular page paragraph setting.
As for the link on the H1/Title being incorrectly set to the bottom-most forum I have no idea what can cause. I disabled the whole H1-tag with:
.bbpress .td-page-title {display: none !important;}
Not an ideal solution, but at least it works.
Any more ideas on this?
Hello,
Sorry but our theme has no such setting. If you want to change the background color of a row in visual composer, this can be done from the row settings: http://screencast.com/t/yGItmgIkG and then use this css:
.td_block_12 .td_module_wrap{
background-color: white;
border-radius: 10px;
margin-bottom: 10px!important;
margin-top:10px;
}
.td_block_12 .td_module_11{
padding-bottom:20px!important;
}
.td_block_12 .td-module-thumb, .item-details{
padding-top:10px!important
}
result: http://screencast.com/t/twJzIfr7Wi
Thank you!