- 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 use one of theme’s ad-spots to display the ad. First insert the html ad’s code in one of custom ad-spots from theme panel > ads then use do_shortcode() function to display the ad below the logo like here: http://screencast.com/t/p9KCCPun
<div class="new-ad">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
</div>
Add this css in theme panel > custom code > custom css:
.new-ad{
clear: both;
}
I’ve used custom ad 1 for this example but you can use any custom ad, just adapt the shortcode. For example if you use custom ad 5 the shortcode will be: td_block_ad_box spot_id="custom_ad_5"
The result should be like here: http://screencast.com/t/HYBdDZM0W0h
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
Glad you’ve managed to solve this.
You can use this solution at the moment if it works fine. There might be a better solution but this involve a new approach for block’s layout.
Thanks!
Thanks a lot, i have got what i wanted http://demo.tagdiv.com/newspaper/block-7/
so how do i set that on my blog as i cant see where to set 2 column.
Hello TagDiv,
Where can I possibly find the CSS for the review system?
At the moment I would like to change these following:
– Font: I can’t seem the find where this is in the font panel.
– Headings: I would like to remove the standard black box around the heading and float-left this. Similar to how this code was used: .block-title span {
background-color:white;
}
Please let me know.
Thanks,
Hi there,
I am using Newsmag Travel News template. I would like to remove category label on my home page Big Grid, Block and Slide.
Please see this picture https://onedrive.live.com/redir?resid=E922AC5D85FC9D72!128315&authkey=!AKGtko4cCtDY–0&ithint=folder%2c
Thank you for your spport.
Thanks for your reply.
In the categories page i added the next code (and it work excellent):
$adcounter = 0;
$adcounter++;
if (is_category()) {
if ($adcounter == 1) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_4"]‘);
}
elseif($adcounter == 3){
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_5"]‘);
}
}
How must i do to do the same in the search results page?
Thanks!
-
This reply was modified 10 years by
sapito.
Hello.
No i don’ t want this.
If in one page i have a big grid 5 shortcode. And i have set to that big grid 5 to show posts from the category “fashion”. I want progrmmaticaly with php in the file wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_5.php to can take the id from fashion category “91”. I want this because i want in that page to show all the posts from fashion category with the big grid 5 style. But to do this i want to find first the category id which has set at the big grid 5 settings in that page, and after to find how many posts from this category are published in my posts.
So how can i with php to fish the category id which is set at the big grid 5 settings;i want to fish it in the wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_5.php file
Thank you
Hi
Note that this block wan’t designed to be displayed on two colons on mobile devices and there is a chance to appear some issues when you’re trying to change its layout. Try this css instead of the first one, it should work fine now: http://screencast.com/t/fviNy2t48
@media (max-width: 767px){
.td_block_16 .td-block-row .td-block-span4{
width: 50% !important;
}
.td_block_16 .td-block-row:after{
clear: right;
}
.td_block_16 .entry-title{
font-size: 13px;
}
Thanks!
Hello Ronaldo,
If you want to move with its container, you have to use the following code in your custom CSS box.
The code is ->
.td-big-grid-post .td-module-meta-info{
position:relative;
top: -420px!important;
}
Please notice that this review feature for this kind of Block is closely linked to the date (get_date ->get_review). Also, if your post will do not have the review, the date will be displayed.
Hope this helps!
If is not what you want to achieve and if you want more additional customizations in the theme, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Thank you for the message!
I quote myself from above:
We are working on fixing this in a future version of the theme.
Sorry for the inconvenience.
Here is a simple solution. Activate the article top like/share and then hide it with css
.td-classic-sharing{
display:none!important;
}
Now the classic sharing option will not be available and the tweeter button will work as expected.
Thanks.
-
This reply was modified 10 years by
Bogdan B..
Hi,
You can a text block above the raw js and add the title like so: http://screencast.com/t/izDHAGQmDkd7
You can use the same text block method but this time add an empty text with title element and simply type in the title and no text content below.
Hope this helps.
Thanks.
Hello,
how can i take with php in wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_5.php
the category_id which is set at the edit of big grid 5 “Category filter:”?
thank you
Super. Thank you it’s working now.
How can I ad label over it like on advertisement?
On the right site I have Decent Comments and it would be nice if I add rectangle over it with a name like on blocks.
P
Hello hoops,
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. For more information about these kinds of plugins, please consult their documentation here -> https://wordpress.org/plugins/thumbnail-upscale/ -> https://wordpress.org/plugins/regenerate-thumbnails/ Also, please ensure that the functionalities of these plugins are not affected by the other untested plugins that could create interference through the theme. Please notice that these types of plugins are not tested with our theme and we cannot provide support for the theme. We recommend them because a lot of our customers uses and we are satisfied about their functionality.
If you want to implement another cropping system for your theme and you are not aware of the steps in this regard, please consider hiring a freelancer/developer to do this for you because we cannot provide custom work at the moment, sorry! Usually, we recommend developers from studio.envato.com.
Hope this helps and let us know how it goes!
Thank you for the message!
Hi,
Unfortunately if the particular block has this design, you cannot make the thumbnails the same size unless you alter the theme files. You can simply chose a different block as there are 21 to chose from as an alternative (http://demo.tagdiv.com/newspaper/block-4/) because altering the block files will require php knowledge and css for positioning. It will not be a walk in the park. If you want to modify the blocks then maybe the theme api can help: https://forum.tagdiv.com/td_api_blockadd/ (coding knowledge required)
Thank you!
Hello imrantareen26,
1)Please notice that this kind of title “STAY CONNECTED” is predefined word for Social Counter and if you want to display it you have to change a bit for the result. For example, you have to add more than 1 space between STAY and CONNECTED, like this -> STAY CONNECTED or you can change it with another title.
2)I suppose that you are referring to Ajax Filter. If you want to have these tabs, you have to set it from Block Settings (AJAX FILTER). For more information about this feature, please consult our documentation here -> https://forum.tagdiv.com/block-settings-tutorial/ -> http://screencast.com/t/odoPrKrOQC
Hope this helps!
Thank you for the message!
Hello sapito,
If you want to add some Ads for your search page you have to edit the search.php core file in order to achieve as you wish. Also, you have to use the do_shortcode method for this implementation, like this -> http://screencast.com/t/nL5jmKdHjdD
The code is ->
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
Thank you for the message!
Hi,
The post date can be activated from the theme panel: http://screencast.com/t/VkTckPfDR9h2
Now replace the code with this one:
.td_block_11 .td-module-thumb{
display:none!important;
}
.td_block_11 .td_module_10 .item-details {
margin-left: 0!important;
min-height: 0!important;
}
.td_block_11 .td_module_10{
padding-bottom:0px!important
}
.td_block_11 .td_module_10 .entry-title{
padding-left:0!important;
min-height: 20px!important;
}
.td_block_11 .td_module_10 .td-module-meta-info{
display:none!important;
}
.td_module_10 .td-excerpt{
margin-top:0!important;
}
.td_module_10 .entry-title{
margin-bottom:0!important
}
And one final modification. This will have to be done in the theme files. Open the module 10 file and move the get_date code in the excerpt container like so: http://screencast.com/t/Yq26zJE0Kikx
This is the result: http://screencast.com/t/iSbFifueys6
Thanks.
Hi Catalin, thanks for your quick reply.
After a few hours testing the plugins I decided to make a copy of the website on a different subdirectory (changing the permalinks and other references to the URL in the database as usual).
Everything is working fine now, and although I’m not 100% sure about it, looks like what was causing the error was a file blocked by the lack of ‘Access-Control-Allow-Origin’ headers (somehow it was trying to load it from a different folder/subdomain, which was blocking that request).
Advice for other users? When moving WP from one place to another, make sure you change all the URLs in your database properly! 🙂
Hello Dhananjay,
I suppose that you are referring to Ajax Filter. This kind of feature you can set it from each Block Settings. For more information about this, please consult our documentation here -> https://forum.tagdiv.com/block-settings-tutorial/
Thank you for the message!
Hi
Try this css in theme panel > custom code > custom css: http://screencast.com/t/KqYttQKyEMC
@media (max-width: 767px){
.td_block_16 .td-block-row .td-block-span4{
width: 49% !important;
}
}
Thanks!
Hello,
The block settings are very easy to access. Simply hover over them and the green menu will appear. then click on the pencil button like so: http://screencast.com/t/Gv5Tk7JGY
Ad for pagespeed, there you will have to do a bit of reading because if your site is loading slow then you need to start to optimize it from the server down. This involves a bit of reading. please follow a few topics about how to optimize wordpress first:
http://www.sparringmind.com/speed-up-wordpress/
Then you can follow our own guide here:
https://forum.tagdiv.com/how-to-make-the-site-faster/
Thank you!
Hi, it seems you dont seem to understand what i want.
Take for example block 19, it has 2 leading picture that is larger that the other ones following it. how do i make all the pictures sames size.
never mind, i solved it by copying the above code but replacing .td_block_wrap to .td-module-meta-info
Thanks!
Thanks for your reply.. i have done this job.
I have some more question. Please look after
1. Sidebar social like there was a header title but unfortunately it has lost. But i have checked in admin page setting Social Counter Optional – custom title for this block: is set as STAY CONNECTED. but now it is not display.
2. Please see middle section of site. a category “Lifestyle” i want to tabs same as “Dont Miss” section. but tab should be sub category of “life style”
Thanks for your cooperation