WordPress.org

Forums

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

  1. jcervantes28
    Member
    Posted 1 year 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. Through CSS you can try:

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

    @Jose, it worked!

    Thanks! How did you find what class to use?

    Jose

  4. 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 1 year 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. No problem! I like reading both the codex and the files to see how it's all processed. :)

  7. jcervantes28
    Member
    Posted 1 year 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. 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 1 year ago #

    Thanks for the recommendations.

    See you around!

    Jose

  10. jcervantes28
    Member
    Posted 1 year ago #

    Thanks again all--resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags