- 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,
You can use a bit of css if you wish to hide the grid on mobile:
@media (max-width:767px){
.home .td_block_big_grid_1{
display:none!important
}
}
Then add the code in the theme pane – > custom css box.
Thank you!
Hi
I am not sure how do you want to display this iframe on your site but a basic example would be like this:
-first you can add a specific class for the iframe so you can target it with css:
<iframe class="my-custom-mail" allowTransparency=”true” frameborder=”0″ scrolling=”no” style=”border:none” src=”http://www.biliranisland.com/wp-content/plugins/myMail/form.php?id=0&s=1″></iframe>
-use this custom css in theme panel > custom code > custom css to set a size for your iframe, you can modify this values as you want:
.my-custom-mail{
width: 1064px;
height: 300px;
}
– to display it on page use a raw html block from Visual Composer: http://screencast.com/t/Ue7UFyIKf The result will be like here: http://screencast.com/t/V4R0i5FuH5B Thi is a basic example but you can customize it as you want using visual composer page-builder and css code.
If you want a different implementation for this iframe please provide more details and maybe i can help you.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello,
In order to have an add inside a block you will need to alter the theme files. There is no option for it in the theme panel. You can follow this topic to see how it can be done: https://forum.tagdiv.com/topic/how-to-insert-ads-between-posts-on-the-main-categories-and-in-the-archives/ You will need to adapt this method to your page elements. It will require a bit of coding knowledge.
Thank you!
Hi,
You can use this custom css for it:
.td_social_facebook .td_social_info, .td_social_facebook .td_social_info_name{
display:none!important;
}
.td_block_social_counter .td_social_facebook {
font-size:20px!important;
}
.td_social_facebook{
width:32%!Important;
}
.td_social_googleplus .td_social_info, .td_social_googleplus .td_social_info_name{
display:none!important;
}
.td_block_social_counter .td_social_googleplus {
font-size:20px!important;
}
.td_social_googleplus{
width:45%!Important;
}
result: http://screencast.com/t/pEj7kWaYChxo
Thank you!
That did not do the trick, i even tried adding another class
.td-travel .td-travel .td-travel-features .td_block_wrap {
margin-bottom:0!important;
}
Hello there, i wanted to show on a block the most popular posts among the posts of last 7 days.
Let me be more clear: Not posts-of-any-time that gain the most popularity the last 7 days.
I wanted posts-of-last-7-days that gain the most popularity.
So i implemented the “Popular among posts of last 7 days” sorting method. It took me 5 years in isolation, a team of nuclear physicists and billions of dollars to do it. And i give it now for free. How kind!
IMPORTANT REQUIREMENTS: ***YOU*** NEED TO KNOW PHP PROGRAMMING TO DO THIS. LINE NUMBERS OF CODE PROVIDED BELOW ARE NOT EXACT, THEY ARE JUST TO GIVE YOU A HINT WHERE TO LOOK AT, BECAUSE I DON’T KNOW WHAT VERSION ARE THESE FILES SO LINE NUMBERS MAY BE DIFFERENT AMONG DIFFERENT VERSIONS. SO DONT BLINDLY COPY PASTE THIS STUFF ON THAT LINES.
ONE MORE TIME WARNING: be carefull, you are messing with php code here, if anything goes wrong, i have nothing to do with it, this comes with no warranty at all do it at your own risk and its NOT OFFICIALLY SUPPORTED I DONT WORK FOR TAGDIV.
So:
ADD this case in the switch of Newspaper/includes/wp_booster/td_data_source.php its somewhere near (not exactly) 140-something line
Add:
case 'popular_of_latest':
$wp_query_args['meta_key'] = td_page_views::$post_view_counter_key;
$wp_query_args['orderby'] = 'meta_value_num';
$wp_query_args['order'] = 'DESC';
$wp_query_args['date_query'] = array(
'column' => 'post_date_gmt',
'after' => '1 week ago'
);
break;
ok now we need to add an array element in Newspaper/includes/td_config.php
find this block of code near line 4020-something and change this
array(
"param_name" => "sort",
"type" => "dropdown",
"value" => array (
'- Latest -' => '',
'Random posts Today' => 'random_today' ,
'Random posts from last 7 Day' => 'random_7_day' ,
'Alphabetical A -> Z' => 'alphabetical_order',
'Popular (all time)' => 'popular',
'Popular (jetpack + stats module requiered) Does not work with other settings/pagination' => 'jetpack_popular_2',
'Popular (last 7 days) - theme counter (enable from panel)' => 'popular7',
'Featured' => 'featured',
'Highest rated (reviews)' => 'review_high',
'Random Posts' => 'random_posts',
'Most Commented' => 'comment_count'
),
to this
array(
"param_name" => "sort",
"type" => "dropdown",
"value" => array (
'- Latest -' => '',
'Random posts Today' => 'random_today' ,
'Random posts from last 7 Day' => 'random_7_day' ,
'Alphabetical A -> Z' => 'alphabetical_order',
'Popular (all time)' => 'popular',
'Popular (jetpack + stats module requiered) Does not work with other settings/pagination' => 'jetpack_popular_2',
'Popular (last 7 days) - theme counter (enable from panel)' => 'popular7',
'Featured' => 'featured',
'Highest rated (reviews)' => 'review_high',
'Random Posts' => 'random_posts',
'Most Commented' => 'comment_count',
'Popular among posts of last 7 days' => 'popular_of_latest'
),
as you can see the only “change” was the addition of that last element, and adding a comma at the end of the previous element.
now this sorting option should be available on your blocks here and there

The kind good people at tagdiv may wanna add this at a future release as i find this useful and its just a quick commit.
p.s. the db query produced is fine performance-wise.
Hello amd4ever,
1) If you want to remove the space between these blocks (18->15), you have to use a bit of CSS. Please try the code below and add it in Theme panel->Custom CSS area.
.td_block_18 {
padding-bottom: 0px;
}
.td_block_18 .td_module_mx8 {
padding-bottom: 5px;
}
The result you should see here -> http://screencast.com/t/uAgoAr9POtL
2)I have checked you website and I saw you have a crumb-container without breadcrumbs. Below I gave you a CSS code and I decrease the margin-bottom of this container and the result you should see here -> http://screencast.com/t/DMWuxsZEHkAP
The code is ->
.td-category-header .td-crumb-container {
margin-bottom: 0px;
}
And, if you want to have a smaller space between category and header menu, you have to hide this container with a bit of CSS and increase the padding-top of the category container and the result you should see here -> http://screencast.com/t/PuJpE6Z1
.td-category-header .td-crumb-container {
display:none;
}
.td-category-header{
padding-top: 10px;
}
3) Please try the code below. You can adjust the values until you obtain as you wish.
.td-post-template-12 .td-post-header, .td-post-template-13 .td-post-header {
margin-bottom: 10px;
}
The result -> http://screencast.com/t/wOiTvZCpf
4)If you want to change the background-color for your all site area, please try the code below.
.td-pb-row, .type-post, .td-main-content-wrap, .td-category-header {
background-color:#743636;
}
The result you should see here -> http://screencast.com/t/Ohz1UeSIW6
Hope this helps and let us know how it goes!
If is not what you mean, please provide more details. Screenshots will be more useful.
Thank you for the message!
Hi,
You can use this custom css to do it:
.td-travel .td-travel-features .td_block_wrap{
margin-bottom:0!important;
}
Thank you!
Hi
The theme doesn’t have an option to disable the video thumbs but you can achieve this by removing this function from td_video_support.php file: http://screencast.com/t/DUkNokMtlFTm The result will be like here: http://screencast.com/t/n8MXlzQ8mue Please note that you have to regenerate your thumbnails, here is a guide about this step: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/ otherwise the video thumbs will still appear on the site.
Thanks!
Hi,
I have checked this on my side and did not found any issues, the videos work properly, please make sure you add the iframe code in html text mode if you add them in post content – http://screencast.com/t/fHsyPONvoC the result should be – http://screencast.com/t/gSS6yQiaAtt3 If you use text block via Visual Composer add the code in the same mode – http://screencast.com/t/9m5LEraX I have tested also by using Raw HTML block.
Please make sure you use the latest theme version 6.6.4 and also the Visual Composer is updated to the latest version provided with the theme 4.9. If you need to update the theme please follow this guide – https://forum.tagdiv.com/how-to-update-the-theme-2/ and for Visual Composer plugin – https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
Also you can try to disable all plugins except Visual Composer, clear all the caches and see if it works. If the issue persist please contact us via email at contact@tagdiv.com and provide wp-admin access so we can take a closer look.
Thanks!
Hello,
Unfortunately visual composer does not add extra markup for seo on these elements so they are equal on the count of google searches. What you can do though is add your own custom markup in text mode for a text block for example: http://screencast.com/t/dNjbGLyjmrX (this will not appear on the front-end)
Thank you!
No message or policy violation in my Adsense. Here is the code –
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Image only –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-753250##########”
data-ad-slot=”##########”
data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
An interesting observation – The header ad is showing properly in all Error 404 pages!
Hi there,
Right now, I am using the mega menu and it can only create sub menu items through “Posts”. I currently have a page that I would like to show up as a subcategory (I have already tried using the Menu option in WP but it takes up the entire bottom row of the menu). Is there a workaround? Or if I create a post, can I re-link the subcategory to my page? I didn’t use a post to create the page because it does not have the same customizable blocks as a page.
Please let me know, thanks.
Serena
Then the code is bad, your site wasn’t allowed or has been removed for bad content/warned about ad usage (check your adsense account for “messages”!), you have conflicting plugin, etc.
Likely good to go back to your AdSense account get the working code, make sure you’re only inserting the provided block of <script></script> from Google.
Don’t use third party plugin as that won’t help if the code itself doesn’t work.
Hi Guys,
I have got my site almost to the level where I can release it, however I have a few major issues that I will discuss here with you.
I can’t add screenshots so its going to be a little bit harder but I’ll just go into more detail. You’ll see my mention “I first noticed this when I uploaded the demo” I say this because I uploaded 2 of the demos and after seeing these below issues I uninstalled and started to build from scratch hoping that would avoid the below. It has not so here are my issues I am facing preventing me from releasing my site. Thank you for your time looking and helping.
1) So as I mentioned above, I have followed all of your instructions and my logo is still not retina quality as you will notice visiting the site. I have tried many different ways to get this to work following your instructions and trying to get round it with some tweaks but nothing has working so far. This is of huge importance to me releasing my site that the logo is super clear.
2) MAJOR ISSUE: I first noticed this when I uploaded the demo content, I have no thumbnails of my featured images displayed. (You will see when you visit the site) Please note all of my “thumbs on modules & blocks” are clicked on however the featured image IS displaying in the Mega menu.
3) MAJOR ISSUE: I first noticed this when I uploaded the demo content (video one) that when I post a video, if you click on to the post the video only displays on the left hand side of the screen in a box even though I am using style 10.
4) If you see the widgetised sidebar you’ll notice it is looking very bland. I see the thumbnail for the post is not being displayed. I know it will look better once it is displayed. The category/tag cloud section is very bland, will there be any added design when the above is fixed.
5)I first noticed this when I uploaded the demo If you see my mega menu you’ll notice that when you hover the mouse over ‘Evolve’ in the menu it only displays ‘all’ in the mega menu. When you hover over sport & fitness it does not register. Could you please help me fix this.
These are the issues I need to be fixed so my site can go live along. My design right now is very simple however after some weeks I will make it more complex at one point eventually looking like your newspaper demo site.
Your help is greatly appreciated, thank you for your time and wonderful theme. I look forward to hearing back and getting my site live!
If you need to go into my site and fix these issues as I assume they are big issues you need to fix in the code so my log in details are evolveonline.co/wp-admin
Many thanks,
Josh
-
This reply was modified 10 years by
Bogdan B..
Hallo,
1. I want to reduce space between block 18 (with one article) and block 15.
2. I would like to reduce the space between categorie and header at style 12,
3 And reduce the space between date, author and the aricle
4. i would like to change the white colour of background at homepage inside articles category and all pages.
i want to be same with BACKGROUND COLOR at general theme colour
My website: www. topnews .gr
Bogdan, here is the link: http://bit.ly/1P5XRNz
I want the ad block tighter to content.
Hello,
There is a specific code for every block. You can use the block specific class like so:
.home .td_block_1 .td-module-thumb{
display:none!important;
}
Every block has a td_block_x class where x is the block number.
I hope this helps.
Thank you!
Hello,
Please note that speedbooster does not automatically move ALL render blocks to the footer. You will have to manually move a few of them: See part 5 of this tutorial: http://www.alltomtrav.info/dev/daniel-reden-infor-v75-pa-gavletravet-2/
Be careful though as some render blocks need to stay in the header for them to work. You will have to know what you are doing otherwise you could cause more problems than you fix.
Thank you!
Hi
Does anyone know which Visual Composer text sections are picked up by Search Engines?
e,g, Raw Html, Message Box, Text Block? etc
Does one perform better than others?
Hi Andrei,
I want to make all blocks without the transparent black, on rollover and on the big grids.
How i can make it?
Thanks in advance!
David
great, thank you for your response !
And if I want to remove images block by block, is there a specific custom css ?
thk you so much
Hello carmene,
Unfortunately, there is not a simple task to do the Pinterest button to look like Facebook Box because the implementation methods are different for each button. I saw that you are using a plugin wich overwritten the code of the Pinterest button with the new button code. If you want to display more levels you need custom modifications and I suggest hiring a freelancer to do this for you as we cannot provide custom work at this time, sorry!
For your second request, if you want to decrease the black space below the widgets in the footer section, you have to use a bit of CSS. Please try the code below and add it in Theme panel->Custom CSS area.
.td-footer-wrapper .td_block_wrap {
margin-bottom: 0px;
}
The result -> http://screencast.com/t/Z8ynN7m8uViU
Hope this helps!
Thank yu for the message!
Hello,
The theme wasn’t designed to display the post views on modules but you can achieve that adding this code http://pastebin.com/JdFgK89X in td_module.php like here: http://screencast.com/t/BjVvJT9m Then you need to edit the module you want the views displayed on
get_modules_views();?>
And add the code in one of these files replacing the get_comments code: http://screencast.com/t/HdSVmjPFqE0z
It will require further css positioning on some blocks.
I hope this helps.
Thank you!
Buna
Nu e neaparat sa adaugi block-ul intr-o pagina publicata. Poti face o pagina de test in care adaugi block-ul dorit doar pentru a genera shortcodul, nu e nevoie sa publici acea pagina, poate fi un draft.
Editand index.php modificarile se vor aplica doar pe pagina de blog. Pentru a schimba continutul altei pagini trebuie editat fisierul care genereaza pagina respectiva. Spre exemplu pentru pagina de arhive fisierul care trebuie modificat e archive.php
Multumesc!