[英]Is there any way to customize embedded Twitter feed?
I'd like to add a simple text-based twitter feed to the footer of my website. 我想在我的网站的页脚中添加一个基于文本的简单Twitter提要。 From what I've read, you must generate the code for the feed through twitter, but the customization options seem extremely limited. 根据我的阅读,您必须通过Twitter生成供稿的代码,但是自定义选项似乎极为有限。 Is there another way possible? 还有另一种可能吗? This is the result I currently have: 这是我目前拥有的结果:
http://www.charissasantos.la/mezcaleria.html http://www.charissasantos.la/mezcaleria.html
I'd like to change the background, decrease the height, remove the username photos, etc. 我想更改背景,降低高度,删除用户名照片等。
You can try this Javascript library, which lets you add custom CSS to the twitter embed widget. 您可以尝试使用此Javascript库,该库可将自定义CSS添加到twitter嵌入窗口小部件。 https://github.com/kevinburke/customize-twitter-1.1 https://github.com/kevinburke/customize-twitter-1.1
You can inject your css into iframe: 您可以将CSS注入iframe:
resources (twitter iframe)
$(window).on('load', function() {
$('#twitter-widget-0').contents().find('head').append('<link href="http://website.com/style.css" rel="stylesheet" type="text/css" />');
});
may be this help you 可能对您有帮助
Here is a sample code and demo you can use for search in twitter 这是示例代码和演示,您可以在Twitter中进行搜索
http://www.codexworld.com/create-custom-twitter-widget-using-php/ http://www.codexworld.com/create-custom-twitter-widget-using-php/
you can also look into this examle may be this will full fill your requirement . 您也可以查看此示例,这可能会完全满足您的要求。 http://dev.kim-maida.com/twitter/ http://dev.kim-maida.com/twitter/
here is demo code and code sample link. 这是演示代码和代码示例链接。 https://github.com/kmaida/twitter-timeline-php https://github.com/kmaida/twitter-timeline-php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.