- 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
You can add a condition like this in td_module_single_base.php file http://screencast.com/t/sWdYXBSX
if (is_single()) {
$content = $content . td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_4'));
}
The result will be like here: http://screencast.com/t/Kl9YxQVKd This implementation should work even with Disq plugin active.
Let me know how it goes.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello,
Thank you for appreciation.
You can try to add your content inside the smartlist file in the child theme: You will have to create the smartlist path and move these files over to your child theme: http://screencast.com/t/0RKJoBNqJT
Then you can edit the smartlist you use and add the shortcode with a do_shortcode function like so:
http://screencast.com/t/JnFFBrDSt2l
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
This was an example for an ad on smartlist 7. I assume the comments have a shortcode as well so you can use the same function to make them display inside a smartlist.
I hope this helps.
Thank you!
Hi
You can insert an ad under post title using do_shortcode function in the file corresponding with post template used, like here: http://screencast.com/t/sOX6p9gHJ
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
To get the shortcode add an ad box into a blank page then switch in backend editor copy and paste this code: http://screencast.com/t/Kcqsjk9C7xbU inside do_shortcode function.
For homepage you can use the adbox clock from Visual Composer like here: http://screencast.com/t/0kTjlWwwg – http://screencast.com/t/USSisJGc
Hope this help!
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
Replied you here: https://forum.tagdiv.com/topic/sidebar-display-block-7-is-too-compacted/#post-93123
Thanks!
Hi,
If you want to remove the category tag on that particular big grid, you can use this code:
.td_block_big_grid_7 .td-post-category{
display:none!important;
}
I hope this helps.
Thank you!
Hi
This usually happens when you have only one post in the category set in slid’s filter. To avoid that just comment the indicated lines from td_block_slide.php file: http://screencast.com/t/tzFPzU220YR
Thanks!
.home .td-main-page-wrap{
position:relative;
top:530px!important;
}
This part bug the final block. If scroll down to the footer will see how the HOT NEWS block will override footer.
In same time LATEST ARTICLES aren’t displayed well (the final part).
I belive that new top possiton value must be added somehow to the homepage height.
Hi,
In pageable container, if we enable auto rotate it affects the rows containers blocks below it everytime it rotates
is there a way to fix the row height
Sorry made a mistake its http://www.beautygeekng.com/
I want it to look like a blog. I dont need all the blocks. I just want a simple blog arrangement from latest post. I also want the side bar. I dont want the “more stories widget” to pop up
Please visit my in construction page http://www.thehikers.ro and scroll to the end. Will see how HOT NEWS category block will scroll down and cover my footer.
It happens just on main page.
How to fix it?
Hello dailynews,
Our theme uses a lot of predefined thumbnails in blocks and modules. If you check the Theme panel->Block settings area you can see the list with all dimensions of the thumbs wich is used in the theme and which elements -> blocks/modules uses -> http://screencast.com/t/tQuimSer9 If you want to exclude the cropping system wich you have to use the right dimension for your images.
Our theme uses the system of cropping from center to top. The theme uses thumbs to reduce the page size and speed up page loading time. From each image uploaded are generated thumbs for each thumb size used by the theme. Basically, when a post it’s displayed on the page in a block, the featured image displayed is not the one which you uploaded in the media file, it’s a thumb cropped from the original image at the precise dimension. To change the picture orientation most likely you will need a different cropping system. We use a WordPress function – add_image_size() – you can read about it here – https://codex.wordpress.org/Function_Reference/add_image_size – and here – http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
Our theme crop (cut) thumbnails in some cases to avoid creating a lot of thumbnails in order to reduce to load more spaces on the server.
If you don’t have the possibility to upload large images you could use a combination of plugins to upscale the thumbs – Thumbnail Upscale and Force Regenerate.
Hope this helps!
Thank you for the message!
Hello,
Here is a tutorial on how to create a new thumbnail in our theme:
1) Access td_config.php and add the new thumbnail code like so: http://screencast.com/t/06jMvMcJjKl
In this case we are adding this thumbnail:
td_api_thumb::add('td_280x173',
array(
'name' => 'td_280x173',
'width' => 280,
'height' => 173,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Module 10'
)
)
);
2) After you added the code for the thumbanil and renamed it to match the sizes you want, you will need to access the module you want the thumbnail to be used in: http://screencast.com/t/UaYgy9aX
3) If everything went right, you should now have a new thumbnail in the theme panel which you need to activate: http://screencast.com/t/tfpPcacE
4) Now you need to regenerate your thumbnails: http://screencast.com/t/KvlRwhBY7
5) Now your new thumbnail will display in the module you set it to: http://screencast.com/t/WOP0f7yp
In most cases it will need a few css ajustments in order for it to display properly.
For this particular example you can use this code:
.td_module_10 .item-details{
margin-left:295px!important;
}
Final result: http://screencast.com/t/4gF43GDos
WARNING: A module will be used in different places, not just one block so when you modify a thumbnail you need to be careful where the module is used. Please refer to this section to see where a module is used to know what blocks will be affected by the modification: http://screencast.com/t/SAcFVXNDL7
Thank you!
Hi
Try to deactivate all plugin except Visual Composer, clear all caches and test again. Also check in browser console while you’re saving the settings if there are any errors. Usually a 403 or 404 error appear in this situations.
Regarding the ad issue please make sure that you’re not using any ad-blocker software as I’ve checked your site with google chrome and the header ad it’s displayed fine: http://screencast.com/t/NVwwEtdkpDq
Thanks!
Hello svharishtech,
I suppose that you are referring to category tag. If you want to activate it, you can do it from Theme panel->Blocks settings->Category Tag Modules/Blocks. Please ensure that you have active all these options to achieve as you wish. -> http://screencast.com/t/xfXk6OtK
Hope this helps!
Thank you for the message!
Hello,
I was talking about this guide on how to make your website faster. It describes how to use speedbooster to move render blocks to the footer : https://forum.tagdiv.com/how-to-make-the-site-faster/
Thank you!
Hi Tagdiv,
My sidebar titles and dates are all overlapping using Block 7: http://tinypic.com/r/vzy155/9
Live page (bottom right): http://didgeproject.com/tips-and-tutorials/
Is there a fix for this?
AJ
my problem is not about hover color , i want to change default color of blocks
Please see snapshot file
Hi Tagdiv,
My sidebar titles and dates are all overlapping using Block 7:
http://tinypic.com/r/vzy155/9
Live page (bottom right): http://didgeproject.com/tips-and-tutorials/
Is there a fix for this?
Ah, thanks man, mistake from my side. (I thought the opposite, that module is made of blocks thats why i got confused.)
Hi Tagdiv,
I’m still dealing with slide block issues. This is for a new block I’ve created at the bottom: http://tinypic.com/r/2nq4hsp/9
I set filter category to “Voice”. Other than that and the Title “Voice” I left all other fields blank.
See live page at: http://didgeproject.com/tips-and-tutorials/
Under “Sleep Apnea” a block for “Voice” should appear but does not.
Thank you,
AJ
Hello,
you can change the hover color on all blocks in visual composer – block settings as you can see here on our demo, each block has a different hover color: http://demo.tagdiv.com/newspaper/
This is controlled from here: http://screencast.com/t/d09X7oMZIUGy
The title color affects the hover color as well.
Thank you!
Hello,
You can create a page in visual composer for your products and select how many columns the block will have: http://screencast.com/t/WpYV6gCExvz
If this is not what you mean, please provide more details so we can understand better.
Thank you!
Hello,
I’m not sure how you want the category title positioned but you can use this css and ajust the left and right property to your prefference:
.td_block_1 .td-module-image .td-post-category{
bottom: -16px!important;
right: -5px!important;
}
Thank you!
“So please check your System Status to make sure that the Speed Booster is active – http://screencast.com/t/Gomyv89n7j0 and then try to follow the steps provided in the documentation to remove render blocking.”
Hi! What steps and what documentation is this written about?