Jump to content
MakeWebGames

Recommended Posts

Posted

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. 🙂

Posted
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

Posted
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

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...