Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Employee Center Header

tomaslindev
Mega Guru

Hello good everyone,
I have a requirement related to employee center; They ask me to change the "My favorites" section for a heart icon.

How would I have to modify the html to meet the requirement. 
All the best

.

0fccaffb-64f0-4646-b030-462f4dfaf036.png

 

Photo 2.png

 

3 ACCEPTED SOLUTIONS

Hi @Sid_Takali thanks for answering me,

I have added the code and it does not apply the changes, perhaps I have an error when placing them.

All the best

 

9779b487-3742-4bef-9563-2961e5320874.png

Captura de pantalla 2024-07-02 110930.png

View solution in original post

Hello @Sid_Takali , thanks for answering me
I have added the code and it does not apply the changes, perhaps I have an error when placing them.
All the best.

 

HTML:

 <li class="gt-menu-item" role="presentation" ng-if="data.isFavoritesEnabled">
               			<a href="#/favorites" aria-label="My Favorites">
    						<i class="fa fa-heart" aria-hidden="true"></i>
						</a>
                        

CSS:

 
  .fa-heart {
    color: #ff0000; /* Adjust the color as needed */
    font-size: 1.5em; /* Adjust the size as needed */
    margin-right: 10px; /* Adjust the spacing as needed */
}
  
  

  .label-as-badge {
    font-size: 1.2rem;
    position: relative;
    top: -$sp-space--sm;
    left: -$sp-space--xxs;
    padding: 1px 5px;
    margin-left: 0;

 

View solution in original post

Hello @Sid_Takali , thanks for answering me
I have added the code and it does not apply the changes, perhaps I have an error when placing them.
All the best

View solution in original post

7 REPLIES 7

Sid_Takali
Kilo Patron

Hi @tomaslindev 

The main menu and header form a header menu are rendering from associated theme of a portal. I would suggest you to clone the OOTB "EC Theme"  and replace the OOTB code with below code in cloned theme.

HTML Code

<a href="#/favorites" aria-label="My Favorites">
    <i class="fa fa-heart" aria-hidden="true"></i>
</a>

CSS Code

.fa-heart {
    color: #ff0000; /* Adjust the color as needed */
    font-size: 1.5em; /* Adjust the size as needed */
    margin-right: 10px; /* Adjust the spacing as needed */
}

 

Regards,

Sid

 

Hi @Sid_Takali thanks for answering me,

I have added the code and it does not apply the changes, perhaps I have an error when placing them.

All the best

 

9779b487-3742-4bef-9563-2961e5320874.png

Captura de pantalla 2024-07-02 110930.png

Hello @Sid_Takali , thanks for answering me
I have added the code and it does not apply the changes, perhaps I have an error when placing them.
All the best.

 

HTML:

 <li class="gt-menu-item" role="presentation" ng-if="data.isFavoritesEnabled">
               			<a href="#/favorites" aria-label="My Favorites">
    						<i class="fa fa-heart" aria-hidden="true"></i>
						</a>
                        

CSS:

 
  .fa-heart {
    color: #ff0000; /* Adjust the color as needed */
    font-size: 1.5em; /* Adjust the size as needed */
    margin-right: 10px; /* Adjust the spacing as needed */
}
  
  

  .label-as-badge {
    font-size: 1.2rem;
    position: relative;
    top: -$sp-space--sm;
    left: -$sp-space--xxs;
    padding: 1px 5px;
    margin-left: 0;

 

Hello @Sid_Takali , thanks for answering me
I have added the code and it does not apply the changes, perhaps I have an error when placing them.
All the best