- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hi,
1. Please try this custom css in Theme Panel > Custom Css it will be applied on all big grids:
.td-hover-1 .td-big-grid-post:hover .td-module-thumb .entry-thumb {
transform: none;
-webkit-transform: none;
-moz-transform: none;
}
If you want this only for home please add the .home class.
2. Unfortunately there is no general option and you have to set it manually each one.
3. You can try this custom css: http://screencast.com/t/wJUvDaaPaAJB
.td_block_big_grid_2 .td-big-grid-post-0 .td-meta-info-container {
display: none;
}
4. The theme doesn’t have an option to show post views on modules anymore. You will have to copy the vies function from td_module_single_base.php to td_module.php – http://screencast.com/t/izGddMRU and call the views on each module: http://screencast.com/t/YFATXWXCZt you may need additional css customizations. For example – http://screencast.com/t/sbnmcCbKpB0l
<?php echo $this->get_views();?>
5. Unfortunately you need to inspect and change the background and color for each one – http://screencast.com/t/6Q0FKEhJE
.td-module-comments a{
background-color: #cbcbcb !important;
}
.td-module-meta-info .td-post-views{
color: #cbcbcb;
}
.td-module-comments a:after {
display: none;
}
6. Theme doesn’t have an option to disable more from author, but you can hide it using custom css – http://screencast.com/t/OPfLLMowFK3M
.td_block_related_posts .td-related-right {
display: none;
}
7. Provide a link so we can take a look
8. The widget/block title background can be added from block settings and that color will be when your hover on article title from that block – http://screencast.com/t/rX1wEZVy
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Try this code: http://screencast.com/t/FzbO8r0F
.td_block_related_posts .td-related-right {
display: none !important;
}
Thanks!
I’m not to happy with my bounce rate and would like to give the reader more options on mobile to click on content.
Is there shortcode for adding more articles within a post? That would be great. Something that allows me to post 3-4 more articles based on categories or tags I choose.
Thanks,
Bobby
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.
And I no longer can add Blocks in Home Page
Could you explain how to do this for a Child theme? Can’t see an example of the API Child Theme method that applies to shortcodes replacement/update ie replacing /includes/shortcodes/td_block_authors.php.
Thanks
Hi,
If you use a widgetiset sidebar block to display sidebar on your page content you can add an extra class – http://screencast.com/t/mrNy5erFsS5X and use it to hide the sidebar on mobiles. And also use this class to target post/category/latest articles sidebar .td-main-sidebar
@media(max-width:767px){
.test, .td-main-sidebar{
display: none !important
}
}
Thanks!
Hello,
I wanted to upgrade to Version 6 via FTP, but when I tried to unzip the Newspaper folder (before upgrading), this error occurred: Couldn’t copy td_thumbs_on_modules_and_blocks.php because the path is too long. Same with two other phps. What do I do now?
Thanks for caring.
Simone
Hi,
We implemented a check, if you add visual composer content to the page on the default template the sidebar is disabled. You can easily override this check by adding the following line in page.php – http://screencast.com/t/WvbLIzGyYj
Hope this helps. If it doesn’t work please provide more details about your pages, what template did you use and details about the blocks used.
Sorry for the trouble you encountered with this update.
Thank you, Emil G.
Hi I want to add opinion name under the title in sidebar and in home page
using block8.
I am using ACF for this but which file I need to modify to fix this?
Thank you in advance!
Hi,
We have released version 6 of the theme and has more blocks that can be added with Visual Composer, so you can check the demo and see if there is one like you need – http://demo.tagdiv.com/newspaper/block-1/
Thanks!
Hi,
As you can see we changed this on newspaper 6, we have added next/prev image links. Also you can use do_shortcode() to display a custom ad on attachment page – http://screencast.com/t/hAKlfZOa – http://screencast.com/t/JCd8RZpmzH
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Congrats on the big update! I like how many new options are available with the update but some old favorites are missing and re-building my home page is mind busting right now :). Most of my problems seem be with VC. Here are my issues:
1) I can’t figure if it’s some kind of plugin conflict but I have not options on the blocks/modules for re-naming the titles/headers. I’m stuck with the default block titles;
2) I don’t have any options coming up that allows me to choose how many or which categories the blocks should pull from to form the stacks. It seems to be happening all at random;
3) My side bar titles/headings are not pulling the color from the Accent color in the theme panel options as before. I can’t change the stack/block headings on the side bar either.
4) How can I get back the same styling (with the extended line) in the footer to match the side bars? There used to be options for doing this AND what about the option to not have pagination on the stacks as before?
I’d really like any help that you can offer in solving these issues.
Many thanks…
Hi,
You can add an image/icon as a label for your menu item like this: http://screencast.com/t/QB2oA2mk then you have to use some additional css to set an height for you new menu item, for this you can use the unique class that each menu item has to target just the menu item you’ve created and set an height to it, like this: http://screencast.com/t/q3H6cvts
Please make sure that you have added the url properly as I have also checked this and it it works fine using social icons block – http://screencast.com/t/tLdijB1yZgm5
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
in the meantime, we found out what is the problem – mixed content. We have SSL implemented, and driving HTTPS at our site, but, this mentioned external JS is HTTP. In these days, usually blocked by browser by default. So, we have another problem. We are using plugin WP Force SSL (Version 1.2.1 | By Kostas Vrouvas) for HTTPS redirection. Also, we are using plugin WP Insert Code (Version 1.0 | By AntonAKH) just to insert this specific external JS into footer. We tried to install SSL Insecure Content Fixer plugin or similar, but, still we have the same message in browsers and mixed content is blocked by default…
Any suggestions about this issue? Thank you in advance, Miodrag
Hi,
1. Please check documentation – https://forum.tagdiv.com/how-category-settings-work/
2. If you don’t want comments section to appear on your article you can disable it from Post Settings – http://screencast.com/t/Er7yeRup
3. Try this css code in Custom Css section – http://screencast.com/t/ogherlmk
.td-post-content {
padding-bottom: 0px;
}
4. Please check Excerpt section – https://forum.tagdiv.com/excerpts-introduction/
5. Please check Theme Fonts – https://forum.tagdiv.com/font-customization/
6. It is not an issue when you hover on article title it takes the color that you he set for background to the block title. What do you mean “I can’t see anything “.
7. Theme doesn’t have an option to change the post title color for each block, you have to use custom css: http://screencast.com/t/V2sNqzET
.home .td_block_11 .entry-title a {
color:red;
}
8. Try this custom css in Theme Panel > Custom Css: http://screencast.com/t/zq0XpKBRxkb
.home .td_block_11 .td_ajax_load_more {
background-color: red;
color: black;
}
9. No, there is not an option only for homepage. You can use custom css if you want this only on homepage: http://screencast.com/t/d5t8BjLn If you want this for all homepage blocks just remove .td_block_11 – http://screencast.com/t/oz2M6fBuZqW
.home .td_block_11 .block-title span {
font-size: 10px;
}
10. Check this custom css: http://screencast.com/t/feXVaxbOzj
.td-related-title > .td-related-right {
display: none;
}
Please post your issues in Newspaper section!
Thanks!
It seems that when I select the unique articles on the homepage, it is not working and articles are repeating in various blocks: http://livinator.com/
I have also 6 (most used) plugins which are not working anymore with speedbooster. For testing I disabled all the plugins which were conflicting, but still getting the error from pagespeed insights that I have blocking css en javascript (but all are in the footer now). How can I solve both problems?
Did you all click on the “update script” link in theme panel welcome page? After clicking on the link my page including all blocks was back. Could be possible taht you also need to go to your pages an switch the template (mine was set back to pagebuilder + on all pages instead of homepage blank)
Hi again!
Regarding the first query
“1. When I hover the link on home it shows a turn white and I can’t see anything http://www.magscroll.com please have a look.” I just realized that when i change the block title background color to any other color the title of the block post also changes the color when we hover on it.
Seems like it’s a issue somewhere in the code.
Thanks!
Hi againt!
Wanted to add on some more question.
1. When I hover the link on home it shows a turn white and I can’t see anything http://www.magscroll.com please have a look.
2 how can I change the font color of Block 5 and Block 11?
3. How can I add color to the Load More pagination button on home page?
4. When I increased the size of Block/Module title it changed the site of overall place… Is there any way just to activate the size of the block/module on homepage?
5. How can we disable the option “More From Author” post on post page?
Thanks!
Hi…
Just upload the latest newspaper theme and all my settings were removed… :/
Can you help me to fix these issue
1. How can I remove the grid sliders from the category page?
2. How can I remove the text no comment?
3. How can I remove the excess spacing between the social share button and content bottom?
4. How can i remove the experts on homepage from Block 11 and change it’s font size and style?
5. How can i change the font style of block 5?
Thanks!
You can try to add this code:
// ads en otra posicion en post.
if ($content_part_index == 6){
$content_buffer .= td_global_blocks::get_instance(‘td_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_1’));
}
Well mine as well,that NEW VC update is not working,all the blocks i choose i’m getting some kind of message that…
Elements within this list are deprecated and are no longer supported in newer versions of Visual Composer.
My static page is all messup it seem this theme not supporting static page any more,what happen to the V5 and why this theme have so many issues,i’ve delete V4 and done a new install removed all my CSS CODE etc and all i get is a messup static page and no settings is taking…is this a joke are what..
Blocks does not work anymore with your old theme !!!
My website is totally ruined because of the update.