10/10/2018, 13:29
Website wordpress bị lỗi font hiển thị trên themes
Website wordpress bị lỗi font hiển thị trên themes
Chẳng hiểu sao website bị lỗi font như vậy. không phải trên Data mà chỉ trên themes thôi.
Mình cũng đã dùng plugins convert data trong wordpress, trên theme thì bình thường nhưng khi hiển thị nó lại bị lỗi như vậy.
Trang index thì không bị gì, chỉ có trang sản phẩm thôi. ( ai cứu mình với.
Lỗi đây ạ.
Chẳng hiểu sao website bị lỗi font như vậy. không phải trên Data mà chỉ trên themes thôi.
Mình cũng đã dùng plugins convert data trong wordpress, trên theme thì bình thường nhưng khi hiển thị nó lại bị lỗi như vậy.
Trang index thì không bị gì, chỉ có trang sản phẩm thôi. ( ai cứu mình với.
Lỗi đây ạ.
Bài liên quan





Cũng có thể là lỗi định dạng file php lưu chưa đúng nếu như mấy từ "Giá: Vui lòng liên hệ" là do bạn ghi trực tiếp trong file chứ không phải trong database. (Nếu bạn echo hoặc print cụm từ đó trực tiếp trong file php thì cần lưu file với encode là UTF-8 thay vì mặc định là ANSI)
Nếu cần thì post 2 đoạn code hiển thị sản phẩm của trang chủ và trang sản phẩm lên đây thử.
<?php get_header(); ?> <?php $options = get_option('hyundai_theme_options'); ?> <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); $gialhe="Giá: Vui lòng liên hệ"?> <div id="article"> <!-- get article from index --> <?php if(have_posts()) : ?> <?php $wp_query = new WP_Query('showposts='.$options['numindex'].'&post_type=product&taxonomy=loaisanpham&term='.$term->slug.'&paged='.$paged.'&orderby=modified'); while ($wp_query->have_posts()) : $wp_query->the_post(); $do_not_duplicate = $post->ID; ?> <?php if(!empty($post)) : $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');?> <div class="catalogue_sp"> <div class="cata_img"><a rel="canonical" href="<?php echo $large_image_url[0];?>" class="MagicZoom" title="<?php the_title(); ?>"><?php echo get_the_post_thumbnail($thumbnail->ID, array(180,180)); ?></a></div> <div class="cata_name"><a rel="canonical" href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php echo the_title(); ?></a></div> <div class="cata_price"><?php $gia_ht = get_post_meta(get_the_ID(),'gia', true); if($gia_ht): ?>Giá: <?php echo number_format($gia_ht,0,',',',');?> VND<?php else: echo $gialhe; endif; ?></div> </div>