• Resolved ttc2003

    (@ttc2003)


    Hi,

    I use the Tag groups plugin and theme roller displays my tags as follows:
    Now:
    Tag1 * Tag2 * Tag3 * Tag4 etc..

    I want to show each tag under the one before.
    What i want is:
    * Tag1
    * Tag2
    * Tag3
    * Tag4
    etc..

    I tried to put an /n or /r command in my code right behind the separator sign, but this isn’t working.

    <?php if ( function_exists( 'tag_groups_cloud' ) ) echo tag_groups_cloud( array( 'include' => '1,2,3,4,5', 'tags_post_id' => 0, 'hide_empty_tabs' => 1, 'smallest' => 12, 'largest' => 12, 'separator' => "?", 'separator_size' => 18 ) ); ?>

    I want an linefeed after every tag. Is this possible and how?
    THX Freek

    https://www.ads-software.com/plugins/tag-groups/

Viewing 14 replies - 1 through 14 (of 14 total)
  • You could try to define a class like

    'div_class'=>'tag-class'

    and then style the tags:

    .tag-class span {
    display:block;
    }
    Thread Starter ttc2003

    (@ttc2003)

    Sorry but where do i put the .tag-class?
    I tried in the themeroller .css files but no luck.

    THX Freek

    You add it to the array(…) and the .tag-class span {} goes to the style sheet of your theme. This is advanced styling and assumes some knowledge of css. There are many good manuals to learn css on Internet, if necessary.

    Thread Starter ttc2003

    (@ttc2003)

    That worked. Super!
    One final question.
    Is it possible to put the separator just before the tag.
    Now it is:
    *
    Tag1
    *
    Tag2
    *
    Tag3

    What i want is:
    * Tag1
    * Tag2
    * Tag3

    I think i have to delete the separator in the array and put some code in my theme css i guess.

    THX Freek

    Have you tried the parameter ‘prepend’?

    Thread Starter ttc2003

    (@ttc2003)

    Sorry about the last question. I found the prepend and append statements.
    Now i only have to prepend a character before each tag label. 1 minor issue here is that the character is placed just before the tag label. Maybe it’s nicer to have the prepend character followed by a space and then the tag label. I have to figure out how to do this….
    THX Freek

    The value of the prepend paramter should also be able to contain spaces, like “* “.

    Thread Starter ttc2003

    (@ttc2003)

    I tried that but no luck…
    see:

    WP seems to strip all spaces… maybe ‘&nbsp;‘?

    Thread Starter ttc2003

    (@ttc2003)

    i tries ‘* ‘ but also no luck…
    Strange

    Thread Starter ttc2003

    (@ttc2003)

    this is the statement i use:
    <?php if ( function_exists( ‘tag_groups_cloud’ ) ) echo tag_groups_cloud( array( ‘include’ => ‘1,2,3,4,5’, ‘tags_post_id’ => 0, ‘hide_empty_tabs’ => 1, ‘smallest’ => 12, ‘largest’ => 12, ‘div_class’=>’tag-class’, ‘prepend’ =>’?’,’ ‘ ) ); ?>

    I think it is not good on this :

    'prepend' =>'?','&nbsp;'

    'prepend' =>'?&nbsp;' ?

    Thread Starter ttc2003

    (@ttc2003)

    Chris,
    That did the trick
    Thank you for your support.

    THX Freek

    you’re welcome, I close the topic

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘TAG group listing’ is closed to new replies.