LIKE button not fully displayed

Posted in: Newspaper
Post count: 103

Hello,

My Facebook LIKE button is always cut off and not fully displayed. With 3 digits, 1 digit is halfly cut off. Now it hits 2K (2 duizend in Dutch) and only 1 letter from the word ‘duizend’ is visible.

Please help. Thanks.

Post count: 20685

Hi,

The allocated initial width may be insufficient for certain translation. Please try a code like this to increase the space, check if it works properly

.td-post-sharing-classic iframe {
width:auto!important;
}

Thanks

Post count: 103

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;
}

Post count: 20685

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

Post count: 103

Here is the link Simion.

https://www.dagonline.nl/nederlandse-antillen/nederlanders-op-curacao-starten-petitie-tegen-geluidsoverlast/

So when i add the code to the custom CSS part in the theme panel it will work, also after an update?

Post count: 20685

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.

Post count: 103

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!

Post count: 20685

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

Post count: 103

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;
}

Post count: 103

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>

Post count: 20685

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

Post count: 103

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!

Post count: 103

Is this correct?

Post count: 23312

Hello Stinus V,

Notice that any type of changes you have made using the CSS code, after an update, it will be lost. You can try using the child theme because the main theme will overwrite the whole code of the theme.

Thanks for the message!

Post count: 103

Hey Catalin,

I am talking about the CSS code added to the theme panel.

Please look at my @media code above in this topic. When I enter this code to the theme panel, it will reappear after an update. Right?

Post count: 23312

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!

Post count: 103

I don’t get it. Any custom code you enter in the theme panel manually will be saved. Now you telling me my code is gone?

Post count: 20685

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.

Post count: 103

Ahaa clear! Thank you Simion!

Post count: 7

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.
Post count: 18283

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 !

Viewing 21 posts - 1 through 21 (of 21 total)
You must be logged in to reply to this topic.