- 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
Hello mkljrd,
You make reference to Ajax filter. This is an option from Blocks Settings within Visual Composer. You can choose what category to display in your block if you are using the Category ID, like this: http://screencast.com/t/A2W2huNJHjQu – http://screencast.com/t/UrgY4WgN .
Here http://screencast.com/t/3GY8aQ7L4 , you can see how to find the Category ID.
Hope this helps and let us know how it goes!
If is not what you mean, please provide more details about this.
Thank you for message!
Hi,
Yes I see that these files are external fb files unfortunately I cannot provide a solution for this, also the theme like button comes from facebook.
For images try a plugin like Smush it – https://wordpress.org/plugins/wp-smushit/
Or add the following code at the end of the functions.php file:
add_filter( 'jpeg_quality', create_function('', 'return 50;' ) );
It will compress all future added images to 50%, but you have to regenerate the thumbs for the images that were already uploaded, you can doit using the Force Regenerate plugin – https://wordpress.org/plugins/force-regenerate-thumbnails/
Regarding the speed booster plugin I have provided above a solution so it will work with all the plugins or you can check if it works only with tested plugins active:
To always enable speed booster remove or comment this code â http://screencast.com/t/RZLIOPUNdqh
Please note that Speed Booster is an optional plugin so you can disable it if you don’t want to use it and search for an alternative.
I also suggest to not use many plugins as your pagespeed will be affected.
Thanks!
Hello,
If you use version 6.6 and above, then a class was changed and the old api plugin will not work anymore. We also updated our docs and use the updated classes. Please check the api section: https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
Thank you!
Hi
The avatar image works fine on post’s author box: http://screencast.com/t/z3SBxTwwC or in authors block: http://screencast.com/t/NuqpJJkr If does it should work and on module 9 because the implementation it’s similar.
If you still can’t manage to solve this issue please address us via email at contact@tagdiv.com including a link to this conversation and also give us wp-access so we can have a closer look at this and we will get back to your as soon as possible.
Thanks!
Hello,
Unfortunately the block uses the post picture. There is only one picture. The theme creates thumbnails based on the image you upload in your post and set as featured image. The only way to have it look good both on pages and posts is to change the aspect ratio of the featured image.
Thank you!
Hi
You can set the post which will be displayed in trending now block from block settings in Visual Composer page-builder: http://screencast.com/t/29s2L63koP
Thanks!
Dear Team
How to edit which category to display in block.
Thankyou
Regards,
Adi
Hi,
@Stefan please send us an email at contact@tagdiv.com and provide wp-admin access so we can take a closer look at this, also paste a link to this topic so we can know who you are and what your issue is.
@Cubewebsolution
The theme has an fixed grid layout, responsive as it is fluid and style for desktop/tables/mobile screens. Changing the grid’s width is not an easy job and you would need lots of custom modifications for it, as you need to change the width value for all elements(blocks/modules) on page. For the moment we don’t plan to do any change to the grid, sorry!
Thanks!
Hi,
Please try this custom css in Theme Panel > Custom Css – http://screencast.com/t/y8Q79EFv9w
.td_block_slide .td-image-gradient:before {
opacity: 0;
}
Thanks!
Thanks Alin, I have changed some of the css on block 9 to reduce space ect. I will dig into modifying it later maybe pick some php from the other blocks to this one lol.
Hi,
The block 9 is made using module 8 so you can customize it like you wish – http://screencast.com/t/DMLW30OgN6 or get someone to help you as the time doesn’t allow us to provide custom services.
Regarding the error you get, do you use the api plugin? Please install it from here(see bottom of the page) – https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
Thanks!
Hello,
I see you used visual composer on posts. You can change the post template if you wish from the post settings.
You are placing the ad in visual composer inside the content. You cannot move it above the content from the files if you use it like this. What you can do is edit the default template (i assume that one is specified in the panel) and add your visual composer shortcode to the file: http://screencast.com/t/dRb58PAz4
code: <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_2"]')?>
And then remove the ad box from your post as it will be picked up from the code you insert.
This will make every post that has the default template specified display the ad.
I hope this helps. If the default template is not specified in the panel you can apply the customization to the other loo-single files depending on the template specified. loop-single is the default template, loop-single-1 is template 1, so on and so forth.
Thank you!
Hello,
You only need to use this custom css to get the widget to display as the title:
.block-title span{
width:100%
}
.block-title span:after{
width:58%
}
But unfortunately a different width must be specified for every widget as title length will not be the same. if you set it to.
It will require further customization.
result: http://screencast.com/t/xptoQ821kZAu
Thank you!
Hello zlato,
I’ve checked your site and I saw your Widgets on the right side. I have inspected this and below I gave you a bit of Css. Please try this code and place it Theme panel->Custom Css area like this: http://screencast.com/t/3dmZTAW3Bz0 Now, all your right widgets background is completely colored.
.td-main-sidebar .block-title span {
width: 100%;
}
.wpb_widgetised_column .block-title span {
width: 100%;
}
The result you should see here: http://screencast.com/t/8Mq8ZVKOe
If is not what you want, please provide more details about this problem.
Hope this helps and let us know how it goes!
Thank you for message!
Hi, Sorry for the lack of information.
I’m using Formats->quote block right for that.
Sorry but the link already gone, because we make it stacked at the bottom for now đ
Hi
You don’t have to put any value for the $parameter That it’s an empty variable with a conditional role, meaning that if the module it’s used within a block the code between if statement won’t be executed: http://screencast.com/t/nQeTY7eNdaJ
On line 21 you have to replace 'my custom code' with your custom code. This code won’t be displayed, on blocks, only on modules because of the $parameter variable: http://screencast.com/t/nQeTY7eNdaJ
Please consider that this is a complex task which require good coding skills and 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 as we can’t offer any type of custom work at the moment.
Thanks!
Hello,
My client does not use images with news and the best one would be Block 9 only catch is
1. I need to add Excerpt Text
2. I need to change so that it displays 1 per line, current it goes to two
3. I need to add Read More to it
Thank you in advance for help!
You can see the Latest News block on this dev URL awcs . tripledm . com
hello Bogdan,
Thanks for your answer. yes now i understand correctly. i think firstly there exist a way use two picture. first one is block list second one is for post view. i undersant that there is no way like this. we should use only one picture and we must utilize aspect ratio both of them?
Hi @katie,
Editor Picks feature used a block_7 to display all the post that are featured. If you do not have this kind of sorting on your post, this section will be empty. You can see this thing in core file, like this: http://screencast.com/t/K4iviQDpY . Here, http://screencast.com/t/dhQfZa3ooMaA you can find out how to make a feature post.
There is an option for it, from Theme panel->Translations->Popular Category, like this: http://screencast.com/t/DxgCDpn1a3
Hope this helps and let us know how it goes!
Thank you for message!
Hello,
The wide picture you showed as an example will not work well on blocks as it will get cropped like this: http://screencast.com/t/HZiz8lKlllO8
You need to upload images in the correct aspect ratio. Wide banners like that will not display well on our blocks. The block i showed you above uses a thumbnail size of 324×235 and your image is 696×290. It will be cropped to fit the container but if the aspect ratio is not close to the one of the block it will be cut-out.
A better way to explain this is with simple math : 324/235=1.37 and 696/290=2.4 you need to get your image as close to the result (1.37) as possible. No matter the size.
I hope this helps get an idea of how aspect ratio works.
Thank you!
Hello phclummia,
For your first request, if you want to have a pin post to first page, you should make a sticky post. That sticky post will appear on all of the blocks that you are used in website and contain this post. To achieve a sticky post, it is necessary to do some modification, like this: http://screencast.com/t/r7WFggtF . After this, you have to remove/comment this part of code, like this: http://screencast.com/t/WGiZx7dJGuT0 . The sticky post are disabled by default because depending on the settings they may appear on all blocks. http://screencast.com/t/xvuUeYje
For your second request, you should change your category top post style from Theme panel->Categories, like this: http://screencast.com/t/BKJbxv0Mp . Also, you have option to edit it to Category global settings or Per Category Settings, as you wish. We have some options to choose that you like .
For more information about Category Settings, please consult our documentation here: https://forum.tagdiv.com/how-category-settings-work/ .
If is not what you want, please provide more details about this, so I can be able to provide a more accurate response!
Hope this helps and let us know how it goes!
Thank you for message!
Hello,
Unfortunately it will be no easy task to change the custom ad class as it is used multiple times in the theme files: http://screencast.com/t/teDottL31dLn. You will need to edit every one of these files and change the name. You can maybe use a find and replace app if yopu realy want this modification done.
As a note, if your ad is reported to adblock, then there is nothing you can do about it ‘ad’ name or not.
Thank you!
Hello todaybase,
Please try the code below and place it in Theme panel->Custom Css area, like this:
http://screencast.com/t/BVbYYdY9
@media (max-width: 767px) {
.td_block_big_grid_1 {
display:none;
}
.backstretch {
display:none;
}
}
You should see the result here: http://screencast.com/t/ssCvLETad
Hope this helps and let us know how it goes!
Thank you for message!
Hi,
2) It is not weird as this is a default behavior of ther theme. A post will have every category or sub-category displayed on the top. If i specify 20 categoriess or sub-categoriess to the post they will all display: http://screencast.com/t/BTeOfsrvJ
Unfortunately there is no option to hide a specific category from a post. You can disable all of them from the theme panel: http://screencast.com/t/zavyzutGqHt
4)The theme has no option to hide a specific author based on the author description. Maybe you can find a plugin that provides this option in order to have it as your previous theme.
5)Indeed it is a css trick but we need to inspect it so we can get the class needed to apply the code.
for example on this block: http://screencast.com/t/SisfBDI9
code:
.td_uid_18_5661402fc34c4_rand .block-title > span{
background-color:red!important;
}
That long id number is different for every block element. You will need to identify yours and place it in the code. You can use the browser inspector to get the class.
6)You are getting posts from all categories on your block because you have it set to all categories and have not specified what categories you want your block to display posts from. You have specified categories for the ajax dropdown, which is the “menu” on the right of the title. You need to insert the categoriy id’s in the filter tab and in the multiple categories filter.
Thank you!
Hello Vinicius,
If you want to have a sticky post, it is necessary to remove/comment a part of code, like this: http://screencast.com/t/WGiZx7dJGuT0 . Now, your sticky post will appear as first on all your blocks that contains this post. http://screencast.com/t/V5HQQivx0jXx – http://screencast.com/t/xvuUeYje
Hope this helps and let us know how it goes!
Thank you!