WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
[resolved] Edit the width of statistics page (for 100%) (4 posts)

  1. latinosamorir
    Member
    Posted 11 months ago #

    Hello.

    I'd like to make the width of the charts 100% of the div.

    I know they're hard coded in the statics page but via a function ... any idea how to pass 100% instead of a pixel value?

    Thanks

    https://wordpress.org/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 11 months ago #

    You would also have to change the function render_base_HTML in the Football_Pool_Charts class. Because that function renders the supplied with as a px-value.

    p.s. Development version already has this option. You can use that code as an example, or wait for the new version.

  3. latinosamorir
    Member
    Posted 11 months ago #

    Thank you!

    Much better and responsive!

  4. AntoineH
    Member
    Plugin Author

    Posted 11 months ago #

    Yep, I agree. That's why I decided to change it. The next version will be responsive by default (on new installs).

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.