User Tools

Site Tools


sermn_wiki:userpages:marta:configuracio_blog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sermn_wiki:userpages:marta:configuracio_blog [2011/04/18 11:36]
miquel creat
sermn_wiki:userpages:marta:configuracio_blog [2011/04/24 16:26] (current)
miquel
Line 5: Line 5:
 ===== Qüestions a decidir ===== ===== Qüestions a decidir =====
  
 +Hi ha diverses qüestions a decidir sobre el funcionament del blog:
   - Comentaris a les notícies   - Comentaris a les notícies
-    * //Comment author must fill out name and e-mail// //Users must be registered and logged in to comment// +    * "Comment author must fill out name and e-mail"Users must be registered and logged in to comment" 
-    * //Comments should be displayed with the OLDER-NEWER comments at the top of each page//+    * "Comments should be displayed with the OLDER?-NEWERcomments at the top of each page"
   - Before a comment appears    - Before a comment appears
-    * //Before a comment appears An administrator must always approve the comment// +    * "Before a comment appears An administrator must always approve the comment
-    * //Comment author must have a previously approved comment//+    * "Comment author must have a previously approved comment"
   - Site Visibility    - Site Visibility
-    * //Site Visibility I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers// +    * "I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers
-    * //I would like to block search engines, but allow normal visitors//+    * "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 ===== ===== Login i administració a través d'HTTPS =====
Line 19: Line 22:
   * [[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://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.     * [[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ú,
 +
 +<code css>
 +/* =Menu
 +-------------------------------------------------------------- */
 +
 +[... lines removed ...]
 +
 +#access a {
 + color: #aaa;
 + display: block;
 + line-height: 38px;
 + padding: 0 10px;
 + text-decoration: none;
 + font-weight: bold;
 +}
 +</code>
 +
 +Ara el text apareix en negreta, el contrast és major, i la llegibilitat ha millorat.
  
 ===== Canvis al núvol de tags ===== ===== Canvis al núvol de tags =====
Line 24: Line 49:
 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.// 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//,
 +
 +<code php>
 +/**
 + * 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 );
 +
 +</code>
  
sermn_wiki/userpages/marta/configuracio_blog.1303119377.txt.gz · Last modified: 2011/04/18 11:36 by miquel