Hello
1 – So we have started to display category banners as seen in the image. https://pasteboard.co/IPUxsMD.png
But, I want to display 2 different language based on the language of the category page. For example, same banner in Turkish and same banner in English. We achieve this on the widgets with WPML’s language switcher option on each widget. Also, we achieve this on the header banners by translating the banner areas in the WPML’s string transltion option.
I know we can also achieve this using theme panel’s custom ad box options, right after transating the custom ad bars via WPML’s string translation. But so far there’are only 5 custom ad box available and the amount we need is about 15. Is there a way to increase custom ad box number in the theme panel
We use, cloud templates for the category page displays and use such code as below to track the banners
In which way I should place the banner and its code so that I can display 2 different banners
2 – We have some issues also with diplaying widget side bar. There are strange gaps and view issues on the same category page…It is hard to explain therefore understanding will be easier with pictures
https://pasteboard.co/IPUHPCC.png
https://pasteboard.co/IPUHZ3AE.png
Thank you in advance
Hello !
For the first option please contact our custom work team since this is custom work and is not covered by the support team: https://tagdiv.com/premium-customization-services/
In order to have different templates depending on the language you use simply create 2 identical Category templates and set them depending on the language you use: https://forum.tagdiv.com/cloud-library-category-templates/
Here is an example: Select english and set the english template: https://prnt.sc/qnxc84 ; After that select French and set the category template for french: https://prnt.sc/qnxcg6
You will have to use adbox elements from TagDiv Composer.
I hope this was helfpul !
Thank you !
Hi Vlad
Thank you. If I create 2 identical category templates to show 2 different custom ad box based on the language, do I have to also create another side bar for the related category in order to show the language preferred banners on the right side?
Is there a way to bulk change the single post templates?
For the second question. please see the image how we display the widget side bar banners based on their language. https://pasteboard.co/IQ3Qs7a.png
This css issue is the result of not using adbox elements?
I just checked the tagdiv ad box for side bar banners, so we also have to duplicate post templates for 2 languages to manage side bar banners?
https://pasteboard.co/IQ40edN.png
https://pasteboard.co/IQ40kHIr.png
So I have gone and duplicated 1 category template. assigned it to the necessary language category. I removed widget side bar and placed tagdiv adbox, used custom code. Still strange gap from top is there…I removed adbox..replaced it with raw html. placed the custom banner url…issue is still the same.
Hello !
Please provide a link to your website and show us a picture of where the gap is in order see if we can fix it with CSS.
If your page was created using tagDiv Composer you will be able to edit it yourself as you can see it here: https://www.screencast.com/t/XfXrh0jep
I hope this was helpful !
Thank you !
Hi Vlad
Yes, we only use td composer. Please go to this link spinning and switch languages you will see the difference
Also please go to this link printing and switch languages. You will see different gaps between the widget banners.
As you can see in the composer, there’s no any reason for the item to be pushed down or add strange gap between the items. They are all level in the composer. https://pasteboard.co/IQcBYHV.png
Hello !
Please add those 2 codes here: .tdi_62_90e .td_block_wrap .widget {
margin-bottom: 0px;
}
.tdi_64_6ee,.widget {
margin-bottom: 0px
}
The code must be inserted here: https://www.screencast.com/t/J1Nxw5s5
I hope this was helpful !
Thank you !
Hi Vlad
Code works perfect, thanks a lot for your help. Also could you please reply those questions?
If I create 2 identical category templates to show 2 different custom ad box based on the language, do I have to also create another side bar for the related category in order to show the language preferred banners on the right side?
Is there a way to bulk change the single post templates?
Hello !
Unfortunately you will have to do this manually and you need to create 2 sidebars. The easiest way I personally say that would be to add ROWs which can have the layout changed to a content + sidebar so you can add your own elements in it. You will have to use tagDivComposer in order to edit your category template: https://www.screencast.com/t/UqZmeBDYKWO4
I hope this was helpful !
Thank you !
Hello Vlad
As you guys suggested, I have imported a pro single post template, duplicated it for secondary language. Translated the necessary texts in td composer but the translations still don’t apply.
https://pasteboard.co/ISlhec3.png
https://pasteboard.co/ISlh6qy.png
Hello !
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cPanel url and credentials
– A link to this topic in order to identify you
Our team will take a look !
Thank you !
