HTML in single post and hide post date

Posted in: Newsmag
Post count: 66

Hello,

I have 2 questions.

I want this launch timer to show up at the bottom on every single post. Where do i need to place the code?

<div data-type="countdown" data-id="1537321" class="tickcounter" style="width: 100%; position: relative; padding-bottom: 25%">Disney Plus LanceringCountdown</div><script>(function(d, s, id) { var js, pjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//www.tickcounter.com/static/js/loader.js"; pjs.parentNode.insertBefore(js, pjs); }(document, "script", "tickcounter-sdk"));</script>

Also, i want to hide the date on every single post, but only in my ‘aanbod disney plus’ category. I placed the below code in Custom CSS. It works, but is this the right way to do it?

.category-aanbod-disney-plus .td-post-date {
display:none;
}

Post count: 35449

Hi,

If you want to set that custom code at the bottom of each post, then you’ll need to set it in theme core, in wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> http://prntscr.com/pp0nx6 at the bottom of function get_content() set you code.

Yes that code is good and is set correctly in theme panel.

Thank you!

Post count: 66

Hello,

Should i place the code right below the ‘function get_content’ line or right above?

Post count: 35449

Hi,

If you want that you code to be display in post content, then the code need to be set inside the get_content at the end of function

Thank you!

Post count: 66

To bad, youre not clear of where to put the code. The arrow is pointing to the word function, not the location. I placed the code at the end of function, like you said (between function and get content) but the code breaks. Then i tried to place it below function and get content, but then it also breaks.

PLease be clear of where to put the code exactly. Thank you.

Post count: 35449

Hi,

Lets try in another way, maybe your code will work, please set the code in theme panel> ads> article bottom ads -> http://prntscr.com/pphnjd hope this will work, also make sure that your code is working.

Thank you!

Post count: 66

Hello,

Well, if you just tell me where to place it, there is no issue my brother.

In the article bottom ad? Ofcourse my Adsense code is there. You want me to place it below my Adsense code?

Post count: 35449

Hi,

Yes, you can set the code above or below the Adsense code, also that is a custom code and I do not know if you simply set it in the theme files will work, did you use before that code? if yes, where you set it, from where you get that code?

Thank you!

Post count: 66

I placed the code below and above the Adsense code, but it doesnt work.

I have the code from here: https://www.tickcounter.com/countdown/1537321/disney-plus-lancering?utm_source=widget&utm_medium=referral&utm_campaign=widget

Post count: 35449

Hi,

I’ve just tested the code get from the link that you provide and for me is working -> http://prntscr.com/ppome2 -> http://prntscr.com/ppomtr pelase try to take the code again and try like in my example.

Thank you!

Post count: 66

No result. I tried to remove the Adsense code first and now its working. So it dont work with Adsense code in the box.

Post count: 35449

Hi,

Please set it above the adsence code in this way should work!

Thank you!

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