• Resolved Danny van Kooten

    (@dvankooten)


    Because MaxButtons hooks into wp_footer to print the button CSS, any button that is printed after wp_footer priority 10 runs is not styled.

    It would probably be best if the CSS rules are either printed inline whenever a button is printed for the first time on that page. Alternatively, the “print button” logic could check whether did_action( 'wp_footer' ) is true, and if it is it should inline print the CSS.

Viewing 1 replies (of 1 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi Danny,

    Your assumption is indeed correct.

    You can force buttons to display inline by adding the style attribute to shortcode like so:

    [maxbutton id=x style='inline']

    That should do the trick as well.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS not printed when button is in footer (wp_footer)’ is closed to new replies.