• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Sign In - Set colour button

maxdome

Chevereto Member
If you want to put a color in the (Sign In) button,

edit the headers.php file (app/themes/Peafowl/header.php) and change this code in (line 279).

Before:
<span class="top-btn-text"><span class="icon icon-login tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('Sign in'); ?></span></span>


After:
<span class="top-btn-text top-btn-create-account btn blue text"><span class="icon icon-login tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('Sign in'); ?></span></span>

where blue can change it to another color: blue, green, orange, red, grey, black, white

*Remember, this affects also the Mobile and Tablet colour button!


DEMO: PC
9d350170c3481f904cae3bd723630a28.png



DEMO: MOBILE


39ea4f40414799abd9ce3a4e6f0a47b3.jpg



If you liked my idea, please click the "like" button :)

Best Regards:
Gio
 
Last edited:
Hello maxdome

Very good idea it would be nice to have this change in the next version Chevereto otherwise has every update we lose this code
 
It would be nice to have this change in the next version Chevereto otherwise has every update we lose this code

Is almost impossible to fill all the editable gaps in systems like this one so I'm working in to make it hassle free as possible.

Some of the thing that will help this thing are the template overrides that will be added in v3.6.3 where you will be able to override any theme file without messing with the base theme (which is the most annoying thing in Chevereto). This means that you will be able to customize anything without messing the default theme when you upgrade. Obviously that when the core theme changes you will need to push those changes but currently that means that you need to fork the theme, lost the track of what exactly you edited, etc. I know that is not perfect but it will certainly be way less hassle than before.

Secondly, and this is a recommendation for anyone customizing HTML in system like this: The best way to do that without meaning that changes are needed over and over is by doing those using native JS. This means that JS changes the DOM asap so the change is instant to the end user. A way to do this is by using hooks, ideal thing is to place the code right after the DOM but that also means countless hooks in the base system so the thing to use could be custom_hooks/footer.php

Third option is to use CSS which is more limited but you can achieve customization with absolute no issues. In this case you need the right selector and just copy the base style (button).
 
I is not the same line you have the 279 so I was not successful put

Search this code:
Code:
<span class="top-btn-text"><span class="icon icon-login tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('Sign in'); ?></span></span>

Replace with this code:
Code:
<span class="top-btn-text top-btn-create-account btn blue text"><span class="icon icon-login tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('Sign in'); ?></span></span>

Cheers!
 
Search this code:
Code:
<span class="top-btn-text"><span class="icon icon-login tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('Sign in'); ?></span></span>

Replace with this code:
Code:
<span class="top-btn-text top-btn-create-account btn blue text"><span class="icon icon-login tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('Sign in'); ?></span></span>

Cheers!

Thank you very much for your maxdome helps is solved
 
Back
Top