[Resolved] Elements

Home Forums Support Elements

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1302358
    Cheryl

    Hi Tom/Team

    I’m displaying Tags in the one of the elements I’ve created, I’m using the code `<button>
    <?php the_tags( ‘Tagged with: ‘, ‘ • ‘, ‘<br />’ ); ?>
    </button>however using the class<button>However I’m not sure how to style the buttons so there’s a button for eachtag`

    Regards

    Nigel

    #1302458
    Cheryl

    I’ve added a few variations to the Element including a list view, but I’m have problems styling the tags.

    Nigel

    #1302690
    Leo
    Staff
    Customer Support

    Hi there,

    Sorry not sure if I fully understand.

    Can you highlight your code and click the <code> button so we can get a clear view?

    Which page can I see the issue?

    #1302721
    Cheryl

    <?php the_tags(); ?>

    Using an Element Hook, after_entry_title to display the Tags, if I use a <b> it’s Bold, but if I use <button> the styling includes all tags, I would like to know how to style the tags, so they would appear as buttons.

    #1302722
    Cheryl

    Here’s another example within the same element.
    <?php the_tags( 'Tagged with: ', ' • ', '<br />' ); ?>

    #1302724
    Cheryl

    Sorry I mean this one <?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>

    #1302760
    Cheryl

    I’ve updated the link, so admin can see the post, with a few examples of the above code, I would like to know how to target this element and make the tags appears as buttons

    #1302923
    Leo
    Staff
    Customer Support

    I’m not seeing any tags in the header element.

    Can you confirm?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.