- 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
Visual composer was working fine until I enabled MultiSite option. I cannot see any block that is already on the page and cannot add/remove new stuff. Please let me know how to fix it. Thanks.
My website is: http://movielawn.com
I can PM you Admin user name and password.
Best Regards,
Kal
Hi there, I am having problems with my last upload images. I try to upload image in 1280×853 px size, and now I am having problems in the Grid and Block as you can see in this URLS.
http://snag.gy/BmWmL.jpg
http://snag.gy/OPnlk.jpg
http://snag.gy/jWsKr.jpg
I really dont know what I have to do to fix, tried other sizes and nothing worked. Can you help me? My site is http://www.emalgumlugardomundo.com.br
Regards,
Hello,
I do not want the “games” category in the slide and when I excluded the block category, it appears.
http://screencast.com/t/SESHh6QMKtK
Thank you
Hi, I got a major problem with images. My site is fast running out of disk space and exceeding bandwidth. What can I do to reduce the number of generated images, for that is the disk space culprit. Bandwidth comes from a lot of visitors. I didn’t expect +300 visitors per day in less than a week online.
I’m using on all categories:
category template: default
category top post style: grid 1
article display view: M2
thumbs on modules & blocks:
– 100×70
– 218×150
– 256×198
– 324×160
– 324×235
– 533×261
– 534×462
– Media (in WP itself):
thumbs: 150×150
– medium 300×300
– 1024×1024
I really need to trim this down as much as possible.
I had the same problem. I tried to edit the homepage and all I could see was the circle turning, nothing else. I upgraded the theme to the last version and so VC. That has done the trick. But I am afraid there is a problem with at least one block: block 18. The block contracts and the same happens with the photo.
Excellent. Thank you. I notice I can add blocks, etc. to sidebars, which is just what I need.
Hello,
Using the default “td-api-plugin” files, I receive a 500 internal server error. I have to delete the folder via FTP to gain access to the site again.
When I customize the files in the folder to have my own plugin’s name, and even go as far as to change the function names, I still get a 500 server error.
What am I missing here? What conflicts could possibly arise from using the td-api?
It’s crucial we extend one of the blocks to add custom functionality. Thank you for your time.
It was not yet centralized. I do not know if I understood well. I put the custom CSS and stayed that way
/* INICIO Mostrar TOP Menu Mobile */
@media (max-width: 767px){
.td-header-top-menu-full {
margin-left: auto;
margin-right: auto;
display:block!important;
}
.td-header-sp-top-menu{
margin-left: auto;
margin-right: auto;
display:block!important;
}
.td-header-sp-top-widget{
margin-left: auto;
margin-right: auto;
display:none!important;
}
}
/* FIM Mostrar Menu Mobile */
Hi Tagdiv,
I have been a regular user of Newspaper 6 and the theme has exceeded my expectation so far. However, since two days ago I was unable to activate the visual composer to edit my pages. When I click on the elements such as tagdiv blocks, text box, image slider etc., it just doesn’t show up for me to build my page.
Please help.
Website:
http://www.1step1footprint.com
Thank you.
Regards,
Wei Jian
I’d like to display more than one category name/link in the meta info of each post in Block 12, like in the single posts where you can see more than one. Is there some code from the single post loop that can be re-used to do this in td_module_mx11.php? I don’t want to choose a primary category, I want to be able to display at least two.
http://thekineticist.com/2016/04/15/art-dance-collaboration-in-philadelphia/
Single post > Multiple categories displayed here
Thanks.
Rachel
Hi
Basically a custom post type it’s assigned to a custom taxonomy. That is a point of a custom post type, to have an additional way to sort thing in wordpress. The categories are default wp-taxonomies which are designed to display only wp’s default posts types. To change that you’ll need to modify the query for category pages and send your custom post types as a parameter. The query for category pages it’s made by loop.php file so you have to make some changes in that file in order to achieve your goal.
In td_data_source.php are made all queries for theme’s blocks. That file dos not generate content for pages like category page, archive page etc. It generate the query for each theme’s block.
Thanks!
Hi,
This issue appears only in module 16 that is also used in your block 21. The code that appears is an error that will be fixed in a future version of the theme. In order to get rod of the error message, you can simply use another block and the images themselves will be fixed as well. The images are larger than normal because this particular block uses the thumbnail from wordpress that you changed from the default 150 x 150 here: http://screencast.com/t/ssGYWoGATmHi
Thank you!
Hi
You need to generate a shortcode which will contain all settings for trending now block. To achieve that add the block on a blank page then set it as you want using block settings: http://screencast.com/t/knqeahy7F After everything is set switch in back-end editor copy the shortcode and paste it inside do_shortcode function http://screencast.com/t/0d4T4rUyal0 Here is an example:
<?php echo do_shortcode('[td_block_trending_now category_id="21" limit="9"]');?>
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi,
in order to target a specific block, you need to assign an extra class to the row in visual composer that contains the block in question like so: http://screencast.com/t/LVDogXpx and then use the code with the class you assign to the row like so:
.yourcustomclassname .td_block_9 .td-post-author-name, .td_block_9 .td-post-date{
display: none;
}
Thank you!
Hi
All blocks tiles are generated by same function so with the current implementation isn’t possible to generate a different heading. A solution would be to create a new function with put h2 on block title and call it on each block where you want to change the heading.
This is a complex task and which require many customizations is theme’s file and unfortunately I can’t provide a solution now. If you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.
Thanks!
Hi,
@travisnw The theme uses the H1 tag for the post and page titles, YES!
@Mayapur Voice We have not been providing any code snippets as we are working on improving SEO for our theme in the next big update so stay tuned for a few changes that definitely will improve SEO
@Bintmusic The solution you showed will change the block title, but not the post titles of the modules inside a block element. In order to change the heading tag of the module (post)titles into the desired heading tag, you must edit this file: http://screencast.com/t/N9i9v0t9bHa
I hope this helps.
Thank you!
Hello,
The ajax filter you are referring to can be found in the block settings and can be customized using the category ID’s: http://screencast.com/t/1kiMPcMuCUuK
you can get the category ID’s like so: http://screencast.com/t/Q2BTMIqhb8Vm
Thank you!
Hi
The theme does not have an option to control the title length for blocks. The title will have length set when you add it in Visual Composer: http://screencast.com/t/oUBR4LlN
If this is not what you mean please provide more specific details about what you’re trying to do so we can inspect this and get back to you with a more accurate answer.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
You can use the theme without Visual Composer, there won’t be any issues with its functionality but you won’t be able to use any of theme’s blocks. Theme’s blocks demands by Visual Composer and can’t be used without it, but if you don’t want to use theme then the plugin is not required.
Thanks!
Hi
Try this css in theme panel > custom code > custom css:
#td-header-menu .td_block_trending_now{
padding-bottom: 0;
}
-
This reply was modified 10 years by
Andrei L..
Hi,
I’m not sure if it;s the block titles you are referring to. You can access the pages in the back-end and edit the blocks with visual composer to change the block titles: http://screencast.com/t/8ef6VHLw3Hw4
If this is not what you mean, please provide more details so I can understand better how to help.
Thank you!
Hi
Try this css i theme panel > custom code > custom css: http://screencast.com/t/Xuk9ioDHYJrB
.td_block_9 .td-post-author-name, .td_block_9 .td-post-date{
display: none;
}
Thanks!
Hi,
I was looking for a way to add h2 tags to the titles of the blocks in the home and on the pages
I saw that you can do by editing (puttting h2 instead of h4) in
\ Newspaper \ includes \ block_templates \ td_block_template_1.php
// there is a custom title
$buffy = ”;
$buffy .= ‘<h4 class=”block-title”>’;
if (!empty($custom_url)) {
$buffy .= ‘‘ . esc_html($custom_title) . ‘‘;
} else {
$buffy .= ‘<span>’ . esc_html($custom_title) . ‘</span>’;
}
$buffy .= ‘</h4>’;
return $buffy;
}
the problem is that h2 is also added to the titles of the blocks on the sidebar of the post..
how to not include them in sidebar post to avoid putting too much h2 (in addition to that the article)?
Hi Andrei.
I’m almost there with the modifications. So far the block code is working 100 % with several custom post types. But I still cannot show custom post types on the category pages. Top posts are working as the are based on the block settings, but the article display is not showing. I’ve been trying to find there in the code the ‘post_type’=> ‘post’ is set for that but can’t seem to find it.
So far i’ve changed this:
td_data_source.php
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_type' => array('post','custom1','custom2','custom3'),
'post_status' => 'publish'
);
This will enable mega menus to fetch data from custom post types.
Out commented the post tytd_wp_booster_functions.php
// if ($post->post_type != 'post') {
// return $wordpress_template_path;
// }
This will enable custom post types to use the default post templates.
td_templates_settings.php line 89:
'template' => get_template_directory() . '/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php',
));
Forcing the templates to show for custom cpt in edit post in backend.
I’ve also added custom cpt to search etc.
But where do I set the post types for the article display on category pages etc?
Hi
sorry, but to enter the h2 tags on the home, pages blocks and categories (sidebar) blocks is not enough to change h4 in h2 in
\Newspaper\includes\block_templates\td_block_template_1.php
// there is a custom title
$buffy = ”;
$buffy .= ‘<h4 class=”block-title”>’;
if (!empty($custom_url)) {
$buffy .= ‘‘ . esc_html($custom_title) . ‘‘;
} else {
$buffy .= ‘<span>’ . esc_html($custom_title) . ‘</span>’;
}
$buffy .= ‘</h4>’;
return $buffy;
}
in this way the h2 tags are definitely referring to the content of the page and the title … or not?
Thanks
-
This reply was modified 10 years by
Bintmusic.