Since one of the latest WordPress versions it is possible to embed an post in another post, by just inserting the link. But using Newspaper this looks pretty ugly on mobile. (The embedded post does not resize). Any ideas for custom css to make this embed’s responsive?
Thanks
Hello loano1,
If you want to have it as responsive for all devices, please try the code below and add it in Theme panel->Custom CSS area.
The code is ->
.wp-embedded-content {
width:100%!important;
}
The result you should see here -> http://screencast.com/t/V0rIRzjlMZ
Thank you for the message!
Hi Catalin,
thanks for your code, it works perfect for the responsiveness. But on mobile, I see pretty strange symbols in the article preview. See here: https://www.dropbox.com/s/iyjhhaypksewxjz/Strange%20Font.png?dl=0
Do you know a solution for this as well? Link to the article: http://starzip.de/louis-tomlinson-baby
Thanks, Loano
-
This reply was modified 10 years by
David.
Hi,
As you know this is a new wordpress feature and it seems that it doesn’t render some strange characters, you can check this also with a default wp theme and I guess they don’t use escape for embed content – https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data#Escaping:_Securing_Output
Catalin added this on our list to make it responsive on our theme and I also add this issue for future investigations, but I think we don’t alter this and it comes from wordpress, please check the same articles on a wp theme.
Let’s hope that soon it will work properly and we also will investigate this and do some tests and if it is necessarily to change something in our theme, we will do it.
Thanks!
Hi Alin,
I just did a bit of research on wordpress.org and found this: https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/
(It looks like the their embeds in this post are working proper)
What the tell is “For security, embeds appear within a sandboxed iframe – the iframe content is a template that can be styled or replaced entirely by the theme on the provider site”
Thanks for investigating this.
Hi,
A link to this topic is added on our list and the developers will consider this for future theme updates and see what is the best solution for the theme to support/implement this wordpress feature.
Thanks for your suggestion!
Hi Alin,
Any update on the embed internal links issue? Has it been fixed with Newspaper 7? With the latest 6…. version this issue still exits. In the meantime we have many posts looking really ugly. As soon as the featured image of a post contains “䔔Ĕ”ö””Ö” or “ü””Ü” also the picture breaks.
See here:
1: https://www.dropbox.com/s/uaxwh9zefxt0dmn/Internal%20linking%20issue.png?dl=0
and
2: https://www.dropbox.com/s/36llkfx7tlsm3oq/Internal%20linking%20issue%202.png?dl=0
Links for testing:
1: http://starzip.de/alle-meine-frauen-2015-meri-hatte-eine-affaere
2: http://starzip.de/dsds-2016-jury-bei-dsds
Thanks,
David
Hi,
I have checked into this again and saw that your embeds no longer have the issue: http://screencast.com/t/9SA6ruirWOEd
If i embed the posts you provided in newspaper 7, the problem is not present. it could have been fixed by wordpress 4.5.2?
http://screencast.com/t/Bv5zeBeJxZV
Please double check this issue and see if you still have trouble with it as I cannot see it anymore. it seems to work properly now.
Thank you!