Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   How to write site title in Unicode? (http://forum.bytesforall.com/showthread.php?t=19775)

tralci2013 Mar 1, 2013 02:07 PM

How to write site title in Unicode?
 
Hi. I have to write the website's title in Coptic and I need Unicode. Right now I can see the title myself (because I have fonts installed on my computer) but others cannot see it properly. Is the problem Wordpress' or Montezuma's? Any idea? Thanks! :):)

jerryc Mar 1, 2013 03:17 PM

Quote:

Originally Posted by tralci2013 (Post 97417)
Hi. I have to write the website's title in Coptic and I need Unicode. Right now I can see the title myself (because I have fonts installed on my computer) but others cannot see it properly. Is the problem Wordpress' or Montezuma's? Any idea? Thanks! :):)

I don't have the default MZ header.php file anymore to look at because I edited mine, but I recall that it gets the site title programically from your wp settings with something like <php echo site-title();> or something that will look similar. You can replace that with unicode, and it should give you what you want. It's in:

Dashboard > Appearance > MZ Options > Subtemplates > header.php

tralci2013 Mar 1, 2013 03:21 PM

Thank you! But how should I replace it with Unicode?

jerryc Mar 1, 2013 03:42 PM

I don't know a lot of unicode, but here's an example:

Code:

<div  id="logo-area">
<h1 id="sitetitle"><a href="http://example.com">[unicode here]</a></h1>
</div>

Will display a double quote, an emdash, and a single quote ("—') in the large title font that links to example.com. Put in your unicode, in the same format, and it should work.

Edit: Every time I try to enter unicode it converts it. I'll space it out here and see it if displays, just remove the spaces.

"—' in unicode =
Code:

& # 34 ; & # 8212 ; & # 39 ;

tralci2013 Mar 1, 2013 04:07 PM

Where is this code?

jerryc Mar 1, 2013 04:13 PM

Quote:

Originally Posted by tralci2013 (Post 97433)
Where is this code?


It's in header.php, which is in:

Quote:

Originally Posted by jerryc (Post 97422)
Dashboard > Appearance > MZ Options > Subtemplates > header.php


tralci2013 Mar 1, 2013 04:18 PM

I got this:

<div id="logo-area" class="col5">
<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
<p id="tagline"><?php bloginfo( 'description' ); ?></p>
</div>

tralci2013 Mar 1, 2013 04:20 PM

The Unicode word is:

2C9A 2C93 2C95 2C97 2C8F 2C99 2C81

jerryc Mar 1, 2013 04:24 PM

Quote:

Originally Posted by tralci2013 (Post 97437)
I got this:

<div id="logo-area" class="col5">
<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
<p id="tagline"><?php bloginfo( 'description' ); ?></p>
</div>

You'd remove

HTML Code:

<?php bloginfo( 'name' ); ?>
and put your unicode for your site title there. If you wanted to use unicode for your tagline, you'd remove

HTML Code:

<?php bloginfo( 'description' ); ?>
and put substitute it with your unicoded tagline.

The rest of the code you can edit or not, as you choose.

tralci2013 Mar 1, 2013 04:27 PM

Ok perfect. The unicode title would be like #2C9A; for every letter?

jerryc Mar 1, 2013 04:28 PM

Quote:

Originally Posted by tralci2013 (Post 97438)
The Unicode word is:

2C9A 2C93 2C95 2C97 2C8F 2C99 2C81

This question is bigger than this theme, but I'll answer it anyway. To use unicode hex values (which it looks like you have) in html, prefix them with &#x and end them with ; for example:

Code:

& # x 2c9a ;
only remove the spaces.

tralci2013 Mar 1, 2013 04:30 PM

PHP Code:

&#x2c9a; 

HTML Code:

&#x2c9a;
Quote:

&#x2c9a;

jerryc Mar 1, 2013 04:33 PM

It looks like your on your way.

It looks you found out how to make unicode display unparsed on this forum, too. I was just using the code tags, not html or php, and it was parsing the unicode rather than showing it. Thanks.

tralci2013 Mar 1, 2013 05:09 PM

I can see the Unicode title on Chrome/Mac but not on Chrome/Windows. Any clue?

tralci2013 Mar 1, 2013 05:11 PM

Code:

&#x2c9a;&#x2c9a;&#x2c9a;&#x2c9a;

jerryc Mar 1, 2013 05:28 PM

Quote:

Originally Posted by tralci2013 (Post 97445)
I can see the Unicode title on Chrome/Mac but not on Chrome/Windows. Any clue?

I always use the decimal versions of unicode, instead of the hex. I've heard their more browser friendly. You should be able to find many conversion charts online. To use decimal unicode, remove the x from the prefix.

P.S. I just noticed that all your letters are the same. You probably don't want that.

tralci2013 Mar 1, 2013 06:08 PM

I'll try and let you know. Thank you.

jerryc Mar 1, 2013 09:47 PM

If that doesn't work, you'll probably need to go to a unicode forum. I've already gone beyond the scope of this one.


All times are GMT -6. The time now is 06:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.