# How to change icon

**URL:** <https://community.hivepress.io/t/how-to-change-icon/5178>\
**Category:** Opening Hours\
**Tags:** opening-hours\
**Created:** [April 4, 2023, 2:39pm UTC](https://community.hivepress.io/t/how-to-change-icon/5178 "2023-04-04T14:39:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![allumwandlung](https://community.hivepress.io/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@allumwandlung](https://community.hivepress.io/u/allumwandlung)\
**Post date:** [April 4, 2023, 2:39pm UTC](https://community.hivepress.io/t/how-to-change-icon/5178/1 "2023-04-04T14:39:04Z")

</div>

I did remove because of external requests and performance the font awesome icons

> <https://gist.github.com/hivepress/47dc4d1d6be702dddfbe4272a2f24f72>

everything works fine but i can not edit or replace the open hours clear icon with an icon or just an X

```auto
hp-icon.fas.fa-times

this is the icon and i did try this:
i.hp-icon.fas.fa-times::before{
    content: "X";
    z-index: 990099;
    position: relative;
}

```

works perfect in the inspector and also this that work in front end but not admin area

```auto
table.hp-table.hp-field.hp-field--opening-hours div.hp-field.hp-field--time a[title="Clear"] .hp-icon.fas.fa-times {
    color: transparent !important;
    display: inline-block;
    background-image: url('/wp-content/uploads/icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    position: relative;
}

```

this is the last icon i have to replace and then i am finished with the website development.  
so please give ma a snippet or advice how to change / replace the clear icon or make it clickable or whatever i only need this to be working somehow again.

blady kurczak…

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [April 5, 2023, 5:19pm UTC](https://community.hivepress.io/t/how-to-change-icon/5178/5 "2023-04-05T17:19:20Z")

</div>

Hi,

Sorry for the inconvenience, but customization is beyond our support scope - it includes fixing bugs and guidance about the available features [Support Policy | HivePress](https://hivepress.io/support-policy/)

If customizations are required for your site, please try customizing it using the collection of code snippets [Search · user:hivepress · GitHub](https://gist.github.com/search?q=user%3Ahivepress) and other developer resources, or consider hiring someone for custom work [https://fvrr.co/32e7LvY](https://fvrr.co/32e7LvY)

---

<div class="post-metadata">

**Author:** ![allumwandlung](https://community.hivepress.io/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@allumwandlung](https://community.hivepress.io/u/allumwandlung)\
**Post date:** [April 5, 2023, 5:58pm UTC](https://community.hivepress.io/t/how-to-change-icon/5178/6 "2023-04-05T17:58:08Z")

</div>

you should really look in the [Support - GeneratePress](https://generatepress.com/support/) forum its public

they always give small snippets and help out and have long lasting customers  
or offer paid services

i was hoping for at least pointing in the right direction since fa icons are bloat  
if i miss something how to change inside the admin area…

---

<div class="post-metadata">

**Author:** ![allumwandlung](https://community.hivepress.io/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@allumwandlung](https://community.hivepress.io/u/allumwandlung)\
**Post date:** [April 5, 2023, 7:18pm UTC](https://community.hivepress.io/t/how-to-change-icon/5178/7 "2023-04-05T19:18:03Z")

</div>

functions.php in child theme:

```auto
add_action('admin_head', 'my_custom_fonts');

function my_custom_fonts() {
  echo '<style>
    body, td, textarea, input, select {
      font-family: "Lucida Grande";
      font-size: 12px;
    } 
  </style>';
}

```

found it:

```auto
add_action('admin_head', 'my_custom_fonts');

function my_custom_fonts() {
  echo '<style>
i.hp-icon.fas.fa-times::before{
    content: "X";
    z-index: 990099;
    position: relative;
} </style>';
}

```

so now it works, thank you for fixing the bugs fast and i hope you will expand service in the future 🙂

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [May 6, 2023, 7:48am UTC](https://community.hivepress.io/t/how-to-change-icon/5178/10 "2023-05-06T07:48:34Z")

</div>

Closed on May 6, 2023, 7:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
