- 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
Child themes are indeed handy. Christopher recently said he doesn’t use them because of the pagespeed slowdown in CSS importing, if I understood him right, which is valid but it does prevent things like this. If you’re a heavy modifier of files, each update will be painful…
Child themes basically make WP use the version of the file in the child theme rather than the parent theme’s, if one exists. Hence your changes would survive updates.
Also, not all of those files can be modified in a child theme (I believe td_wordpress_booster.php can’t, for example). For those ones, you would have to copy the function in question into your child theme’s functions.php, make your changes, and rename the function. Then either change all references to the function in other files, or it’s a hooked action or filter, unhook the parent functions and hook yours in. (There are a few tutorials out there for this.)
Even if you use a child theme, you would want to watch for updates that affect functions and styles you’ve changed and do your changes over again, but it’s not as big a deal.
A block 10 is also included in the latest update, so you’d want to rename your custom one to avoid it being overwritten.
Hi there,
I know there is a padding option for posts, pages, etc. However is there a way to vary the padding between the blocks on the homepage?
I want to reduce the amount of white space but I can’t see how.
This is my home page: http://pie-magazine.net
The aim is to (very slightly) adjust the white space between the big slider and editor’s picks – and between the posts (so if you see “Entertainment” under Picks, the posts appear with quite a bit of padding, and thus white space, between the upper two posts and the lower two posts).
Thanks in advance for any help.
Did the new version 4.3 solve all the white space problem at your sites? At mine unfortunately not all. At some blocks there is still white space area. :/
I have same problem, Template Responsive no found
Hi,
Can anyone guide through the best way to upgrade the theme. I’m currently on v4.1 and that’s 4 versions behind. The biggest problem is that I have made changes to many files including the following.
style.css
loop-single.php
td_module_blog.php
td_block_layout.php
td_block_10.php (New block created by me!)
td_block_side.php
td_wordpress_booster.php
and lot more!!!
The ideal and the tedious way would be to manually diff the files and make the changes but that would eat up hell lot of days if not weeks!!! BTW haven’t researched about child themes. Would that be handy?
I would greatly appreciate if someone can help me with this!
Yes there is a way but it need some editing in the “module_modifier”
To find this you need to go in theme,includes,modules,module_modifier
After look for the code i give you way to the bottom and change both 6 to what you need…
this is the code that need to be edited
$buffy .= $td_template_layout->layout_open_element();
$td_module_6 = new td_module_6($post);
$buffy .= $td_module_6->render();
$buffy .= $td_template_layout->layout_close_element();
the 6 you have to change to which module you want..like say you change it to 3 then you will get the small images..

I can’t even find it after i update,i have a feeling this update have bugs,because the new block 10 is no where in the VC are the youtube block,oh well we just have to wait too monday for a fix…
Is there a way to set the ‘Similar articles’ at the bottom of a post to a different structure, a different block?
nice 🙂
I can’t even find these either…
– New youtube video player widget + shortcode + pagebuilder block
– New vimeo video player widget + shortcode + pagebuilder block
I seem to can’t find the new block 10 i’m only seeing the old blocks that was there before i update the VC

I’ve install the new VC

I would like a block widget to appear in only one category rather than sitewide. I have tried using an advanced widget but cannot work out the code to make my desired block and criteria appear.
The speific category is number 226.
Thx.
Dave
I’ll like to say since i bought ur theme back in 2013 it had been very stable and awesome support by ur team,and the last updates just prove how loyal you are to ur clients.
Thank you for a great theme and the support as well..
[ V 4.3 ]
– fixed bug with spaces between blocks + other UI problems
– New youtube video player widget + shortcode + pagebuilder block
– New vimeo video player widget + shortcode + pagebuilder block
– tagDiv Speed Booster plugin update: jquery version bump to match the one from WordPress 4
– new grid system: the 980px grid is deprecated
– fixed an issue with the white menu sprite
– fix for header style 8, now this header support any color
– in block – Text with title – you can now add a link as title
– new tab in Theme Panel for adding custom javascript
– on Default Template the page title, content, H1-6 and quotes can now be individually set from Theme panel -> Custom Typography
– new block (Block 10), displays a list of post titles with no feature image
– add import Default Style, to be used when rolling back to Default Style after ussing a predifinied style
– updated visual composer plugin
– updated revolution slider plugin
– removed authorship support because it’s deprecated by google
Hi,
how can I decrease the margin or padding between sections of the homepage?
It ‘s too big, I would like to lower margin or padding.
screenshots:
More screen shots to let you see all my tips working as they should…

Make sure every thing is in green for a fast site and a great pagespeed score..
If you notice every thing on my server side is in green and in the 90’s that make my server FULL optimize for the best performance… with all this ur WP will be running great and ur server as well..

Hi,
Please use this css:
@media (min-width: 767px) and (max-width: 1018px) {
.custom_category {
position: relative;
left: 70px;
}
.td_block1 .td_mod2 .custom_category {
left: 0px !important;
}
}
Result: http://screencast.com/t/qauyChDtY
Thanks
Hi,
Please use this css:
@media (max-width: 767px) {
.td-header-menu-wrap {
display: inline-block;
}
.mobile-logo-wrap img {
width: 140px;
top: 0px;
height: 100%;
}
.td-rec-hide-on-p {
display: block;
}
}
Also added the .mobile-logo-wrap img for the logo which I have noticed it’a a bit off line on mobile screens.
Should work like this: http://screencast.com/t/Et9lZRjsY
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
That function was added for auto generated block titles, works either way, you can remove the function and add css if you like.
Thanks
Hi,
Please use this custom css:
.span4 .td_block5 .td_mod4 {
min-height: 100%;
margin-bottom: 0px;
}
Should work like this: http://screencast.com/t/8oJ0bO4b
Thanks
Welcome and good luck!
And a final note, but this is just because I’m a little obsessive:
If you’re going to have a lot of these tabs, you could automate the adding of each field. You would replace from // Simplest possible example of getting ACF data, sub in yours to // (You could wrap each block in an if to skip a tab if the data is empty) with the following code:
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Set up tab
$to_echo .= '[vc_tab title=" . $data["label"] . " tab_id=" . $field_name . "]';
// Check if we have a value
if ($data['value'] {
$to_echo .= $data["value"];
// Default message if no value entered for the field
} else {
$to_echo .= 'No information on record.';
}
// Close the tab
$to_echo .= '[/vc_tab]';
}
Then whenever you want to change a field, you would just change the $field_names list and it would be much simpler. For example, if you had a field named ‘4g_network’, it becomes $field_names = ['2g_network', '3g_network', '4g_network'];
Hope that helps :p
But this leads me to ask whether you really want the label there or whether you’re thinking of renaming the tabs. I see that it still says “The first tab”, “The second tab” like I put in. To have the labels on the tabs, the tab block would look like this:
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title=" . $data_1['label'] . " tab_id="tab_1"]';
$to_echo .= $data_1['value'];
$to_echo .= '[/vc_tab]';
Hi Steven,
Thanks for your good advices.
Best Regards
Ecofame
Thanks again.
The css code between the men and content is not taking away the white space.
Its now time to contact the company and ask to solve these problems.
I appreciate for your help. It helped me a lot.
Best regards
Ecofame