- NewspapertagDiv Composer Tutorial
- NewspaperCredit System
- 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
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperSocial Sharing
- NewspaperSingle Post Shortcodes
- NewspaperInfinite Loading for Single Posts
- NewspaperThe Newspaper Mobile Theme: Introduction
- NewspaperHow to Add a Logo in Newspaper
- NewspaperCustom Post Type Support
- NewspaperCloud Library Templates
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperHeader Builder
- NewspapertagDiv Cloud Library Plugin
- NewspaperAd Box Element and Ads Overview
Just like with the ad display how you can add an ad code to show X amount of paragraphs into a post can I do the same with server side include?
What I am trying to achieve is to have one file (a php) which I have designed using Visual Composer to be placed on every posts within the site.
Visit http://soperth.com.au/10-things-can-find-perth-12715 on a mobile device and scroll down to see the now trending box. I want to be able to automatically have this box appear on all posts that I have created and when I want to change the content that is within that box I can simply change 1 file and then upload it to the server to show different content. Ultimately I want to be able to do this so I can increase pages per session and for advertising purposes promote a sponsored article throughout the whole site – increasing traffic to the post.
At the moment I am currently having to manually copy and paste the following code to display the box on mobile only. The DIV include_pad is to allow for padding between the box and blog copy.
<div class=”ttd”>
<div class=”include_pad”>[insert_php]
$FileLocation = “/include.php”;
readfile($_SERVER[‘DOCUMENT_ROOT’].$FileLocation);
[/insert_php]</div>
</div>
HI
I’ve checked your site again and found some js errors in browse’s console: http://screencast.com/t/1hoN7Soo This errors may affect theme’s functionality so try to deactivate all plugins except Visual Composer, clear all caches then test the site again. Also you can enable the smart sidebar from theme panel > template settings for posts: http://screencast.com/t/vvmA5nmWVmi This option will also make the sidebar sticky if you’re not using Visual Composer on pages. To make the sidebar sticky on pages where Visual Composer is used add td-ss-row class on the row as it’s indicated here: https://forum.tagdiv.com/newsmag-smart-sidebar/
Thanks!
J’avais sur mon blog Newspaper j’ai voulu mettre la feuille de style Travel blog Ă partir d’installer la dĂ©mo.
J’ai ce message d’erreur : Revolution Slider Error: Slider with alias td-travel not found.
Version installée 5.2.5.1
Dans extension, j’ai le message suivant :
WpBakery Visual composer 4.12
Proposition de mise Ă jour vers version 412.1 par WordPress
Mise à jour de l’extension WPBakery Visual Composer (1/1)
Une erreur est survenue lors de la mise Ă jour de WPBakery Visual Composer To receive automatic updates license activation is required. Please visit Settings to activate your Visual Composer. Got Visual Composer in theme?
Statuts :
Theme name i Newspaper
Theme version i 7.3
Theme database version i 7.3
Theme aurora version i 1.1
HTTP channel test wordpress
Installed demo i Travel Blog – demo ID: blog_travel | install type: full
Theme Mobile Newspaper mobile version
Speed Booster v4.5 – Disabled – incompatible plugin detected: akismet/akismet.php
Hi,
Let me try to explain better. There is no setting to change the color of the category tag in our theme. the element is added across the whole site.
you can use a css code to change it;s color, but it will change the color for ALL category tags on your site to the same color. This is the code you need to add in the theme panel-> custom css box for this to haoppen:
.td-post-category{
background-color:red!important;
}
This code will make all category tags red: http://screencast.com/t/0lTOULi7fI`
Now if you want to go further in depth and only target a specific block, let;s say I want to target my first block on the page and not any other one. i can access the back-end of the page in visual composer: http://screencast.com/t/3X6PF4Vl
i need to move it on a separate row, not like it;s right now. Here is how it will look like: http://screencast.com/t/ZxXPuMkyF0Pw
We do this as you can only add an extra css class on a row, not on a particular block.
now we access row settings and assign a class name. you can name it anything. I will name mine: custom_class:
http://screencast.com/t/FlBUC25u then we hit save and updqate the page.
Now i can use this code:
.custom_class .td-post-category{
background-color:red!important;
}
http://screencast.com/t/yoFtyfEoNH
Thanks.
Ive got this error /wp-content/themes/Newspaper/includes/wp_booster/td_video_playlist_render.php on line 174
Ive updated the theme
Ive updated the Visual Composer (i cant activate it, it says No license found)
Where is the issue here
its only happening on News Magazine theme
Hello,
1) there is no theme setting for this but it can be done with a css trick. Add this code in the theme panel->custom css box:
.td_block_4 .entry-title a{
pointer-events:none!important;
}
And if you want to remove the hover color you can also ad this code:
.td_block_4 .td_module_wrap:hover .entry-title a{
color:initial!important;
}
2) This functionality is mentioned here: https://forum.tagdiv.com/background-introduction/
It is related to the site background. If you want to have a full width header and footer, yopu need to remove any background image or color (white counts too) You need top press the clear button for the background color and remove the background image.
3) The site width cannot be altered. Our theme was built on a fixed width and there is no simple way of changing it as all the theme elements depend on this fixed width.
4) The category tag color can only be changed with css. For this you need to add an extra class on the row that contains the block in visual composer and then use the class in this css code like so:
.mycustomclassname .td_block_4 .td-post-category{
background-color:Red;
}
Thank you!
Hello ABilgen,
Please notice that you can use the shortcode which is generated for each block in Visual Composer and place it everywhere you want in your post article, like this -> http://screencast.com/t/CXZ9zth19 -> http://screencast.com/t/FY2TdUKaL -> http://screencast.com/t/GyDsxUzKTP and the result -> http://screencast.com/t/Of3qsGGCcPR
Hope this helps!
Thanks.
Hello Yucca,
You can edit the theme template files that correspond to each post style you use on your site and use a do_shortcode function like so:
<?php echo do_shortcode('[vc_row][vc_column][td_block_5 custom_title="Block title2" limit="3"][/vc_column][/vc_row]');?>
http://screencast.com/t/2QKMvATQ2jY
You can get the shortcodes for any block from visual composer if you access the classic mode and text mode in the mce editor: http://screencast.com/t/c8HfwvZt
Thank you!
my blog looks good on a pc, the problem is when I try to open an article (post) I made with visual composer and the problem is just when you try to open in a mobile phone.
this is the error
td_api_base::mark_used_on_page : a component with the ID: td_remote_cache is not set.
/home/fanatico/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
Missing parameter: ‘file’
/home/fanatico/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_autoload_classes.php
I repeat I am not a Professional, I don´t know how to do the ftp way
Hi folks
since we’ve chosen to disable comments sitewide at this time, having the [comments] pill-button element on the author box sidebar widget serves no purpose; is there a way to hide this — guessing just use CSS? Might add a toggle for that in future update since not impacted by “disable comments” in rest of panel (on your list of one million suggestions).
Thanks! 🙂
NM 3.1 + TDComposer BETA is rockin!
I’m actually not using the speed booster plugin anymore myself; I’m now doing this
Switch from VC to TD Composer beta, and:
a) Scripts to Footer plugin
b) generate and insert critical CSS in header.php
c) de-enqueue main style.css in functions.php
d) manually add link to minified style.css in footer.php
In my case this works very well; especially with fast server, all other optimizations, and with mod_pagspeed running very quick (it’s off right now as bug in last release for our server, waiting for next stable version any day now …)
I will do a tutorial on this at some point …
-
This reply was modified 9 years by
simchris.
Hey!
I’ll post updated version once I finish the tweak of doom! Have been messing with the new TD Composer beta, so got sidetracked, as I wanted to leave VC behind entirely from “now” onward.
I will actually update and add the #comments on what couple of the things actually do. And I’ll include my AMP footer injection code, too!
Actually the trick with the stupid render blocking thing is three step
a) generate ‘critical CSS’ for your post page; insert this into the header.php right before </head>
b) in functions.php – “de-enqueue” the main style.css from being generated and placed in the head.
c) put link to the main style.css file in the footer.php file.
d) if you don’t want to use functions.php to move the other .js stuff; use the “Scripts to Footer” WP plugin.
THAT is the super secret way we do it for my SEO service here (not a sales pitch). What this does is load the important CSS “above the fold” inline, then page loads on mobile (and I have 98 MPS score to prove it; the last gotcha is the CSS for stupid ‘tap targets’ — ugh) without waiting for anything, then main CSS loaded at end.
This simply works. If you have weirdo plugins injecting css and js in the head, you’ll have to de-enqueue them and move to footer.php manually. But the speed rating improvement is insane as there is literally *no* “render blocking” of any kind for Google on mobile or desktop. Period.
I was writing an ebook on all of this but personal life intruded so that didn’t happen.
-
This reply was modified 9 years by
simchris.
Hello Fiat Ministry Network,
I have checked your website and I saw that you have a problem with your mobile theme in that your featured images are not displayed. Please try to re-download the latest version of the theme which is still 7., but the fix was implemented after 7.3 was released. Please download the theme again, delete your current theme and install the freshly downloaded one. The version is the same but the fix will be present.
As an alternative here is the fix needed:
Add this code in the mobile theme’s function.php:
td_global::$td_options = get_option(TD_THEME_OPTIONS_NAME); //read the theme settings once
It should look like so: http://screencast.com/t/ke18K42lG
Please notice that our theme has 2 alternatives regarding on mobile -> mobile theme and mobile responsive mode.
The mobile theme concept has been designed to have an own layout for the front page which is different than the desktop version. The mobile plugin intends to display the Big Grid with three posts in the top of the page, some text if it will be added in Mobile editor from Visual Composer and the Latest Articles at the bottom of the page. For more information about this mobile theme, please check the documentation here -> https://forum.tagdiv.com/the-mobile-theme/ So, if you want to have a similar layout with the desktop mode, you will have to disable this plugin and the theme will be switched to the general responsive mobile version.
Hope this helps!
Thanks for your understanding!
In our case there was some weird issue with Visual Composer where processes would go out of control and server CPU would spike from “1” to “70” and eventually crash the box even with dual XEONs and 32GB RAM. There was no server side “tweak” to solve it.
At the time, Radu made a “shim” where we could create layouts with most of the TD modules for our home page, disable VC, then leave the shim on. That worked great the past 15 months or whatever it’s been.
If your server had the same particular mix we had, and running 1.71, and the older version of Visual Composer, you can “try” to build your home page, then DISABLE the plugin and see if the pages still load once the CSS is there.
But really, v 3.1 is awesome and I keep finding little gems, like the ” – advertisement – ” for ad spots, the IDs for categories shown in module drop downs (!), etc. — loving it!
-
This reply was modified 9 years by
simchris.
Hi
Please note that the plugin is still ion beta version and there is a change to not work as expected on any wp configuration. It may conflict with one of your plugins so try to deactivate them all, then try to use the plugin again. It’s best to test it on a test install, not directly on your live site, just to make sure that there won’t be any issues.
For other questions related with td-composer plugin please open a thread here: https://forum.tagdiv.com/forum/tagdiv-composer/
Thanks!
Hi Team,
I just uploaded td-composer-newsmag but it doesn’t work:(
I can see the TDComposer on the admin menu >> http://prntscr.com/cc8lxr
If I click on it , nothing happens >>> http://prntscr.com/cc8mdu
What can I do now ?
Thanks in advance
Hello,
1) Please do one more test with adsense. Please install the adrotate plugin and use your adsense code with the plugin. You can add the plugin shortcode in the theme ad spots. This way you will bypass the theme ad system. See f the plugin shows the ad. This way you will know if the theme is the problem or the ad is the problem.
2) Our theme will create the thumbs you want it to. You can select what thumbs you want to be created from here: http://screencast.com/t/0q4GnuUpwLbw
3) Yes, sorry, there is block 15 that shows 3 thumbs, yes. You can find it in visual composer under all elements:
http://screencast.com/t/wUYmYNt3o
4) You can use this code in the theme panel->custom css box:
#menu-td-demo-header-menu-1 li a:hover, .sf-menu > .current-menu-item > a{
color:white!important
}
Thank you!
I am using newspaper for a youtube feed blog and I love the behavior of actually showing the video you can play (instead of a thumbnail) in post template M15 (td_module_15) however I can not find this same behavior in any page content in the visual composer. Can you help so that the embedded youtube videos are playable in pages that list the most popular etc.
Exactly how do you comment out code? Is this it? Please don’t screenshot – send me something I can copy and paste. Thanks.
<?php // the_content(Continue Reading…); ?>
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’,
‘woocommerce/woocommerce.php’,
‘td-mobile-plugin/td-mobile-plugin.php’,
);
Hi Chris,
That field is used by tagDiv composer to mark pages that are manually modified in tinyMCE. We show a warning when a page is modified manually or with visual composer. It’s name is inspired by https://en.wikipedia.org/wiki/Dirty_bit 🙂
btw the new version of tagDiv composer (v1.0-beta.4) should work better with Newsmag. It is not yet live but I will release it today: https://github.com/tagDiv/td-composer/releases
Hello wordnow,
In this case, please try to use the Text with Title + Video Player element from Visual Composer if you want that your title to be underlined and that it have the same style as in this example -> http://screencast.com/t/dQjOuRLc -> http://screencast.com/t/FJZHOBKpsilm For better results, then you should use a bit of CSS to remove some padding bottom and the result you should see here -> http://screencast.com/t/kZKdL9dv8
The code is ->
.td_block_text_with_title {
padding-bottom: 0;
}
Hope this helps!
Thanks for your understanding!
Hi,
This being a long topic it’s very hard to keep track anymore:) Sorry. The default page template does not show the sidebar but you can create a sidebar in visual composer directly on a split row like so: http://screencast.com/t/lL6eEFYpe
The row is split in a 2/3 + 1/3 layout.
As an alternative you can use the page builder + page title template that will show the sidebar and hide the title if you do not want it with a bit of css like so:
.td-page-title{
display:none!important
}
Thanks.
Hello,
The easier way to do it is with do_shortcode. THe news ticker is a rendered visual composer shortcode so using the function directly in the post template files is easier.
you cna set up your ticker the way you want it on a dummy page like so: http://screencast.com/t/iIKBu50mv and set all of it;s options.
The you can use the shortcode generated in classic mode and text mode: http://screencast.com/t/yLkdt8nsfK
Then you can place a do_shortcode function on each post template and add the shortcode inside: https://developer.wordpress.org/reference/functions/do_shortcode/
<?php echo do_shortcode('[td_block_trending_now style="style2" header_text_color="#dd3333" header_color="#1e73be" category_id="1048" sort="random_posts" limit="20" offset="2"]'); ?>
I hope this helps.
Thanks
How to add custom fields to the menu?
How to add Visual Composer category custom category taxonomy td-book?
I use your plug-td-custom-post-type
Hello,
If you want to place a rev slider element in the header, you will have to use the revolution slider shortcode to do it. You can use this function top wrap the shortcode in so it can be rendered by the theme: https://developer.wordpress.org/reference/functions/do_shortcode/
Here is an example of how to use it:
td-blog-cars"][/vc_column][/vc_row]'); ?>
After you create the slider and add it in visual composer on a page, you can see it’s shortcode in text mode in the classic editor (the mce editor): http://screencast.com/t/wGw8sjS5eqLL
After you identify the shortcode and add it to the function, you need to place the whole function containing the shortcode inside the them file corresponding to the header style that you use:
http://screencast.com/t/LNgnFcnGjEtJ
I hope this helps.
Thank you!