Thanks Simion, that worked perfectly on my laptop, but not on mobile. How to get it fixed on mobile too?
Also, i enter a css code after each update to remove a black flash in my menubar. Can i add the code also to the custom css field, so that i wont have to add it every time after each update?
This is the code:
@media (max-width: 767px) {
.td-header-wrap .td-header-menu-wrap-full,
.td-header-wrap .td-header-menu-wrap,
.td-header-wrap .td-header-main-menu {
background-color: #fff !important;
height: 54px !important;
}
.header-search-wrap .td-icon-search {
color: #fff !important;
}
Please provide a link to your website so I can see the issue and inspect it, the code should work on both desktop and mobile. If you use the mobile theme enter it in the mobile theme custom code dedicated section as well.
You can add any code in the custom code sections of the theme panel, in the child theme stylesheet or directly in the theme stylesheet.
Thanks
Here is the link Simion.
So when i add the code to the custom CSS part in the theme panel it will work, also after an update?
For me the Like is displayed in English, I have tried to change it as you mention
– https://www.screencast.com/t/08G6z680X
Seems to work on desktop – https://www.screencast.com/t/mrsklJspC
And on mobile as well – https://www.screencast.com/t/UZ7behFArict
Code entered in the theme panel will be saved in the database, so this is considered a safe way to use custom code. It will not be lost after a theme update.
Hey Simion,
I think it works fine now, indeed. Thank you.
So i can just paste the @media code i posted above in the custom code section and then after an update i dont need to paste it in manually again?
I also have a custom designed Adsense ad above the article title on mobile. See here: https://www.dagonline.nl/antillen/toekomst-insel-air-onzeker-na-uitvallen-toestellen/ Can i paste that code also in the custom code section to show up again after an update
Thanks!
Hi,
Yes that is the case, enter the CSS code in the theme panel and it will be saved in the database.
I don’t exactly now how you implemented that ad above the article title. If you made modifications to the post templates directly or any main them files, and inserted the ad code there, then the modifications will be lost after a theme update.
In this case you can create a child theme, and modify the post templates or supported theme files through it
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks
Ok Simion. Thanks!
I entered the below code in the CSS panel and i get a red error cross saying: Expected RBRACE at line 100, col 4. What is this?
@media (max-width: 767px) {
.td-header-wrap .td-header-menu-wrap-full,
.td-header-wrap .td-header-menu-wrap,
.td-header-wrap .td-header-main-menu {
background-color: #fff !important;
height: 54px !important;
}
.header-search-wrap .td-icon-search {
color: #fff !important;
}
This is the ad code Simion. It’s added to single.php file. So when I copy this CSS code in the theme panel, is it also gonna be saved and come back after an update?
Code<div class="adh">
<div class="wpb_raw_code wpb_content_element wpb_raw_html">
<div class="td-g-rec">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Ad boven titel -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-6504940155773250"
data-ad-slot="9561713763"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
That error is displayed because the code is missing a closing brace
– https://www.screencast.com/t/xoJHwGkvTy
– https://www.screencast.com/t/ibOFfGgodAw
However that code may not be necessary anymore, try to remove it and check the results. If it is needed, leave it in the theme panel custom CSS section. It will not be lost after a theme update. Nothing from the theme panel will be lost. You can even make backups of the theme panel like this
– https://forum.tagdiv.com/import-export-theme-settings/
Regarding the post template modification, if you want to modify theme files without losing the changes, you will have to use a child theme
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Such code modifications cannot be made in the theme panel, only directly in the theme files, or through a child theme. Check the guide, it is mentioned there which files can be modified through it.
Thanks
Thanks!
Its no longer needed because it was already their, right? I had already placed it manually before. But i need to leave the code in the theme panel in case im updating the theme. Right? So why you say try to remove it? 🙂
Ahaa i see what you are saying. Thank you!
Hello Stinus V,
Yes, after each update, all of your additional customizations will be lost if you will never make a full backup to your database. Notice that when the theme is updated, all the actual code of the theme will be overwritten by the new update. In this case, if you want that your additional customization to be there after theme update, you should use the child theme and add there all of these changes.
Thanks for your understanding!
What my colleague recommended is a general advice, for safety one should make periodic website backups
– https://codex.wordpress.org/WordPress_Backups
I mentioned many times above, code entered in theme panel custom sections will not be lost. It will be saved in the database. Of course if anything was to happen to the database then it will be lost. Only modifications to the theme files directly will be lost after an theme update. Hopefully this will clear things up.
Hi, I have the same question as TS, only your provided CSS code `.td-post-sharing-classic iframe {
width:auto!important;
}`
does not work in my case.
I already tried de-activating all plugins, and also all plugins except the tagdiv ones, and both make no difference. It still happens. So it is not a plugin causing this.
I also removed all custom css code, makes no difference – like button still gets cut off. So I did not create a conflicting css addition either.
A link to a post that shows the like button getting cut off is here – above the article as well as below it is a like button.
I did add above mentioned code to the Theme Panel Custom Code CSS section. No errors are shown there.
Do you have any ideas on how to “widen” the like button so it shows all text and numbers?
-
This reply was modified 5 years by
FiekeB.
Hello !
We can take a look to see what the issue might be there. Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– A link to this topic in order to identify you
Our team will take a look !
Thank you !

