WordPress.org

Ready to get started?Download WordPress

Forums

WP RSS Multi Importer
[resolved] Customize style of widget (13 posts)

  1. Seliest
    Member
    Posted 1 year ago #

    Hi,

    It's a great plugin, thanks. I am trying to customize the widget style, but can't manage to do it (my php skills are limited). In particular, I would like to change the color of the widget title and perhaps the layout of the feeds. In the widget options, I can only change the background color. And if I try to modified the echoed variables in the code ($title), I don't get the results I want. Is there an easy way to customize the widget style (at least the colours, background of title and alignment)?

    Thank you

    Seli

    http://wordpress.org/extend/plugins/wp-rss-multi-importer/

  2. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    Hi
    If you give me a link to the page where the widget runs I may be able to find a CSS solution for you.

    Allen

  3. Seliest
    Member
    Posted 1 year ago #

    Hi Allen,

    Thanks for the very quick reply. My site is restricted access for the moment, so I would need to have your IP to open it for you or at least an email address. Thanks.

  4. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    Ok..the easiest way to change the widget style is to use CSS....i.e., go into the template.css file, and add this, for example:

    .news a {
    color: black;
    }

    and the titles in the widget should turn black. Using the same idea, you can change some of the look of the widget.

    If you want to contact me, go here:

    http://www.allenweiss.com/contact

  5. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    I sent you an email on how to change the widget title. Did you not get it?

  6. Seliest
    Member
    Posted 1 year ago #

    Hi Allen, I got your email and I replied to it about 10 mins ago. What you suggest works fine for changing the titles of the feeds but not the widget title. What I need is to change the style of the general title of the widget (i.e. "RSS Widgets" or "Blog Roll" or whatever).

    Can I ask you something else: is there any way to make your plugin discard any feed that is not in English?

    Many thanks.

  7. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    I sent another email where you use

    .widgettitle{

    }
    Or something like that (the specifics are in the 2nd email. It's not clear how to discard automatically feed based on language. That must be handled by the user not entering non English feeds

  8. Seliest
    Member
    Posted 1 year ago #

    Sorry, I missed your second email. I have tried with .widgettitle , even setting it as !important, but it doesn't work.

  9. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    hmm..then you must be doing something...here is what I've done..I put this in the template.css file:

    div.news a{
    color:green; /* change to any color you want for the feed item title */
    }

    .widgettitle{
    color:blue; /* change to any color you want for the wdiget title */

    }

    and this is how it looks on my page

    http://www.allenweiss.com/test2

  10. Seliest
    Member
    Posted 1 year ago #

    Hi Allen,
    I don't know what I'm doing wrong, but I have moved your code from the template.css to the main style sheet of the theme and there it works to change the title of the ajax widget from my theme, but not the title from your widget. I guess there is some kind of conflict between the two. But I have tried to specify the style with div.news widgettitle {color:blue;} and still the title of your widget doesn't change.

    Could you tell me where is the title echoed so that I can add a span tag with an additional style?

    Thanks

  11. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    this is the file of the widget
    rss_multi_importer_widget.php

    unless you're running an old version of the plugin, you should be able to change the widget title using css since the title, etc has classes on it. I would use firebug to see what to change and if there is a conflict.

  12. Seliest
    Member
    Posted 1 year ago #

    Hi Allen,

    Yes, I know it's rss_multi_importer_widget.php, but where exactly is the titled echoed? Before contacting you, I tried to directly add css tags to these lines:

    echo $before_widget;
    if ( ! empty( $title ) )

    echo $before_title . $title . $after_title;

    But it does weird things and never changes the title of the widget, only the titles of the posts.

  13. Allen
    Member
    Plugin Author

    Posted 1 year ago #

    depending on whether there is a title entered the line i 62 in that file...the easiest way to handle this is let me see the page, I can use firebug to see exactly how to change it...use the contact email you used yesterday if that's what you need.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.