2

I'm using this theme. I put the code below in to make tags visible, but I'm not sure how to make my tags italic/bold/underlined. Can anyone help me out? Google didn't help.

{block:HasTags}
       {block:Tags}
          <font size="2"> 
          <font color="#FFFFFF">
          <a href="{TagURL}">{Tag}</a>
          </font>
          </font>
       {/block:Tags}
    {/block:HasTags}

1 Answer 1

1

Using the font element is outdated. CSS should be used instead.

You can use this markup:

{block:HasTags}
  {block:Tags}
    <a href="{TagURL}" class="custom_tag">{Tag}</a>
  {/block:Tags}
{/block:HasTags}

And add this line to your CSS:

.custom_tag {color:#FFF; font-size:1.2em; font-style:italic;}

(You might have to adapt the font-size value; I don’t know what the font element’s size="2" corresponds to.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.