Upgrade WordPressu II.

Přišla nová verze WordPressu, čili je čas k upgradu. Pořád mám hosting se safe modem, takže jdeme jako minule. Stejně jako minule, největší problém je rekurentní mazání ftp adresářů. Protože nemám žádný vlastní obsah, tak zachovávám pouze soubor wp-config.php, jinak mažu vše a dělám čistou instalaci. První přihlášení po upgradu, upgrade databáze, vše se zdá být OK. Zdá. Při zobrazení hlavní stránky blogu dostávám … prázdnou stránku. Nepropadám panice a zjišťuji, že 3.0.1 nemá default templatu, kterou jsem používal, ale jedinou templatu twentyten. Když ji zvolím jako vybranou, blog se rozjíždí. Uff.

Bádám, jak bych mohl nahradit banner nějakým vlastním. Strýček Google pomáhá.

  1. Je potřeba vytvořit dva obrázky certoryje.jpg zvící 940*180 a certoryje-thumbnail.jpg o rozměru 230*48.
  2. Ty nahrát do wp-content/themes/twentyten/images/headers
  3. V wp-content/themes/twentyten je potřeba v souboru functions.php upravit
    register_default_headers( array(
    'berries' => array(
    'url' => '%s/images/headers/berries.jpg',
    'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Berries', 'twentyten' )
    ),
    'cherryblossom' => array(
    'url' => '%s/images/headers/cherryblossoms.jpg',
    'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Cherry Blossoms', 'twentyten' )
    ),
    'concave' => array(
    'url' => '%s/images/headers/concave.jpg',
    'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Concave', 'twentyten' )
    ),
    'fern' => array(
    'url' => '%s/images/headers/fern.jpg',
    'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Fern', 'twentyten' )
    ),
    'forestfloor' => array(
    'url' => '%s/images/headers/forestfloor.jpg',
    'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Forest Floor', 'twentyten' )
    ),
    'inkwell' => array(
    'url' => '%s/images/headers/inkwell.jpg',
    'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Inkwell', 'twentyten' )
    ),
    'path' => array(
    'url' => '%s/images/headers/path.jpg',
    'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Path', 'twentyten' )
    ),
    'sunset' => array(
    'url' => '%s/images/headers/sunset.jpg',
    'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Sunset', 'twentyten' )
    ),
    'certoryje' => array(
    'url' => '%s/images/headers/certoryje.jpg',
    'thumbnail_url' => '%s/images/headers/certoryje-thumbnail.jpg',
    /* translators: header image description */
    'description' => __( 'Certoryje', 'twentyten' )
    )
    ) );

    Je tam přidána poslední sekce (počínaje ‚certoryje‘) a předchozí čárka
  4. Pak už jen v administraci vzhled|záhlaví vybrat nový banner
Příspěvek byl publikován v rubrice IT. Můžete si uložit jeho odkaz mezi své oblíbené záložky.

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *

Můžete používat následující HTML značky a atributy: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>