Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #266454

    Andrew
    Participant

    Hi,

    I installed the “amr shortcode any widget” plugin so that I can embed the default Tag Cloud widget onto my homepage using a shortcode. It worked out perfectly, and is stylized exactly the same, which is great. The only thing I can’t seem to figure out how to do is center the tags. I think this may be something to do with the default widget or the X Theme, and not the plugin.

    Would you be able to tell me how to center them?

    Thank you.

    #266456

    Andrew
    Participant
    This reply has been marked as private.
    #266606

    Lely
    Moderator

    Hello There,

    Thanks for giving us your site URL. To center tag clouds, please add the following code in your Customizer via Appearance > Customize > Custom > CSS:

    .tagcloud{
      text-align:center;
    }
    .widget_tag_cloud .tagcloud a, .widget_product_tag_cloud .tagcloud a{
      float:none;
    }

    Hope this helps.
    Thanks.

    #266638

    Andrew
    Participant

    That is PERFECT for the homepage. Is it possible to center them for that space but keep them aligned left in the footer widget? If it is too complicated then don’t worry about it, since it isn’t a big issue for me at all.

    Thank you!!!

    #266752

    Darshana
    Moderator

    Hi there,

    Use the following CSS rule instead.

    
    .entry-wrap .x-container .tagcloud {
        text-align: center;
    }
    

    Hope that helps.