Sig fichi Home PageSig fichi newsfeedFirma di fichi e-mailSig fichi posti piu 'conosciuti
Cifre significative
Helping you, by helping myself with blogging, browsing, and tech tips Aiutare voi, contribuendo con me stesso blogging, la navigazione, suggerimenti e tecnologia

Widgetizing Your Blog Widgetizing il tuo blog

June 15th, 2007 · by David Bradley 15 giugno 2007 da David Bradley

If you have already upgraded to Wordpress 2.2, then this post is not for you. Se hai già aggiornato a Wordpress 2,2, allora questo post non è per voi. But, if you are languishing on an earlier installation and running a theme that does not support widgets, then you may like to check out how to get widgetized. Ma, se si sono languishing su una precedente installazione e la gestione di un tema che non supporta i widgets, allora potreste a provare come arrivare widgetized. But, first what are widgets? Ma, in primo luogo quali sono i widget? Well, they’re little snippets of code that sit in their own boxes within your sidebar and can be reordered with a simple drag and drop. Beh, sono poco snippet di codice che siedono nelle loro caselle all'interno della vostra barra laterale e possono essere riordinati con un semplice drag and drop. So, your search box is at the bottom and your Feedburner count at the top but you want them the other way around? Quindi, la casella di ricerca è in fondo e il tuo Feedburner contare in alto, ma volete che gli altri intorno? It’sa lot of cutting and pasting with the standard sidebar in Theme Editor, but if your blog is widgetized all you do is drag the search widget to the top of the stack and the Feedburner block to the bottom. Si tratta di una partita di tagliare e incollare con lo standard nella barra laterale Tema Editore, ma se il tuo blog è widgetized tutti voi fare è trascinare il widget di ricerca in cima alla pila di Feedburner e il blocco verso il basso. And save the new settings. E salvare le nuove impostazioni.

The Automattic site has the full skinny on Automattic il sito ha il pieno magro su widgetizing your site widgetizing il tuo sito and provides you with the necessary downloads, so I am not going to repeat their wise words here. e vi fornisce le necessarie Download, quindi non ho intenzione di ripetere le loro sagge parole qui. But, one aspect of widgetizing the Sciencebase site earlier this year, prior to the release of version 2.2, was that I simply could not eradicate an orphaned bullet point that was appearing at the top of the sidebar with no entry to which is was associated. , Ma, un aspetto del widgetizing la Sciencebase sito all'inizio di quest'anno, prima del rilascio della versione 2,2, è stata semplicemente che io non poteva sradicare uno orfani punto che è stato che figurano nella parte superiore della barra laterale senza alcuna entrata a cui si era associato. I messed around with the li and ul tags in the widgets themselves, played with the css in the widgets.php (adding the list-style-type: none; tag to all and sundry to try and delete the little dot). I scompigliato con circa il che e ul tag nel widget stessi, suonato con il codice CSS nel widgets.php (aggiunta della lista-stile-tipo: none; etichetta a tutti i vari e per cercare di eliminare il piccolo punto). Actually, I grew quite fond of the little critter in the end, but knew that most visitors would prefer not to see the bullet, it was far too distracting. In realtà, sono cresciuto molto affezionato al piccolo critter, alla fine, ma sapeva che la maggior parte dei visitatori preferisce non vedere il punto, è stato troppo distrazione.

Finally, after searching the web and reading the manual a dozen times or more I went back to the Automattic site, where it finally dawned on me that a hack they mentioned in regard to formating non-standard sidebars ready to be widgetized might actually work for me too. Infine, dopo la ricerca sul Web e la lettura del manuale di una dozzina o più volte sono tornato a Automattic il sito, dove finalmente aggiornato su di me che un trucco di cui essi per quanto riguarda la formattazione non standard a margine pronto per essere widgetized potrebbe effettivamente lavorare per anche io.

To make widgets work in versions of Wordpress pre-2.2 you have to have a file called functions.php in your theme’s folder. Per rendere i widgets di lavoro nelle versioni di Wordpress pre-2,2 dovete avere un file chiamato functions.php nella vostra cartella del tema. This file holds nothing but a conditional tag to render the widgetized sidebar as appropriate, but you can add an extra argument or two to make the widget plugin ignore some of the formating in its inbuilt CSS: Questo file tiene nulla, ma un tag condizionale per rendere la barra laterale widgetized se del caso, ma è possibile aggiungere una o due tesi a rendere il widget plug ignorare alcuni dei formattazione nella sua inbuilt CSS:

<?php <? php
if ( function_exists(’register_sidebar’) ) if (function_exists ( 'register_sidebar'))
register_sidebar(array( register_sidebar (array (
‘before_widget’ => ”, // Removes the list tag 'Before_widget' => ", / / Rimuove l'elenco etichetta
‘after_widget’ => ”, // Removes removes the end list entry tag 'After_widget' => ", / / Rimuove rimuove la fine elenco entrata etichetta
‘before_title’ => ”, // Removes the head tag 'Before_title' => ", / / Rimuove il capo tag
‘after_title’ => ”, // Removes the end head tag 'After_title' => ", / / fine di rimuovere il capo tag
));
?>

Once I’d added this code, fixing the angle brackets to be the actual html enclosures, and reloaded the Sciencebase site up it popped, sans bullet. Una volta ho aggiunto questo codice, che fissa le parentesi angolari di essere l'effettivo html cofani, e ricarica la Sciencebase sito che fino popped, sans bullet. I will miss the little critter though. Mi mancherà il piccolo critter se.

2 responses so far ↓ 2 risposte finora ↓

  • Eliena // Eliena / / Jun 17, 2007 at 2:35 pm Giugno 17, 2007 at 2:35 pm

    can i implement this code on my blog page ? posso attuare questo codice sul mio blog?

  • David Bradley David Bradley // / / Jun 17, 2007 at 7:02 pm Giugno 17, 2007 at 7:02 pm

    Sorry Eliena, but I don’t understand why you would want to do that in the first place. Eliena dispiace, ma non capisco perché si voglia fare quello in primo luogo. Blogspot is its own system, presumably you have not above blog folders anyway, so what would you be implementing, regardless of the fact the hack is for Wordpress? Blogspot è il suo sistema, presumibilmente non hai sopra blog cartelle comunque, in modo che cosa sarebbe di attuazione, indipendentemente dal fatto incidere le è per Wordpress?

    db PB

Leave a Comment Lascia un commento

Comments are checked for spam before appearing, no need to post it twice. I commenti sono controllati per lo spam prima di essere inseriti, non è necessario per pubblicare due volte.

Related Posts Posti connessi