Ad Inserter Custom Hooks

Posted in: Newspaper
Post count: 13

Hello,

I want to create custom hooks https://adinserter.pro/documentation#custom-hooks to put the adsense just beloe the “next” button on the smart list numer 6.

Please can someone tell me how the do_action () hook is called please?

Thanks

Post count: 22421

Hello,

Here is an example from a theme implementation on how the do_Action hook is being called:

https://www.screencast.com/t/nCDCL3FnF

Thanks.

Post count: 13

Thank you!

Please can you tell me which one is:

– below the prev / next button of the smart list number 6
– below or above the related articles

Thanks!

Post count: 23312

Hello ultimate28,

You should check the td_smart_list.php core file here -> https://www.screencast.com/t/qFGA30chgeYu if you want to change the smart list pagination because this code is created there. If you want to make some changes, in this case, notice that you should do it yourself because it’s not a simple task and we cannot provide additional customizations at the moment, sorry!

Thanks for your message!

Post count: 13

Awesome thanks!

Please can you tell how can I find the related articles spot pls?

Post count: 23312

Hello ultimate28

The related articles on post pages can be managed from Theme panel, from here -> https://www.screencast.com/t/ccEd8F2xpD Also, if you want to edit the code for this section, you should edit the td_block_related_posts.php like this -> https://www.screencast.com/t/BUbrLNNKb

Thanks for the message!

Post count: 13

you’re awesome!

Post count: 13

Hello Guys,

How can I insert this code below the related articles?
<?php do_action (‘custom_action_name’); ?>

I’ve tried to add it as is in the td_block_related_posts.php file but it messed the template 🙂

Thanks
Enrico

Post count: 23312

Hello ultimate28,

Please notice that for each post template, the related post is called in that section here -> https://www.screencast.com/t/XDgiI73SH and if you want to add something like the code below this you should add in that kind of folder, according to your post template used by you.

Hope this helps!

Thanks for your understanding!

Post count: 13

Awesome it worked thanks.

Please can you tell me how to reduce the white space between the end of the smart list button and the new function (<div class=”post_footer_ads”>) I’ve just created?
https://www.tuttosalute24.it/dieta/10-modi-efficaci-ridurre-sale/

Thank you!

Post count: 23312

Hello ultimate28,

You should reduce it if you are using a bit of CSS code. Try to inspect that section with the Inspector Browser and try to create your custom CSS code, according to our documentation here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks for your understanding!

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.