beatngu Posted April 2, 2010 Share Posted April 2, 2010 Hello allI just installed the rss feed block,a great module!!But i want to edit it abit,is it possible to use a rss icon on the text field on the rss block.Default it says RSS feed,but i want to add a icon before the text any clue on how to do this anyone?Regards beatngu Link to comment Share on other sites More sharing options...
rocky Posted April 3, 2010 Share Posted April 3, 2010 I added an RSS icon to my RSS block before I decided to remove it. I added the following code before <ul> in modules/blockrss/blockrss.tpl: > </pre> <ul> Subscribe to RSS Feed </ul> then I added the following to css/global.css: div#rss_block_left li.rss { background: url(../../../modules/blockrss/rss.gif) no-repeat 0 2px; padding-left: 22px; } Then I create an RSS icon modules/blockrss/rss.gif. Now that I think about it, perhaps I should have put that icon in the theme's img directory. Anyway, I hope this helps you. Link to comment Share on other sites More sharing options...
beatngu Posted April 3, 2010 Author Share Posted April 3, 2010 Thanks Alot,just what i needed Link to comment Share on other sites More sharing options...
beatngu Posted April 9, 2010 Author Share Posted April 9, 2010 The codes i got from you are working,just have a minor problem.I need to move the text and icon up to the text block of the rss "news" module.Now i have the icon and the txt in the news(cnet) block instead of the txt block.Actualy i think im using the wrong name its the text bar instead of the block sorry.I have 1 more question,when i searched for icons i found some cool free flash icons.Is it possible to add flash icons to text bars or blocks?Regards beatngu Link to comment Share on other sites More sharing options...
rocky Posted April 9, 2010 Share Posted April 9, 2010 In that case, you'll need to modify the module's code, since you can't assign two CSS background images to the text bar of a block. Change line 3 of modules/blockrss/blockrss.tpl from: {$title} to: {$title} Then you can use the following code to add the RSS icon to the text bar of the block: div#rss_block_left h4 span { background: url(../../../modules/blockrss/rss.gif) no-repeat 0 2px; padding-left: 22px; } It is not possible to add a Flash icon using CSS, so you'd have to add the Flash code to the first code snippet above after the . That is messier than using CSS though and it is likely that the alignment of the text will get messed up. Link to comment Share on other sites More sharing options...
beatngu Posted April 10, 2010 Author Share Posted April 10, 2010 Thank you for taking the time,to explain :cheese: This is helping me alot on how to edit and replace codes.Ill make a new post since i have some questions about flash and html5. Link to comment Share on other sites More sharing options...
Recommended Posts