====== Configuració del blog ====== En aquesta pàgina es recullen els canvis fets a la configuració del blog per adaptar-lo a les nostres necessitats. És probable que alguns dels apartats (plugins? temes?) que actualment es troben a la [[.:servidor_blog | pàgina sobre el blog]] acabin, totalment o de forma parcial, formant part d'aquesta pàgina, però per ara convé consultar també la [[.:servidor_blog | pàgina sobre el blog]] per fer-se una idea de la configuració actual del nostre servidor de blog WordPress. ===== Qüestions a decidir ===== Hi ha diverses qüestions a decidir sobre el funcionament del blog: - Comentaris a les notícies * "Comment author must fill out name and e-mail" o "Users must be registered and logged in to comment" * "Comments should be displayed with the OLDER?-NEWER? comments at the top of each page" - Before a comment appears * "Before a comment appears An administrator must always approve the comment" o * "Comment author must have a previously approved comment" - Site Visibility * "I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers" o * "I would like to block search engines, but allow normal visitors" - Content licensing * Check the [[http://www.blogherald.com/2011/04/15/content-licensing-101-for-bloggers/ | recommendations at The Blog Herald]] before wisely deciding about the content licensing. ===== Login i administració a través d'HTTPS ===== * [[http://codex.wordpress.org/Administration_Over_SSL | Administration Over SSL.]] WordPress 2.6 and later has greatly improved support for administration over SSL out of the box. To easily enable (and enforce) administration over SSL, there are two constants that you can define in your blog's ''wp-config.php'' file. :info: Considerar també la possibilitat d'instal·lar el plugin, * [[http://wordpress.org/extend/plugins/wordpress-https/ | WordPress HTTPS]] is intended to be an all-in-one solution to using SSL on WordPress sites. ===== Lletra en negreta al menú ===== Tenia la sensació de que el text al menú, en gris o blanc i sobre fons negre, no es llegia clarament, i he decidit canviar el tipus de lletra a negreta. Per això, cal modificar el fitxer ''/usr/share/wordpress/wp-content/themes/twentyten/styles.css'' i afegir ''font-weight: bold;'' a l'entrada ''#access a {}'' que codifica el format del text al menú, /* =Menu -------------------------------------------------------------- */ [... lines removed ...] #access a { color: #aaa; display: block; line-height: 38px; padding: 0 10px; text-decoration: none; font-weight: bold; } Ara el text apareix en negreta, el contrast és major, i la llegibilitat ha millorat. ===== Canvis al núvol de tags ===== Seguint les instruccions a [[http://bavotasan.com/tutorials/modifying-the-wordpress-tag-cloud-widget-font-size/ | bavotasan.com]] i [[http://codex.wordpress.org/Function_Reference/wp_tag_cloud | Function Reference/wp tag cloud]], he modificat la mida màxima de la lletra al //núvol d'etiquetes.// Per tal que el canvi afecti a qualsevol //núvol d'etiquetes// al nostre blog, a la funció //wp_tag_cloud()// del fitxer ''wordpress/wp-includes/category-template.php'', canvio el valor per defecte de la variable //largest// de //22// a //18//, /** * Display tag cloud. * [... lines removed ...] */ function wp_tag_cloud( $args = '' ) { $defaults = array( 'smallest' => 8, 'largest' => 18, 'unit' => 'pt', 'number' => 45, 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true ); $args = wp_parse_args( $args, $defaults );