Archived topic
Elements
7 replies · Started by Cheryl on May 26, 2020
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
I’ve added a few variations to the Element including a list view, but I’m have problems styling the tags.
Nigel
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?
<?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.
Here’s another example within the same element.
<?php the_tags( 'Tagged with: ', ' • ', '<br />' ); ?>
Sorry I mean this one <?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>
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
I'm not seeing any tags in the header element.
Can you confirm?