Jump to content
MakeWebGames

Change text color in template files?


Sim

Recommended Posts

I'm not trying to Google the answer but how can I change the color of text in the template. Font color. Also, how can I use the classes top change the font color like success, info, error, warning.ย 

ย 

I bet allot of to all surprised to see me all that with my very extensive knowledge of actually programming itself. ๐Ÿ™‚

Link to comment
Share on other sites

7 hours ago, Sim said:

I'm not trying to Google the answer but how can I change the color of text in the template. Font color. Also, how can I use the classes top change the font color like success, info, error, warning.ย 

ย 

I bet allot of to all surprised to see me all that with my very extensive knowledge of actually programming itself. ๐Ÿ™‚

new Hook("alterGlobalTemplate", function ($template) {
  $template->error = "<strong>ERROR:</strong> <{text}>";
});

You can try the alterGlobalTemplate hook

Link to comment
Share on other sites

37 minutes ago, Sim said:

I want to change certain text. HTML in general. Not GL.

You can use inline or style block CSS, unsure if this is what you're after:

<span style="color: red;">Red Text!</span>

<!-- or -->

<style>
  .red {
    color: red;
  }
</style>
<div class="red">Also Red Text</div>

ย 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

ร—
ร—
  • Create New...