WordPress. Effetto toggle sui tag dei post
Su suggerimento di Talksina, una utente del forum di WP-IT, ho realizzato un paio di righe di jQuery per nascondere di default i tag dei post e mostrarli solo al click su un apposito link.
In linea di massima, questa soluzione può servire a migliorare l’accessibilità di una pagina, permettendo di saltare contenuti che possono non interessare come ad esempio la lista dei link ai tag associati ad un post.
Il codice è abbastanza rozzo, ma funziona e ovviamente è personalizzabile per altri usi.
Da inserire in header.php
[PHP]
[/PHP]
Da inserire in index.php
Oppure all’interno di qualsiasi pagina di template che mostra gli articoli, ma comunque all’interno del Loop.
Tags: accessibilita jquery loop tips toggle WordPress
Pubblicato mercoledì 26 Novembre 2008 in Hack WordPress, jQuery. Ultimo aggiornamento: lunedì 29 Novembre 2010.
Letture: 19624.
Link correlati
10 Impressive Techniques to Spice up your WordPress Theme
This article will share 10 great practices, examples & Plugins for using the most popular Javascript frameworks out there to spice up your WordPress theme.
13 Free and Premium JavaScript/jQuery Calendars
When the website users or customers need to put any date or include months or years in a particular form, these JavaScript calendars really come handy for them.
20 Useful jQuery Plugins for Responsive Web Design
Responsive layouts allow the website designers to offer specific and optimized screen size based on a wide range of devices, PC, mobile phones, tablet and iPhone. jQuery can help you to optimize the layouts of a website on different devices.
38 Useful and Effective jQuery Plugins for Responsive Web Design
In today’s post we have gathered jQuery plugins for responsive web design.
40 Free and Premium Creative WordPress Themes
Whether you are an artist, graphic designer, photographer or a magazine or newspaper owner, you would require some real catchy and awesome creative WordPress themes to display your work.
7 Image Sliders with Responsive Fluid Layout Support
In this post, we have 7 image sliders with responsive layout support.
Add From Server
“Add From Server” is a quick plugin which allows you to import media & files into the WordPress uploads manager from the Webservers file
CSS3 Animated Media Queries
In this article we are going to look at media queries, have a code snippet you can use to start your media queries and show how you can combine CSS transition with the media queries to show an animated change to your elements.
CSS3 Exciting Functions and Features: 30+ Useful Tutorials
30 tutorial per sfruttare le nuove caratteristiche di CSS3.
Display your Favorite Tweets using PHP and jQuery
Display your latest tweets on your website or blog with a jQuery plugin and a PHP class.
Everything You Need to Build A CSS3 Responsive Fluid Layout
Responsive layout is a very good solution to taking care of users with different screen resolutions and mobile platforms.
FeatPlug
Featplug is a standalone script / wordpress plugin that can mine your WordPress posts or any other data and look for images suiting a given dimension and generates ‘featured’ section for your site using the found items.
Five Tools to Increase the RSS Subscribers for your WordPress Blog
5 plugin per WordPress per aumentare gli iscritti al feed RSS.
How to display your latest Google+ update on your WordPress blog
How you can easily display your latest Google+ update on your WordPress blog.
JavaScript to Footer
WordPress default behavior is to load JavaScript in the <head> page.
This plugin will move all javascript code to the footer if the plugins have declared JavaScript properly.
MTR Podcast Recorder
MTR Podcast Recorder offers real-time recording (via a Java applet) that is saved into MP3 format on the same server where WordPress is installed.
Page Links To
This plugin allows you to make a WordPress page or post link to a URL of your choosing, instead of its WordPress page or post URL. It also will redirect people who go to the old (or “normal”) URL to the new one you’ve chosen.
Search Everything
Plugin che permette di estendere la ricerca di default di WordPress anche alle Pagine, alle Categorie e ai Tag, ai Commenti (con possibilità di escludere o includere quelli approvati), alle Bozze, gli estratti e gli allegati e ai Campi personalizzati. E’ possibile inoltre, escludere dalla ricerca gli Articoli e le Categorie, a scelta.
Speed up your blog by caching custom queries
An useful snippet to cache custom queries in WordPress. Don’t forget to update the query on line 5!
Top WordPress Responsive Themes
As WordPress is the most popular and secure platform today, it is obvious that there is plethora of great responsive WordPress themes out there. Here are some of the best available.
WP Equal Columns
Plugin per WordPress che rende uguale l’altezza delle colonne del tema usato, ad esempio la barra laterale e la colonna principale.
WP FancyZoom WordPress Plugin
A simple way to add the FancyZoom image overlay script to your blog. In short, FancyZoom is a nice, modern way of making popup images.