Podpora » Pomoc a podpora » Menu Font

  • Dobry den,
    chcem sa spytat ze preco my nejdu fonty s diakritikou v menu (pinboard thema) po upgradovani wordpressu na verziu 4.5.3?

    Pred samotnym upgradom bolo vsetko ok, ale po upgrade nejde diakritika.
    priklad:
    http://www.eltras.sk

    text v postoch ide, iba menu nie.
    Dakujem za pomoc.

Zobrazuje sa 6 odpovedí - 1 až 6 (z celkového počtu 6)
  • Moderátor jurajk

    (@jurajk)

    nepouzivas tam nejaky modul na manazovanie google fontov? totiz tema nebola updatnuta uz dlhsiu dobu.

    problem je v tom, ze tema vola google font, ale len jeho latin znakovu sadu.

    skus toto pridat do functions.php v tvojej child theme

    if ( ! function_exists( 'eltras_pinboard_register_styles' ) ) :
    /**
     * Deregister default pinboard web font and enqueue latin-ext version where available
     *
     * Registers stylesheets used by the theme.
     * Also offers integration with Google Web Fonts Directory
     * @uses wp_register_style() To register styles
     *
     */
    function eltras_pinboard_register_styles() {
    	wp_deregister_style( 'pinboard-web-font', get_stylesheet_uri(), $pinboard_deps, null );
    	$web_fonts = array(
    		'droid-sans' => 'Droid+Sans',
    		'lato' => 'Lato',
    		'pt-sans' => 'PT+Sans',
    		'cantarell' => 'Cantarell',
    		'open-sans' => 'Open+Sans',
    		'oswald' => 'Oswald',
    		'yanone-kaffeesatz' => 'Yanone+Kaffeesatz',
    		'quattrocento-sans' => 'Quattrocento+Sans',
    		'droid-serif' => 'Droid+Serif',
    		'lora' => 'Lora',
    		'pt-serif' => 'PT+Serif'
    	);
    	if( array_key_exists( pinboard_get_option( 'body_font' ), $web_fonts ) || in_array( pinboard_get_option( 'headings_font' ), $web_fonts )|| in_array( pinboard_get_option( 'content_font' ), $web_fonts ) ) {
    		$web_fonts_stylesheet = 'http' . ( is_ssl() ? 's' : '' ) . '://fonts.googleapis.com/css?family=';
    		if( array_key_exists( pinboard_get_option( 'body_font' ), $web_fonts ) ) {
    			$web_fonts_stylesheet .= $web_fonts[pinboard_get_option( 'body_font' )] . ':300,300italic,regular,italic,600,600italic';
    		}
    		if( ( pinboard_get_option( 'headings_font' ) != pinboard_get_option( 'body_font' ) ) && array_key_exists( pinboard_get_option( 'headings_font' ), $web_fonts ) ) {
    			$web_fonts_stylesheet .= '|' . $web_fonts[pinboard_get_option( 'headings_font' )] . ':300,300italic,regular,italic,600,600italic';
    		}
    		if( ( pinboard_get_option( 'content_font' ) != pinboard_get_option( 'body_font' ) ) && ( pinboard_get_option( 'content_font' ) != pinboard_get_option( 'headings_font' ) ) && array_key_exists( pinboard_get_option( 'content_font' ), $web_fonts ) ) {
    			$web_fonts_stylesheet .= '|' . $web_fonts[pinboard_get_option( 'content_font' )] . ':300,300italic,regular,italic,600,600italic';
    		}
    		$web_fonts_stylesheet .= '&subset=latin,latin-ext';
    	} else
    		$web_fonts_stylesheet = false;
    	if( false !== $web_fonts_stylesheet ) {
    		wp_register_style( 'pinboard-web-font', $web_fonts_stylesheet, false, null );
    		$pinboard_deps = array( 'pinboard-web-font' );
    	} else
    		$pinboard_deps = false;
    	wp_register_style( 'pinboard', get_stylesheet_uri(), $pinboard_deps, null );
    	wp_register_style( 'colorbox', get_template_directory_uri() . '/styles/colorbox.css', false, null );
    }
    endif;
    
    add_action( 'wp_enqueue_scripts', 'eltras_pinboard_register_styles' );
    Thread Starter mariannoem

    (@mariannoem)

    dakujem za hint ale nepomohlo to.
    zistil som taku vec, ze diakritika nejde iba v menu, a to vtedy ak spravim nejaku zmenu v menu cez theme customize. Akonahle spravim zmenu pre hociktoru linku v menu, hned to hodi nezmysli.

    Skusim este popozerat ale ten fix nepomohol.

    Moderátor jurajk

    (@jurajk)

    este moze byt ze si si nainstaloval open sans ku sebe na pocitac, ale len verziu bez diakritiky.

    co to znamena „hodi nezmysly“?

    Thread Starter mariannoem

    (@mariannoem)

    napriklad taketo chybi vzdniknu ked zmenin co i len jedno pismeno v menu.

    opravit to musim potom theme menu
    http://www.eltras.sk/wp-content/uploads/2016/07/eltras_diakritika.jpg

    Moderátor jurajk

    (@jurajk)

    cize obcas to zafunguje a obcas nie?
    nemas tam nejaky modul ktory modifikuje menu?

    Zdravim, ako sa Vam podarilo problem vyriesit? Ja mam totiz rovnaky, ale len ked mam nainstalovany WP na lokalnom pocitaci. Ked to prenesiem na verejny hosting, tak tam sa mi problem neprejavi. Dakujem.

Zobrazuje sa 6 odpovedí - 1 až 6 (z celkového počtu 6)
  • Téma ‘Menu Font’ uzatvorená pre ďalšie odpovede.