Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Mael Shanti

    (@mael-shanti)

    Okay, I finally found how to change the icon in the hexagone, but no way to find how to change the one that’s at the top of https://www.amitabha-sat.com/type/image page :/

    Hey. I’m trying to do the exact same thing as you with Anew, but I’ve got the opposite problem.

    I’ve managed to change the icon in /type/image, but not in the hexagon.

    To change the icon in /type/image, you need to go into /inc/page-title.php and modify the following code:

    <h1><i class="fa fa-camera"></i><?php _e('Type:','anew'); ?> <span><?php _e('Image','anew'); ?></span></h1>

    so that it looks like this:

    <h1><i class="fa fa-file-text"></i><?php _e('Type:','anew'); ?> <span><?php _e('Whatever Heading You Want','anew'); ?></span></h1>

    Hope that helps. If you could tell me how you managed to change the icon in the hexagon, that would be great!

    Thread Starter Mael Shanti

    (@mael-shanti)

    Hi,
    Thanks a lot for your help, I’m gonna do that after creating a child theme.

    To change the icon in the hexagon, I searched for this unicode in my style.css file : f030
    That made me find the following line :
    .format-image .hex .fa:before { content: "\f030"; }

    Then I replaced it (by using a custom.css file) to :

    .format-image .hex .fa:before {
    	content: "\f02d";
    }

    Here you are ! ??
    Many thanks for your help anyway, that’s really great !

    Thanks! I finally managed to get it sorted.

    For anyone else who finds this and needs a bit of help, you can find all of the icon codes here.

    Just click the icon that you want to get the tag/unicode that you need. To change the icon in /type/image, you need the ‘i class’ tag (e.g. “fa fa-camera”). To change the icon in the hexagon you need the Unicode (e.g. “f030”).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change an icon in format-types’ is closed to new replies.