A
A
Archer *range attack +10*2015-06-28 14:18:17
WordPress
Archer *range attack +10*, 2015-06-28 14:18:17

Why is the ruble sign ₽ not showing up in firefox?

Until recently, I inserted the ruble sign as a picture, giving it the desired height. I recently learned that the sign has its own html-code: ₽as far as I understand, in Unicode.
There were no problems with displaying the sign on webkit: neither in Chrome, nor in Opera, nor in Safari. Firefox does not display this character.
Is there an elegant workaround or fix for Firefox?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Sobolev, 2018-10-08
@xlo240

City - Property Taxonomy.
Object - custom record type

if ( ! function_exists('add_estate_post_type') ) {

//  Регистрируем тип недвижиимость
function add_estate_post_type() {

  $labels = array(
    'name'                  => 'Объекты',
    'singular_name'         => 'Объект',
    'menu_name'             => 'Каталог недвижимости',
    'name_admin_bar'        => 'Каталог недвижимости',
    'archives'              => 'Архив объектов',
    'attributes'            => 'Аттрибуты объекта',
    'parent_item_colon'     => 'Главный объект',
    'all_items'             => 'Все объекты',
    'add_new_item'          => 'Доавить новый объект',
    'add_new'               => 'Добавить объект',
    'new_item'              => 'Новый объект',
    'edit_item'             => 'Редактировать объект',
    'update_item'           => 'Обновить объект',
    'view_item'             => 'Смотреть объект',
    'view_items'            => 'Смотреть объекты',
    'search_items'          => 'Найти объект',
    'not_found'             => 'Не найдено',
    'not_found_in_trash'    => 'В корхине не найдено',
    'featured_image'        => 'Featured Image',
    'set_featured_image'    => 'Установить фото объекта',
    'remove_featured_image' => 'Удалить фото объекта',
    'use_featured_image'    => 'Использовать в качестве фото объекта',
    'insert_into_item'      => 'Добавить к объекту',
    'uploaded_to_this_item' => 'Добавить к этому объекту',
    'items_list'            => 'Список объектов',
    'items_list_navigation' => 'Items list navigation',
    'filter_items_list'     => 'Фильтр объектов',
  );
  $rewrite = array(
    'slug'                  => 'estate',
    'with_front'            => true,
    'pages'                 => true,
    'feeds'                 => true,
  );
  $args = array(
    'label'                 => 'Объект',
    'description'           => 'Post Type Description',
    'labels'                => $labels,
    'supports'              => array( 'title' ),
    'taxonomies'            => array( 'estate' ),
    'hierarchical'          => true,
    'public'                => true,
    'show_ui'               => true,
    'show_in_menu'          => true,
    'menu_position'         => 5,
    'show_in_admin_bar'     => true,
    'show_in_nav_menus'     => true,
    'can_export'            => true,
    'has_archive'           => true,
    'exclude_from_search'   => false,
    'publicly_queryable'    => true,
    'query_var'             => 'post_type',
    'rewrite'               => $rewrite,
    'capability_type'       => 'page',
  );
  register_post_type( 'estate', $args );

}
add_action( 'init', 'add_estate_post_type', 0 );

}

And the taxonomy of the city (Location, District, etc.)
// Регистрация Районов (estate_district)
function estate_district_taxonomy() {

    $labels = array(
        'name'                       => 'Районы',
        'singular_name'              => 'Районы',
        'menu_name'                  => 'Районы',
        'all_items'                  => 'Все районы',
        'parent_item'                => 'Главный район',
        'parent_item_colon'          => 'Parent Item:',
        'new_item_name'              => 'Название нового района',
        'add_new_item'               => 'Добавить район',
        'edit_item'                  => 'Редактировать район',
        'update_item'                => 'Обновить район',
        'view_item'                  => 'Смотреть район',
        'separate_items_with_commas' => 'Добавление районов через запятую',
        'add_or_remove_items'        => 'Добавить или удалить район',
        'choose_from_most_used'      => 'Выбрать из наиболее популярных',
        'popular_items'              => 'Популярные районы',
        'search_items'               => 'Найти район',
        'not_found'                  => 'районов нет.',
        'no_terms'                   => 'Такого района нет.',
        'items_list'                 => 'Список районов',
        'items_list_navigation'      => 'Items list navigation',
    );
    $args = array(
        'labels'                     => $labels,
        'hierarchical'               => true,
        'public'                     => true,
        'show_ui'                    => true,
        'show_admin_column'          => true,
        'show_in_nav_menus'          => true,
        'show_tagcloud'              => true,
        'show_in_quick_edit'         => true,
        'meta_box_cb'                => false,
    );
    register_taxonomy( 'estate_district', array( 'estate' ), $args );

}
add_action( 'init', 'estate_district_taxonomy', 0 );

A
Alexander Vladimirov, 2015-09-06
@kon-rafikov

In google fonts for roboto, connect Latin Extended characters. The sign of the font, oddly enough, is located in it. After that, the ruble sign will be displayed everywhere.
In the code, specify it through₽

F
FMars, 2015-06-28
@FMars

From habr.
Don't use mnemonic links.
It makes no sense to use mnemonic links such as —, ”, or ☺ when all commands in files, editors use the same encoding (UTF-8)
Not recommended:
Recommended:
Валютный знак евро: “€”.

N
Nazar Mokrinsky, 2015-06-28
@nazarpc

Right here it is displayed, everything is ok. HTML code did not appear out of thin air, you have problems on the page: either the encoding, or the font, or something else.

T
Turtle_Onni, 2015-07-01
@Turtle_Onni

Most likely you have a mistake somewhere, but only in the morning I added it to the site, and in Firefox everything was fine - the sign was displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question