WordPress.org

Forums

Welcome User Widget
[resolved] Center the greeting? (10 posts)

  1. jcervantes28
    Member
    Posted 11 months ago #

    Hello,

    Great plugin! Exactly what I needed.

    How can I center the text of the plugin so that it appears in the middle of the widget area? Not sure how to center via PHP or how to add a CSS class to it.

    Thank you,
    Jose

    https://wordpress.org/plugins/welcome-user-widget/

  2. Jose Castaneda
    THEME COFFEE MONKEY
    Posted 11 months ago #

    Through CSS you can try:

    .widget.widget_display_username {
        text-align: center;
    }
  3. jcervantes28
    Member
    Posted 11 months ago #

    @Jose, it worked!

    Thanks! How did you find what class to use?

    Jose

  4. Jose Castaneda
    THEME COFFEE MONKEY
    Posted 11 months ago #

    Core markup; WordPress uses a default .widget class and it also uses .widget_{$widget_name} in addition to that.

    You're welcome. :)

  5. jcervantes28
    Member
    Posted 11 months ago #

    @Jose, ahhh good to know. I have to read up on the wordpress codex from start to end...I kind of refer to it as issues arise....

    Thanks for the help!!

    Jose

  6. Jose Castaneda
    THEME COFFEE MONKEY
    Posted 11 months ago #

    No problem! I like reading both the codex and the files to see how it's all processed. :)

  7. jcervantes28
    Member
    Posted 11 months ago #

    I really enjoy it too, but hate dealing with troubleshooting when i don't understand what caused something :(

    Is there a wordpress book you've referenced to learn more or simply just codex online?

    Jose

  8. Jose Castaneda
    THEME COFFEE MONKEY
    Posted 11 months ago #

    Codex for examples and the actual code to really get an idea of how data is manipulated, processed. As for books, the bible, plugin dev design and dev are good. I've only skimmed through most of them when I was at Barnes & Noble. The authors are the key since those are the ones I know, know their shtuff. :D

  9. jcervantes28
    Member
    Posted 11 months ago #

    Thanks for the recommendations.

    See you around!

    Jose

  10. jcervantes28
    Member
    Posted 11 months ago #

    Thanks again all--resolved

Reply

You must log in to post.

About this Plugin

  • Welcome User Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags