Title: Brands logo alignment
Last modified: January 20, 2021

---

# Brands logo alignment

 *  [ohmsoffers](https://wordpress.org/support/users/ohmsoffers/)
 * (@ohmsoffers)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/)
 * Hi there,
    I added the snippet to add brands to the product pages, and I cannot
   for the life of me figure how to have the alignment/margin automatically centered
   down the text. It is easier to show images of what I am trying to achieve, I 
   have got as far as editing the margins in inspect element, however, making the
   changes permanent is a whole different board game. This is what I am looking 
   to achieve: [https://1drv.ms/u/s!AtfTU9oluVzWg98Z1AmyeCAmBYkxkw?e=OrLVyr](https://1drv.ms/u/s!AtfTU9oluVzWg98Z1AmyeCAmBYkxkw?e=OrLVyr)
 * I did this by setting one of the margins to 30px, though that value for the same
   effect would differ by brand.
    -  This topic was modified 5 years, 4 months ago by [ohmsoffers](https://wordpress.org/support/users/ohmsoffers/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbrands-logo-alignment%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/#post-13936024)
 * Hello,
    Because of the way the image is added, it would be impossible to center
   it vertically for all brands if they have a different description length.
 * I see that you added inline style for the image for this brand. I recommend adding
   the margin in that inline style for each image, so that you can manually change
   the value singularly.
 *  Thread Starter [ohmsoffers](https://wordpress.org/support/users/ohmsoffers/)
 * (@ohmsoffers)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/#post-13937290)
 * Hiya, I am a complete novice, would you be able to provide information/links 
   on how to achieve this?
 * Many thanks!
 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/#post-13941070)
 * Hello,
    How do you add the brand image and content? Is it from a panel in your
   Dashboard? If so, does it come from a plugin or the theme?
 * In any of these 2 cases, I’d recommend contacting the theme/plugin author for
   further help.
 * If it’s you manually adding images and content instead, you can use the `style`
   attribute on your image like it’s done on the example link you sent to add a `
   margin-top` that will center the image vertically.
 *  Thread Starter [ohmsoffers](https://wordpress.org/support/users/ohmsoffers/)
 * (@ohmsoffers)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/#post-13948485)
 * Hiya, so I have the brand images sourced from the plugin, they are uploaded to
   the corresponding brands, and the brand image and description is added to pages
   using:
 * add_action( ‘woocommerce_single_product_summary’, ‘wc_ninja_add_brand_to_product_page’,
   19 );
    function wc_ninja_add_brand_to_product_page() { echo do_shortcode(‘[product_brand
   width=”74px” height=”74px” class=”alignleft” padding-top=”50px;]’);
 * }
 *  Thread Starter [ohmsoffers](https://wordpress.org/support/users/ohmsoffers/)
 * (@ohmsoffers)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/#post-14005081)
 * I should clarify further, I have that code added to a plugin called snippets.
 * I have been experimenting to see if I can achieve what I want, essentially it’s
   something like this:
    .wc_ninja_add_brand_to_product_page .img { margin: 25px
   15px 20px 0; }
 * But however, I imagine it’s not working because I am doing a lot wrong there.
   I added that both to the snippet and additional CSS, however none of which worked

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

The topic ‘Brands logo alignment’ is closed to new replies.

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

 * 5 replies
 * 2 participants
 * Last reply from: [ohmsoffers](https://wordpress.org/support/users/ohmsoffers/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/brands-logo-alignment/#post-14005081)
 * Status: not resolved