- 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
Hi
Back again, this time with great news đ
Visual Composer does display CPT! This is our test site –> http://www.cele.si/new/td_d_slug_10/
All we need to do now is, to be able to pick up categories of CPT when editing block in Visual Composer. At the moment it shows only post categories.
Any idea?
Thank you
I have tried to make an authors page using the authors block, been looking at this post for the solution -> https://forum.tagdiv.com/topic/author-box-help/
It works fine when i insert this in the main themes td_block_author.php
$buffy .= '<div class="td-authors-description desc">';
$buffy .= '<p>' . get_the_author_meta( "description", $td_author->ID ) . '</p>';
$buffy .= '</div>';
But im trying to make it work from my child theme instead. I have added this to my child functions.php
function hook_td_global_after() {
td_api_block::update('td_block_authors',
array(
'map_in_visual_composer' => true,
"name" => 'Block Authors',
"base" => 'td_block_authors',
"class" => 'td_block_authors',
"controls" => "full",
"category" => 'Blocks',
'icon' => 'icon-pagebuilder-td_block_authors',
'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_authors.php',
"params" => array_merge(
td_wp_booster_config::get_map_block_general_array(),
td_wp_booster_config::get_map_filter_array(),
td_wp_booster_config::get_map_block_ajax_filter_array(),
td_wp_booster_config::get_map_block_pagination_array()
)
)
);
}
But it doesn’t work. Its probably me whos to tired to figure it out, but i dont get it. :/
Hi Lucian,
1. The font size still doesnt change the relationship between the logos: http://coconutoilpost.com/
These look different to your screen shot samples. Also in v4 you had 4 styling options you could select which is missing in v6 yet in the code they are still referred to? td-social-style-2 – Is there a way to select other style options?
2. The original link above shows a pdf with all the screen shots.
3. On a post without using the visual composer the shortcode option does not allow buttons to be added? Can this be done or made active?
Regards
Here is my code in TD Speed booster plugin However, all these resources are still returning as “Render Blocking”
function css_mover() {
if ($this->td_theme_name == 'Newspaper') {
// 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('contact-form-7-css');
$this->move_style_to_footer_queue('google_font_roboto-css');
$this->move_style_to_footer_queue('google-fonts-style-css');
$this->move_style_to_footer_queue('js_composer_front-css');
$this->move_style_to_footer_queue('td-theme-css');
Suggestions please
I have registered Akismet, WordPress SEO Premium, WP-Optimize and OIO Ad Manager. Status of Speedbooster changed to “Active” but there is no change in the outcome. Like before, 2 Javascript and 8 CSS resources are still appearing as Render Blocking in pagespeed insights.
The blocking scripts include (i) jquery.js?ver=1.11.2 and (ii) jquery-migrate.min.js?ver=1.2.1
While blocking styles include (i) Contact-Form-7 (2) 3 Google fonts (3) js_composer.css? (4) Newspaper Style.css (5) Jetpack.cssand (6) OIO Ad manager.
Looking at the plugin code I can see that many of the styles are already moved to footerlike
if ($this->td_theme_name == 'Newspaper') {
// 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
Any idea what is going on?
Hi,
I was using ” Text with title block” of Visual Composer for most of my posts. But after updating the theme to new 6.1 version all my “text with title block” posts have been replaced with normal “text block” of VC because of which all my posts are not showing like they used to before refer: 
when i checked i noticed that there was option of title style in previous ” text with title box” of VC but in new one there is no option for that the previous code was like; ” [vc_row][vc_column width="1/2"][vc_column_text][td_text_with_title custom_title=”PROS:” header_color=”#81d742″ title_style=”td_title_style_1“]”
but the new one is; ” [vc_column width="1/2"][td_block_text_with_title custom_title=”PROS:” header_text_color=”#ffffff” header_color=”#81d742″][/td_block_text_with_title][/vc_column][vc_column width="1/2"]”
loss of style option is not the problem but how can i get my posts back to normal like they were before ?
is there a way to restore or integrate the older “text with title block ” with new theme.
que tal @arsonists
si solo usas visual composer puedes dejar speed booster
Pero si tienes otros plugins que son incompatibles es mejor usar el above the fold ya que ese no es incompatible.
Los settings para wprocket son
lazy load a imagenes (y desactiva la que incoporta el newspaper)
optimizar archivos palomea todas
cache movil
opciones avanzadas
Precarga de DNS
//fonts.googleapis.com
//ajax.googleapis.com
//stats.wp.com
//ssl.gstatic.com
//platform.twitter.com
archivos css a excluir
/wp-content/uploads/js_composer/custom.css
/wp-content/themes/Newspaper/style.css
Archivos js a excluir
/wp-content/themes/Newspaper/js/min/site.min.js
/wp-content/themes/Newspaper/js/min/td_external.js
sobre cachear la db depende de tu servidor, si estĂĄs en un shared de nada te ayuda, si estĂĄs en un vps o dedicado puedes dedicar mas recursos a la base de datos o cachear desde el servidor lo cual serĂĄ mejor que con un plugin
The only thing is what I don’t understand, if I use the speedbooster plugin (v4) of version 6.0 and comment out the return:
if (!in_array($active_plugin, $this->allowed_plugins)) {
define(‘TD_SPEED_BOOSTER_INCOMPATIBLE’ , $active_plugin);
//return;
}
}
js_composer.css and styles.css are moved to the footer.
But if I use speedbooster plugin (v4.1) of version 6.1 and I do the same then the js_composer.css and styles are moved to the footer.
I should aspect that this should work the same, but in this case v4.0 was doing a better job.
Hi Radu,
On your demo website I see that you have the same problem: bbpress.css, js_composer.css, style.css are also in the head and not in de footer:
<link rel=’stylesheet’ id=’bbp-default-css’ href=’http://demo.tagdiv.com/newspaper/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5.7-5693′ type=’text/css’ media=’screen’/>
<link rel=’stylesheet’ id=’js_composer_front-css’ href=’http://demo.tagdiv.com/newspaper/wp-content/plugins/js_composer/assets/css/js_composer.css?ver=4.5.2′ type=’text/css’ media=’all’/>
<link rel=’stylesheet’ id=’td-theme-css’ href=’http://demo.tagdiv.com/newspaper/wp-content/themes/011/style.css?ver=6.1d2′ type=’text/css’ media=’all’/>
Are you also using the wrong plugins or is something else not going ok.
This problem I didn’t have with version 6 after commenting the stuf you showed in the screencast.com
Buna,
Daca vrei sa adaugi content in pagina de forum, poti crea o noua pagina denumita Forums si sa folosesti shortcoduri – http://screencast.com/t/l3qDftKrgH De aceea am adaugat documentatia pluginului – https://codex.bbpress.org/ si forumul se poate accesa aici https://itutorial.ro/forums/
5. Incearca te rog aceasta solutie – https://forum.tagdiv.com/topic/newspaper-6-upgrade/#post-54686
6. Incearca totusi si fara plugin-uri, lasa doar Visual Composer activat, da clear la cache si incearca din nou. Daca tot ai aceasta problema trimite un mail la contact@tagdiv.com si da-ne acces sa ne uitam si noi de asemenea specifica problema si un link la acest topic.
7. Se poate cu ajutorul functiei do_shortcode sa-l afisezi de exemplu sub meniu si va aparea pe toate paginile/articolele iei shortcodul din pagina – http://screencast.com/t/PvC5klsnn si il adaugi in header style care il folosesti intr-un div – http://screencast.com/t/DjeiIu0n
<div class="td-container">
<?php echo do_shortcode('[td_block_trending_now limit="5"]');?>
</div>
Result: http://screencast.com/t/mnvGjWdA
1. Se pare ca lipseste documentatia pentru smart list(am trecut-o pe todo si o sa fie adaugata). Poti vedea documentatia de la Newsmag, se aplica in acelasi mod doar ca stilurile le poti gasi aici( http://screencast.com/t/ZhN4WjoX3 ) – https://forum.tagdiv.com/smart-list/ De asemenea acest topic poate ajuta – https://forum.tagdiv.com/topic/smart-lists/
2. Din pacate ai nevoie de modificari in tema pentru a obtine acest lucru. O cale mai usoara ar fi sa nu mai folosesti article top ad, ci un custom ad pe care sa-l afisezi dupa featured image pe template-ul care vrei – http://screencast.com/t/IXOzj4Cf0oc daca te referi la ad-ul special pentru stilul 1 acesta il poti muta asa – http://screencast.com/t/ATZMdDfux
3. Foloseste acest css in Theme Panel > Custom Css – http://screencast.com/t/lG6Gal6P9
.td-header-menu-wrap.td-affix {
background-color: white;
}
Mersi!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
This is the same problem I’ve been having since I upgraded and updated. The icons for editing individual blocks are not there. I can only move or delete whole blocks but not edit. Please help. I haven’t been able to use any of the really nice looking homepage templates.
I also have a notice on my dashboard that says: “Important notice: You have an outdated version of Visual Composer Design Options. It is required to review and save it.”
Any help to fix this will be appreciated.
Hi,
I try the solution for newspaper 4 but no solution. Do you know of it is possible to add a 970×250 ad for all the pages and post without a custom action in visual composer.
The result is the ad under the menu bar< not the top header but the main header > we used the default menu style.
I need the same postion as Newspaper 4:http://screencast.com/t/UdpqvFyrOl
The following is not working;
Hi,
Please add the value inside the panel_ads.php file â http://screencast.com/t/om4CzClEd like Emil suggested then use the do_shortcode() function to place the ad you use inside an ad box in theme panel > ads, like this: http://screencast.com/t/yk9RG2diwKyj
Here si the code you have to add:
echo do_shortcode(‘[td_ad_box spot_id=”custom_ad_1″]’);
echo td_page_generator::wrap_end();
echo td_page_generator::wrap_start();
Result: http://screencast.com/t/UdpqvFyrOl
Note that my example itâs for the default post template without sidebar, you will have to modify and add the code into which template you want to have this.
Thanks,
This tutorial is for all those who speak Spanish and also serve to people who speak English. The tutorial is written in Spanish and English.
Newspaper 6 no es una actualización de la versión 4. Es un rediseño interno completo del Theme, por lo tanto la manera óptima de hacerlo funcionar al 100% es realizar una instalación limpia.
ÂżCĂłmo realizar una instalaciĂłn limpia de Newspaper?
– Entra en http://www.yoursite.com/wp-admin/themes.php
– Activa un theme diferente a newspaper
– Borra el antiguo newspaper
– Sube el archivo de Newspaper 6
– Activa Newspaper 6 e instala los plugins que vas a utilziar como speedbooster, social, etc.
– Ve a Install demos: http://www.yoursite.com/wp-admin/admin.php?page=td_theme_demos
– Selecciona el estilo que quieres utilizar para tu sitio web. NOTA: NO ACTIVES “Include content” porque eso importarĂĄ el contenido original del theme como imĂĄgenes y post, salvo el hecho de que quieras importarlo para trabajar sobre ellos en tu sitio web.
– Listo, ya tienes newspaper 6 funcional. Ahora tienes que ir a http://www.yoursite.com/wp-admin/admin.php?page=td_theme_panel y ajustar a tu gusto con tu logotipos etc.
Te recomiendo seguir las instrucciones de las dimenciones en logotipos e imĂĄgenes que establece el theme como por ejemplo para el logo principal que sea de (272 x 90px) y no de mayores dimensiones. Esto ayudarĂĄ a tener mejores tiempos de carga.
CĂłmo optimizar newspaper 6
El Newspaper utiliza otras dimensiones de imågenes para ciertas åreas por lo tanto es recomendable regenerar las thumbnails para que todas estén en el tamaño óptimo y funcionen a la perfección.
– Entra en http://www.yoursite.com/wp-admin/plugins.php
– Instalar Regenerate Thumbnails, activarlo y ponerlo a funcionar. Lo encuentras en el menĂș “herramientas”
Vamos a eliminar elementos no Ăștiles con ayuda de functions.php, este archivo lo encuentras en Apariencia + editor + functions.php . Nos posicionamos hasta el final del archivo functions.php y copiamos y pegamos el siguiente cĂłdigo
/* si usas jetpack, con esto eliminamos devicepx */
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
function dequeue_devicepx() {
wp_dequeue_script( 'devicepx' );
}
add_action( 'wp_enqueue_scripts', 'dequeue_devicepx', 20 );
/* FIN si usas jetpack, con esto eliminamos devicepx */
/* con esto hacemos los 2 jquery de wordpress en uno solo*/
function optimize_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_deregister_script('jquery-migrate.min');
wp_deregister_script('comment-reply.min');
$protocol='http:';
if($_SERVER['HTTPS']=='on') {
$protocol='https:';
}
wp_register_script('jquery', $protocol.'//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', false, '3.6', true);
wp_enqueue_script(‘jquery’);
}
}
add_action(‘template_redirect’, ‘optimize_jquery’);
/* FIN de con esto hacemos los 2 jquery de wordpress en uno solo*/
/*Otras optimizaciones */
function wpb_imagelink_setup() {
$image_set = get_option( ‘image_default_link_type’ );
if ($image_set !== ‘none’) {
update_option(‘image_default_link_type’, ‘none’);
}
}
add_action(‘admin_init’, ‘wpb_imagelink_setup’, 10);
function no_errors_please(){
return ‘Tu computadora se autodestruirĂĄ en 60 segundos!’;
}
add_filter( ‘login_errors’, ‘no_errors_please’ );
Damos clic en guardar o actualizar.
Newspaper 6 cuenta con Speedbooster, un plugin para mejorar el rendimiento aunque no funciona en todos los sitios web ya que hay que cumplir ciertas caracterĂsticas, como por ejemplo tiene incompatibilidad con akismet y algunos otros plugins que comĂșnmente se utilizan.
Si tu sitio web solo usa el plugin visual composer, entonces puedes usar speedbooster. De lo contrario usaremos otro plugin.
Desactivaremos los AVATARES de Gravatar en: Ajustes + Comentarios + retiramos la opciĂłn mostrar Avatares.
Adicionalmente puedes utilizar el plugin “WP-Usuario-Avatar” para establecer un avatar cargado desde tu propio sitio web. Esto mejora drĂĄstica mente la velocidad de carga de una entrada con comentarios.
CĂłmo optimizar tu instalaciĂłn de wordpress
Si tienes varios plugins vamos a desactivar y borrar TODOS los plugins que no usemos ni usaremos. Recuerda que entre menos plugins tengas instalados es mas veloz tu sitio web.
– Entra en http://www.yoursite.com/wp-admin/plugins.php
– Instala Plugin Garbage Collector
Activamos garbage collector y lo iniciamos. Este plugin nos ayudarĂĄ a borrar tablas de datos viejas para mejorar la velocidad de carga de la base de datos. Si no te permite eliminar tablas desde el plugin tendrĂĄs que hacerlo desde PHPMyAdmin y borrar manualmente las tablas en la base de datos.
– Instala plugin WP-Optimize
Activamos WPOptimize y hacemos una optimizaciĂłn completa de la base de datos.
Regresamos a la pestaña de plugins y desactivamos, thumbnails regenerate, garbage collector y wp-optimize.
PARA USUARIOS AVANZADOS
Entramos por FTP y editaremos el archivo wp-config.php Vamos a eliminar todos los comentarios y solo dejaremos las lĂneas esenciales. De este modo pesarĂĄ menos y quedarĂĄ algo como este ejemplo.
<?php
define('WP_HOME', 'http://www.yoursite/');
define('WP_SITEURL', 'http://www.yoursite/');
define('DB_NAME', 'yourbase');
define('DB_USER', 'youruser');
define('DB_PASSWORD', 'pass');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define('AUTH_KEY', 'your key');
define('SECURE_AUTH_KEY', 'your key');
define('LOGGED_IN_KEY', 'your key');
define('NONCE_KEY', 'your key');
define('AUTH_SALT', 'your key');
define('SECURE_AUTH_SALT', 'your key');
define('LOGGED_IN_SALT', 'your key');
define('NONCE_SALT', 'your key');
$table_prefix = 'wp_';
define('WP_DEBUG', false);
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
Guardamos cambios y subimos el archivo editado
PLUGINS DE CACHE
Para el test instalé Newspaper en un sitio de pruebas con el estilo TECH. Tengo la licencia de Zen Cache PRO y WP Rocket, aunque también probé con 2 plugins gratuitos como w3 cache y Wp Super Cache. El test fue realizado con GTMetrix, el servidor del sitio web estå en españa.




NOTA: En lugar de Speed Booster recomiendo usar el plugin Above The Fold Optimization y solo excluir el archivo style.css
——————————————————————–
———————–E N G L I S H ——————————-
——————————————————————–
This tutorial is for all Those Who Also Serve speak Spanish and speak to people WHO Inglés. The tutorial is written in Spanish and Inglés.
Newspaper 6 is not an update of the version 4. It is a complete internal redesign of Theme, so the optimal way to make it work 100% is performing a clean install.
How to perform a clean installation of Newspaper?
– Enter http://www.yoursite.com/wp-admin/themes.php
– Enable a different theme to newspaper
– Delete the old newspaper
– Upload the file of Newspaper 6
– Turns Newspaper 6 and install plugins you will use as SpeedBooster, visualcomposer, social, etc.
– Go to Install demos: http://www.yoursite.com/wp-admin/admin.php?page=td_theme_demos
– Select the style you want to use for your website. NOTE: Do not select “Include content” because it will import the original content of the theme as images and post, except for the fact that you want to import it to work on them on your website.
– Ready, already you have 6 Functional newspaper. Now you have to go to http://www.yoursite.com/wp-admin/admin.php?page=td_theme_panel and adjust to your taste with your logos etc.
I recommend following the instructions in the dimentions logos and images that set the theme as such for the main logo that is of (272 x 90px) and no larger. This will help to have better load times.
How to optimize newspaper 6
The Newspaper uses other dimensions of images to certain areas so it is advisable to regenerate the thumbnails are all in the optimal size and function perfectly.
– Enter http://www.yoursite.com/wp-admin/plugins.php
– Install Regenerate Thumbnails, activate it and make it work. You find it in the menu “tools”
We will remove not useful elements using functions.php, you find this file under Appearance + editor + functions.php. We position until the end of functions.php file and copy and paste the following code
/* If you use jetpack, with this we remove devicepx */
add_filter ('jetpack_implode_frontend_css' '__return_false');
dequeue_devicepx function () {
wp_dequeue_script ('devicepx');
}
add_action ('wp_enqueue_scripts' 'dequeue_devicepx', 20);
/* END if you use jetpack, with this we remove devicepx */
/* 2 do with this jquery wordpress into one */
optimize_jquery function () {
if (! is_admin ()) {
wp_deregister_script ('jquery');
wp_deregister_script ('jquery-migrate.min');
wp_deregister_script ('comment-reply.min');
$ Protocol = 'http:';
if ($ _ SERVER ['HTTPS'] == 'on') {
$ Protocol = 'https:';
}
wp_register_script ('jquery', $ protocol '// ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', false, '3.6', true.);
wp_enqueue_script (‘jquery’);
}
}
add_action (‘template_redirect’ ‘optimize_jquery’);
/* End with this we jquery wordpress 2 into one */
/* Other optimizations */
wpb_imagelink_setup function () {
$ Image_set = get_option (‘image_default_link_type’);
if ($ image_set! == ‘none’) {
update_option (‘image_default_link_type’, ‘none’);
}
}
add_action (‘admin_init’ ‘wpb_imagelink_setup’, 10);
no_errors_please function () {
return ‘Your computer will self-destruct in 60 seconds!’;
}
add_filter (‘login_errors’ ‘no_errors_please’);
We click save or update.
Newspaper 6 features Speedbooster </ strong>, a plugin to improve performance but does not work at all as there are websites that meet certain characteristics, such as is incompatible with akismet and some other commonly used plugins .
If your website only uses the visual composer plugin, then you can use SpeedBooster. Otherwise we will use another plugin.
deactivate avatars Gravatar : Settings + Comments + withdrew the Show Avatars.
Additionally you can use the “WP-User-Avatar” plugin to establish an avatar loaded from your own site. This improves drastically loading speed of an post with comments.
How to optimize your wordpress installation
If you have multiple plugins we will deactivate and delete all plugins not to use or will use. Remember that the less have installed plugins is faster your website.
– Enter http://www.yoursite.com/wp-admin/plugins.php
– Install Plugin Garbage Collector
Activate and start garbage collector. This plugin will help us erase old data tables to improve loading speed of the database. If not let you delete tables from the plugin will have to do it from PHPMyAdmin and manually delete old tables in the database.
– Install plugin WP-Optimize
We WPOptimize activate and make a complete optimization of the database.
Back to the plugins tab and deactivate, regenerate thumbnails, garbage collector and wp-optimize.
FOR ADVANCED USERS
Walked through FTP and edit the file wp-config.php We will remove all comments and leave only the essential lines. This will weigh less and be something like this example.
<? Php
define ('WP_HOME', 'http: //www.yoursite/');
define ('WP_SITEURL', 'http: //www.yoursite/');
define ('DB_NAME', 'yourbase');
define ('DB_USER' 'youruser');
define ('DB_PASSWORD', 'pass');
define ('DB_HOST', 'localhost');
define ('DB_CHARSET', 'utf8');
define ('DB_COLLATE', '');
define ('AUTH_KEY', 'your key');
define ('SECURE_AUTH_KEY', 'your key');
define ('LOGGED_IN_KEY', 'your key');
define ('NONCE_KEY', 'your key');
define ('AUTH_SALT', 'your key');
define ('SECURE_AUTH_SALT', 'your key');
define ('LOGGED_IN_SALT', 'your key');
define ('NONCE_SALT', 'your key');
$ Table_prefix = 'wp_';
define ('WP_DEBUG', false);
if (! defined ('ABSPATH'))
define ('ABSPATH', dirname (__ FILE__) '/'.);
require_once (ABSPATH 'wp-settings.php. ");
Save changes and upload the file
plugins CACHE
For Newspaper 6 TEST, i installed in a test site with TECH style. I have licence of Zen CAHE PRO and WP Rocket (the best cache plugins for wordpress), but also tried with 2 free plugins like w3 cache and WP Super Cache. The test was conducted with GTMetrix, the server of the website is in Spain.




NOTE: Instead of Speed ââBooster recommend using the Above The Fold Optimization plugin and only exclude the file style.css
Hi,
@snowwatchGB Please check this custom css for your logo and see if it helps: http://screencast.com/t/xsGckVM3vyGr
@media (min-width: 1141px){
.td-header-style-1 .td-header-sp-logo {
margin: 28px 0px 9px 0px;
width: 340px;
padding: 0px
}
.td-header-style-1 .td-header-sp-logo img {
right: auto;
}
}
Also for that gap please try this css – http://screencast.com/t/5D91dcqZUKmg try to use !important tag
.td-post-template-4 .td-post-header-holder {
margin-bottom: 20px !important;
}
@themeforest_antonio Did you updated also the Visual Composer plugin to the latest version provided with the theme?
Also did you removed the old theme and uploaded the new one properly using this guide – https://forum.tagdiv.com/how-to-update-the-theme-2/ Please provide more details about this, also you can check it without any plugins active leave just Visual Composer active, clear cache and check again if you can edit the blocks.
Unfortunately new version of the theme has only 2 formats like you already know. If you need to add more post formats please take a look here â https://codex.wordpress.org/Post_Formats and try to add more formats in theme functions: http://screencast.com/t/MsM6Dc3q9j
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi, with newspaper v6 not all the files are being moved to the footer:
– contact-form-7-css
– google-font-rest-css
– js_composer_front-css
– td-theme-css
– jquery.js
– jquery-migrate.min.js
All those files are still in the header, only jquery.form.min.js, scripts.js, tagdiv_theme.min.js, comment-reply.min.js and js_composer_front.js) are moved to the footer.
What can I do to move alle the files to the footer? Shouldn’t it work?
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’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
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
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.
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
The following prompt comes after updating to V6:

But when clicking, (Link is: /wp-admin/admin.php?page=vc-color) there comes an error message: “You have not the rights to view his page”
Any help?
Ok.
For the second point (block not in visual composer), you just have to go into the settings of VC and add the right for administrator
BUT, for the first point, you CHANGED THE SHORTCODES. Block are now like td_block_2 whereas they were td_block2 before. It means that i need to change all the shortcodes of all my pages !!!
So great!
I did the update to V6, installed everything ( including child theme and td-api-plugin) and I have no more blocks….
Blocks are not recognized. I have only the shortcode which appear on screen. And when i go on the page editor, i cannot select any block through visual composer. They are not listed…