adding new custom blocks in tagdiv composer?

Posted in: Newsmag
Post count: 15

Hi,

I want to add new blocks to composer. I need a custom layout that isn’t present in composer.

Can anyone help me in guiding, how to add new blocks?

block

I tried to use td-api-plugin, but it is giving errors.

thanks

Post count: 35449

Hi GanaAdhikar,
First I suggest to try the flex block 1 and 2 -> https://i.imgur.com/HecGZeA.png, those have special option that allow you to create different layouts, after that you can simply save the shortcodes -> https://i.imgur.com/HMsArnD.jpg
I hope this will help you!

Post count: 32

Hello, I can’t create a new topic. I have weird spacing on mobile for my posts. There are big blocks of white space that I don’t want. I have not created these pages with tag div composer.

End of post spacing: https://imgur.com/a/qAn09D5
Beginning of post spacing: https://imgur.com/a/UDnj36M
Beginning of post spacing: https://imgur.com/a/rlkELt5

Post count: 35449

Hello,
That empty space is coming from AdSense -> https://i.imgur.com/LkNTKSH.png the problem is that you set a code (most probably auto ad code) more then once on the page -> https://i.imgur.com/SPEE1ge.png
Thank you!

Post count: 32

I am using the theme panel ads settings. Should I only put the google adsense auto code in the header box area? https://imgur.com/a/i75YzPv

Post count: 35449

Hi Bennettheyn,
Yes, if you set the google adsense auto code in the header ads section, then it will be display for the entire website.
Thank you!

Post count: 15

Hi,

The layout I want to achieve is not possible with flex blocks,

Kindly, let me know from where I can edit or add new blocks. it is important for me.

thanks

Post count: 35449
Post count: 32

I don’t have ads showing up inside my content? How do I fix this? I only have some ads at the top of my blog and at the bottom. My site is parker-marker.com.

Here is an example blog post https://parker-marker.com/blogs/furniture/patio/best-pergola-kits/

Post count: 35449

Hello,
Using the Newsmag theme you can set in the post content 3 ads, 1 at the beginning, 1 in the middle and one at the end of content -> https://i.imgur.com/lkstDBn.png
You can check more in our guides from here -> https://forum.tagdiv.com/newsmag-header-ads/ -> https://i.imgur.com/8Kt7sCG.png
Thank you!

Post count: 32

If I do this, then should I get rid of the header ad? I think I had this but then it was showing some weird blocks of white space

Post count: 35449

Hello,
The header ad will be display in the header for entire website. If you do not want it there for entire website, then yes, you can remove it.
Thank you!

Post count: 32

Thanks! Also, I was never able to get ads to show up on my sidebar for posts. Using widgets didn’t work since I could only use the ad tag div widget through the tag div composer which is only available on pages.

Here’s all the available space I am talking about: https://imgur.com/a/MsDlIcI

How can I add my adsense code to show up here in the sidebar? Thanks again

Post count: 35449

Hi Bennettheyn,
Your sidebar is empty. You can add there elements using the widget section, for example create a sidebar and assign in it the elements you need -> https://i.imgur.com/mQWRdEd.png (including ads, for those use the ad box element and choose the source of the ads, usually the code is set in sidebar ads section -> https://i.imgur.com/ewkjy2a.png -> https://i.imgur.com/DjsUZ1J.png
After that just assign that sidebar as global for all posts -> https://i.imgur.com/j3yiBoW.png
I hope this will help you!
Thank you!

Post count: 32

Hi, could you elaborate on “create a sidebar and assign in it the elements you need”.
Do I just add [tagDiv] Ad box?
Here’s what I made:
https://imgur.com/0xW3hd9
I used the adspot from sidebar.

Here is the code from sidebar:
https://imgur.com/a/204kSMY

I assigned it as global for all posts:
https://imgur.com/a/sWps5XE

but it’s still showing as blank. How long will it take for google adsense to update it and start to show ads there https://imgur.com/a/bU4AgCa

Post count: 35449

Hi,
The code that you have set in the sidebar ads is an auto ads code from AdSense. That code should be set only once between head tags. In our theme it can be set in this place -> https://i.imgur.com/84RcrIu.png
Thank you!

Post count: 32

ok. I manually made a sidebar ad and put it in the sidebar area. https://imgur.com/a/vFgBCao

I may try that for a few days and see if it works and then try setting the auto adsense code in a new area and see if that works better

Post count: 15

hi,

are there any video tutorials to add new blocks?

thanks

Post count: 35449

Hi GanaAdhikar, unfortunately there are no video tutorials for this, sorry!

Post count: 15

Hi,

I added a new block copying block 1 in td api plugin. Named it td_block_17 in php file.

Changed name of block in td-api-plugin.php.

The name is displayed in td composer. But, when I try to add it to a column. it shows just a spinner. it keeps loading and loading.

please check image below:

spinneronly

Kindly, tell me what is going on.

FYI, same thing happens, when I try to add the custom flex block that comes in td api plugin without any modification.

I am using td api plugin which comes with newsmag 5.

thanks

Post count: 35449

Hi GanaAdhikar,
Can you please check the browser console? I believe that there is an error displayed when you set the block 77.
Also, was this working the first time?
Thank you!

Post count: 15

Hi,

No, it wasn’t working anytime.

please check the image attached below, I am getting this error.

error

thanks

Post count: 35449

Hi,
That error is complaining for the header style form the block, I believe is this section -> https://i.imgur.com/4BaFzgI.png
I think the errors are from block 77, if you want we can take a look at it.
Thank you!

Post count: 15

hi,

sure, web address is:

https://byb.eum.mybluehostin.me/

you can download td api plugin used by me on link below:

td api plugin

thanks

Post count: 35449

Hi,
Thank you for sharing the td api plugin, I will check it and come back later with a fix.
Thank you!

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