Title: Button alignment
Last modified: December 10, 2020

---

# Button alignment

 *  Resolved [Naomi Blindeman](https://wordpress.org/support/users/naomiblindeman/)
 * (@naomiblindeman)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/)
 * Hello, thank you for this easy and pretty plugin.
    When I use your button block
   and I choose alignment Right, it works on the individual post or page, but it
   doesn’t always work on the blog or category page, see for an example the link
   I’ve added, and I don’t understand what I’ve done differently there. I’m using
   GeneratePress (Premium) as my theme and I’ve set blog layout to show the entire
   content. On the home page of that site, I’m showing those same two posts with
   WP Show Posts (Pro) and the buttons don’t take any alignment there at all, but
   maybe I should put that in the WP Show Posts forum? I’ve also set that to show
   the whole content. I’ve added some CSS through Simple CSS (haha I’m sensing a
   theme here) and I turned that off to be sure and that didn’t fix the problem.
   Anyway, if the answer is “Add some CSS,” no problem, I can do that, but if it’s
   a setting in the buttons block I did or didn’t set, I would love to know! Thank
   you, Naomi
 * EDIT: I just switched the posts and that also switched the problem, that is to
   say: on the page I linked the post that had the button on the left instead of
   the right is now the other post. So it might be an interaction between the theme
   and the plugin. Anyway, not sure this was helpful, but this is all I have.
    -  This topic was modified 5 years, 5 months ago by [Naomi Blindeman](https://wordpress.org/support/users/naomiblindeman/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbutton-alignment-16%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13776581)
 * Hi there,
 * what happens if you go to the GenerateBlock settings and change the CSS Print
   Method to Inline ?
 *  Thread Starter [Naomi Blindeman](https://wordpress.org/support/users/naomiblindeman/)
 * (@naomiblindeman)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13776836)
 * Thank you for your response!
    That did not change anything. What’s weird too 
   is that the line (of CSS with justify-content:flex-end) actually doesn’t seem
   to be there (maybe I’m not looking right?), as opposed to being overwritten. 
   It’s there for one button but not the other and if I switch the order of the 
   posts, the button that gets that line of CSS switches too and the other one just
   seems to disappear.
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13779363)
 * Hi there,
 * This could be that the CSS generation is having trouble with the loop – I’ll 
   have to do some testing there.
 * Just to confirm, what happens if you change the color of the second button? Does
   that color take effect?
 *  Thread Starter [Naomi Blindeman](https://wordpress.org/support/users/naomiblindeman/)
 * (@naomiblindeman)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13788166)
 * I am so sorry for my slow reply! I was away from my computer this weekend.
    I
   gave each of them a different color (blue, pink) and the first post (the left
   one) gets its color, the right one does not on the blog category page. If I change
   the order of the posts, this switches again. So either the left is blue or it
   is pink, but the right has no color either way. In the WP Show Posts list on 
   home neither color is shown.
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13794378)
 * That pretty much confirms my suspicion – thanks!
 * I’ll need to debug this to see if it’s possible to run our CSS generation in 
   a loop – it could be a pretty substantial issue that needs addressing in a feature
   release vs a patch.
 * Will get back to you once I know 🙂
 * Thanks!
 *  Thread Starter [Naomi Blindeman](https://wordpress.org/support/users/naomiblindeman/)
 * (@naomiblindeman)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13800628)
 * Good to know Tom and easy to fix with some CSS in the mean time.
    Thank you!
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13810110)
 * No problem – thanks again for letting me know.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Button alignment’ is closed to new replies.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)

 * 7 replies
 * 3 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/button-alignment-16/#post-13810110)
 * Status: resolved