Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

How to write site title in Unicode?


  #1  
Old Mar 1, 2013, 03:07 PM
tralci2013
 
41 posts · Mar 2013
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!
  #2  
Old Mar 1, 2013, 04:17 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
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
  #3  
Old Mar 1, 2013, 04:21 PM
tralci2013
 
41 posts · Mar 2013
Thank you! But how should I replace it with Unicode?
  #4  
Old Mar 1, 2013, 04:42 PM
jerryc
 
367 posts · Oct 2012
Florida
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 ;

Last edited by jerryc; Mar 1, 2013 at 05:38 PM. Reason: unicode is converting rather than displaying as code
  #5  
Old Mar 1, 2013, 05:07 PM
tralci2013
 
41 posts · Mar 2013
Where is this code?
  #6  
Old Mar 1, 2013, 05:13 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
Where is this code?

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

Quote:
Originally Posted by jerryc
Dashboard > Appearance > MZ Options > Subtemplates > header.php
  #7  
Old Mar 1, 2013, 05:18 PM
tralci2013
 
41 posts · Mar 2013
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>
  #8  
Old Mar 1, 2013, 05:20 PM
tralci2013
 
41 posts · Mar 2013
The Unicode word is:

2C9A 2C93 2C95 2C97 2C8F 2C99 2C81
  #9  
Old Mar 1, 2013, 05:24 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
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.
  #10  
Old Mar 1, 2013, 05:27 PM
tralci2013
 
41 posts · Mar 2013
Ok perfect. The unicode title would be like #2C9A; for every letter?
  #11  
Old Mar 1, 2013, 05:28 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
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.
  #12  
Old Mar 1, 2013, 05:30 PM
tralci2013
 
41 posts · Mar 2013
PHP Code:
&#x2c9a; 
HTML Code:
&#x2c9a;
Quote:
&#x2c9a;

Last edited by tralci2013; Mar 1, 2013 at 06:10 PM.
  #13  
Old Mar 1, 2013, 05:33 PM
jerryc
 
367 posts · Oct 2012
Florida
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.
  #14  
Old Mar 1, 2013, 06:09 PM
tralci2013
 
41 posts · Mar 2013
I can see the Unicode title on Chrome/Mac but not on Chrome/Windows. Any clue?
  #15  
Old Mar 1, 2013, 06:11 PM
tralci2013
 
41 posts · Mar 2013
Code:
&#x2c9a;&#x2c9a;&#x2c9a;&#x2c9a;
  #16  
Old Mar 1, 2013, 06:28 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
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.
  #17  
Old Mar 1, 2013, 07:08 PM
tralci2013
 
41 posts · Mar 2013
I'll try and let you know. Thank you.
  #18  
Old Mar 1, 2013, 10:47 PM
jerryc
 
367 posts · Oct 2012
Florida
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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATCH 371-01: Site Title appended after the 'SEO Ultimate' title juggledad Old Version fixes and change logs 0 Nov 22, 2011 04:54 AM
add page/post title to header site title. aehageman Header configuration & styling 6 Oct 21, 2011 05:16 AM
PATCH 367-05: Site Title appended after the 'WordPress SEO by Yoast' title juggledad Old Version fixes and change logs 0 Jul 4, 2011 06:24 AM
Order site title, page title Quince Page & Category Menu Bars 1 Feb 4, 2011 11:32 PM


All times are GMT -6. The time now is 10:19 AM.


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