WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Tagcloud - multiple word tags on a single line (5 posts)

  1. rileym
    Member
    Posted 3 years ago #

    I have been adjusting the appearance of the WordPress tagcloud and have the tags placed one after the other in a few horizontal rows, all contained in a div. However multiple word tags become split over two rows, if they come up against the restriction of the width of the div.
    Is it possible to force these multiple word tags (I have ones such as Concept Development) to go to a new row entirely - rather than be split across the two rows/lines?
    I would still like to keep the tags placed one after the other horizontally (rather than each one on a new line like a list) - however I would be grateful for any advice about how to stop the multiple word tags being split and instead for them to be forced to remain in the one line.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    try to add this style to style.css of your theme:

    .widget_tag_cloud a { display: inline-block;}

  3. rileym
    Member
    Posted 3 years ago #

    Thank you Alchymyth, grateful for your help.

  4. piralabsblog
    Member
    Posted 2 years ago #

    Can I get a readymade php code for this future?

  5. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    @piralabsblog

    the above solution is css; and should be added to style.css of your theme.

    what exactly is your problem?
    link to your site?

Topic Closed

This topic has been closed to new replies.

About this Topic