Nikynik

Tag: customization

Come settare un gravatar di default in Wordpress 2.7

by nikynik on feb.23, 2009, under Tutorials

Con l’avvento di Wordpress 2.7 molte funzioni sono cambiate. Tra le tante c’è da notare come sia cambiato il loop dei commenti che oggi si richiama facilmente solamente con l’inserimento della funzione < ?php wp_list_comments(); ?>.
L’abilità di impostare un gravatar personalizzato nella nuova versione viene richiamata all’interno del file function.php del template che dovrà contenere il seguente codice:
< ?php
add_filter( 'avatar_defaults', 'YOURTHEMENAME_addgravatar' );
function YOURTHEMENAME_addgravatar( $avatar_defaults ) {
$myavatar = get_bloginfo('template_directory') . '/images/gravatar.png';
$avatar_defaults[$myavatar] = ‘GRAVATAR NAME DISPLAYED IN WORDPRESS’;
return $avatar_defaults;
}
?>

Basta semplicemente sostituire NOMEDELTUOTEMA con quello del template ed inserire nel file comments.php il seguente codice per definire la dimensione del gravatar
< ?php wp_list_comments(array('avatar_size'=>70, )); ?> ed il gioco è fatto.

Articolo originale di Kremalicious
Esempio di call-back di J.Clark
Wiki su wordpress.org

Popularity: 4%

Leave a Comment :, , , more...

Estetica in Google Adsense

by nikynik on giu.26, 2007, under Tutorials, Web

ads16.PNG

Eccovi un sito che ci spiega come migliorare esteticamente gli annunci di Google Adsense. I risultati sono esteticamente belli e con un pò di fantasia possiamo adattarli tranquillamente al nostro sito.
Il sito in questione raggruppa 29 esempi per migliorare esteticamente gli annunci di google ma volendo puoi prendere spunto e modificarli a tuo piacimento.
L’immagine di esempio postata sopra riporta i seguenti colori:

     
Background
Color: #333333
     
Border Color: #333333
     
Text Color: #888888
     
Link Color: #FFFFFF
     
URL Color: #888888


[css]#ad_code
{ background:#ffffff
url(images/blackquare.png) center center no-repeat;
width:163px;
height:166px;
padding-top:15px;
text-align:center;
}[/css]
Bene, ora non ci resta che inserire il codice html nella parte della pagina dove visualizzarlo come segue
[html]

[/html]

Questo è il risultato finale
ads16.PNG

Popularity: 55%

2 Comments :, , , , more...

ABAC new.

by nikynik on giu.19, 2007, under Templates

abac.png

On request by dipex i have reuploaded ABAC theme without ads and i have corrected some little bug for IE. Please give me some feedback for other errors. Thankx

Abac Theme Downloads: 5446 times

Popularity: 26%

22 Comments :, , , , , , , more...

Testing Citrus beta 0.5

by nikynik on mag.23, 2006, under Templates

Today i have received some comments about my template and i have corrected a little bugs notified by comments and added a function to show only the first post or not. Please send me suggestions.

Popularity: 12%

13 Comments :, , , , , , more...

Styles

by nikynik on mag.22, 2006, under Templates

Ok for big request i have decided to put a zip file with the 4 colour of citrus styles. In the zip foleder you can find a header file to replace the original citrus and the 4 styles that you see in my site. Many thanks at gaiorulez for the orange style. If you plan to customize other style please respect the directory of files:

Popularity: 11%

4 Comments :, , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...