「WP related」カテゴリーアーカイブ

php.ini rewrite

To increase upload_max filesize in migrating database.

/etc/php5/apache2# gksudo gedit php.ini

    upload_max_filesize = 10M

    post_max_size = 10M   ;not necessary just fun.

service apache2 restart
 

adventure and ie8

Serious issues:

1. Backgrounds of “contents” and “sidebar” are not the ones set by the customization and also become transparent. Basically because IE cannot respond rgba specification.

2. Menu items of the menu bar in the header are listed vertically.

3. Adventure customization is done in functions.php.

4. Function adventure_ie_css() is very compact one to cope with isuues 1. 2. , but not activated in the original.

5. The following was necessary and worked fine. (See functions.php in adventure-child.

6. function remove_thematic_actions() {
remove_action(‘wp_head’,’adventure_inline_css’,50);
}
add_action(‘init’,’remove_thematic_actions’);

add_action(‘wp_head’, ‘child_adventure_inline_css’, 50);

7. Include adventure_ie_css().

8. Issues 1. 2. were almost solved. But “content” background is not transparent at all, whereas sidbebar background i s half transparent.

favicon

When checking the fabicon set up, clear the history of the browser every time.

http://codex.wordpress.org/Creating_a_Favicon

Faviconer.com

If there is already an old favicon.ico file in your current theme’s main folder, delete it using FTP Clients.

Codex

Codex tools: Log in

Creating a Favicon

A favicon (short for “favorites icon”) is an icon associated with a website or webpage intended to be used when you bookmark the web page. Web browsers use them in the URL bar, on tabs, and elsewhere to help identify a website visually.

A favicon is typically a graphic 16 x 16 pixels square and is saved as favicon.ico in the root directory of your server. You can use a favicon with any WordPress blog on a web server that allows access to the root directories.

 

Contents

[hide]

Creating a Favicon

A favicon can be created using any graphics/image editing software, such as GIMP, that allows the saving of .ico files. There are also online services that will allow you to create a favicon for free.

The image should be clear and is usually designed to match your blog’s image and/or content, a big task for something so small.

To prepare the image to be saved as favicon.ico:

  1. By cropping or adding space around the image, make the image square.
  2. Resize the image to 16 x 16 pixels.
  3. Save the file as favicon.ico.

If you’re using an online service to create your favicon, such as Faviconer.com (creates 24bit favicon.ico with a transparent background, favicon.co.uk or Dynamic Drive, follow the instructions provided by the site and then download the favicon.ico image to your computer.

Installing a Favicon in WordPress

If there is already an old favicon.ico file in your current theme’s main folder, delete it using FTP Clients.

  1. With an FTP Client, upload the new favicon.ico file into your current theme’s main folder.
  2. Upload another copy of your favicon.ico file to the main directory of your site (ie. http://example.com/favicon.ico). This will display the favicon in your subscribers’ feedreaders.

—–The following was not necessary for japantourguide.lolipop.jp but necessaray for localhost/wptest ———————–

Insert the following in <head>:

<link href=”favicon.ico” rel=”shortcut icon” type=”image/x-icon” />

type declaration was necessary for the file generated by Faviconer.com.

 

—————————-The following was not effective for IE8 to see favicon ——-

In order for your favicon to show up in some older browsers, you will need to edit your page header. Remember, the best way to edit your theme’s files is via a Child Theme. For the purpose of the following instructions you will need to create a copy of your parent theme’s header.php file in your child theme.

  1. Go to your WordPress Administration Panel.
  2. Click on Appearance.
  3. Click on Theme Editor.
  4. Select the file called Header or header.php to edit the file.
  5. Search for the line of code that begins with <link rel="shortcut icon" and ends with /favicon.ico" />. Overwrite it, if it exists, or add the following code below the <head> HTML tag.
    <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />

——————————————————————————–