16 responsive šablon pro WordPress

Téma, o kterém se poslední rok či více hodně mluví v oblasti návrhů webů, se jmenuje Responsive webdesign. V článku se však technikami RW nebudu zabývat, ale v případě, že byste měli o tuto tématiku zájem, tak vás rád odkážu na školení Responsive Webdesign od Honzy Sládka, které na Twitteru všichni chválí a já o […]

Správa uživatelských polí vč. vytváření metaboxů

**Advanced Custom Fields**
„http://wordpress.org/plugins/advanced-custom-fields/“:http://wordpress.org/plugins/advanced-custom-fields/
„http://www.advancedcustomfields.com/“:http://www.advancedcustomfields.com/

– Visually create your Fields
– Select from multiple input types (text, textarea, wysiwyg, image, file, page link, post object, relationship, select, checkbox, radio buttons, date picker, true / false, repeater, flexible content, gallery and more to come!)
– Assign your fields to multiple edit pages (via custom location rules)

Handy add-on:

**Advanced Custom Fields Limiter**
„https://wordpress.org/plugins/advanced-custom-fields-limiter/“:https://wordpress.org/plugins/advanced-custom-fields-limiter/

Insert JavaScript character limiters in Advanced Custom Fields. You set a limit for each field, and a character counter will appear next to them in the admin interface.

A lot of other ACF extending plugins available »“:http://wordpress.org/plugins/search.php?q=Advanced+Custom+Fields

Výchozí nastavení zobrazených informací (screen options)

Defaultní viditelnost či skrytí „zobrazených informací (screen options); metaboxů“:http://codex.wordpress.org/Administration_Screens#Screen_Options lze trvale – bez rozklikávání boxu – nastavit přidáním následujícího kódu do functions.php:

/—code php
// jak změnit, co je defaultně skryto
add_filter(‚default_hidden_meta_boxes‘, ‚be_hidden_meta_boxes‘, 10, 2);
function be_hidden_meta_boxes($hidden, $screen) {
if ( ‚post‘ == $screen->base || ‚page‘ == $screen->base )
$hidden = array(‚slugdiv‘, ‚trackbacksdiv‘, ‚commentstatusdiv‘, ‚commentsdiv‘, ‚authordiv‘, ‚revisionsdiv‘, ‚postcustom‘);
// zde odstraněno ‚postexcerpt‘, tzn. stručný výpis příspěvku,
// který bude nyní v editaci příspěvku viditelný stále
return $hidden;
}
\—

screen-options
screen-options

Je rovněž možné „odstranit některé metaboxy úplně“:http://pastebin.com/wsN2F8XS.

Potřebujete-li přidat pole ‚stručný výpis‘ i do administrace stránek, stačí do functions.php přidat

/—code php
add_post_type_support( ‚page‘, ‚excerpt‘ );
\—

Update upraveného WordPress pluginu

Určitě tuto situaci znáte. Nainstalovali jste si WordPress plugin, ale po chvíli používání jste zjistili, že vám nějaká funkcionalita chybí a plugin jste si ručně upravili. Jak ale tuto situaci řešit, když vyjde nová verze pluginu? Jak zajistit, abychom měli aktuální plugin a zároveň nepřišli o naše úpravy. Popíši vám postup, jak tuto situaci řeším […]

Přesměrování na specifickou verzi mobilního zařízení

/—code php
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/m/.*$
RewriteCond %{HTTP_ACCEPT} „text/vnd.wap.wml|application/vnd.wap.xhtml+xml“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „wapp|wapr|webc|winw|winw|xda|xda-“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „up.browser|up.link|windowssce|iemobile|mini|mmp“ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} „symbian|midp|wap|phone|pocket|mobile|pda|psp“ [NC]
#————- The line below excludes the iPad
RewriteCond %{HTTP_USER_AGENT} !^.*iPad.*$
#————-
RewriteCond %{HTTP_USER_AGENT} !macintosh [NC] #*SEE NOTE BELOW
RewriteRule ^(.*)$ /m/ [L,R=302]
\—

Zobrazení seznamu podstránek na stránce

**Xavin’s List Subpages**
„http://wordpress.org/extend/plugins/xavins-list-subpages/“:http://wordpress.org/extend/plugins/xavins-list-subpages/

This plugin adds the ability to put a tag in your page entry and have it display a list of pages. By deafult it will show the subpages of the page that it is on, but it will accept any of the options the wp_list_pages template tag will except title_li and echo. It is very simple to use, just put [xls] in the entry for your page where you want the list to appear.

Umístění html tagů do nadpisu

1. Create a custom field for the title with HTML

[* http://digwp.com/wp-content/blog-images/html-title-custom-field.png *]

2. Output custom field on pages you want the HTML

For example, on the single.php page where you would have used

/—code php

\—

Now you use

/—code php
ID, „HTML_title“, true);
if ($html_title) { ?>


\—

Zobrazení kontextové nápovědy (tooltipů)

**Tippy**
„http://wordpress.org/extend/plugins/tippy/“:http://wordpress.org/extend/plugins/tippy/
„http://croberts.me/tippy-for-wordpress/“:http://croberts.me/tippy-for-wordpress/

This plugin allows users to create *custom* popups or tooltips in their postsp using a special [tippy] tag. The style and behavior of the tooltip are highly configurable through CSS and through the WordPress dashboard.

Minimalistické šablony vzhledu

Použitelné bezplatné minimalistické šablony

„Cleanr »“:http://wordpress.org/extend/themes/cleanr
„Náhled »“:http://wp-themes.com/cleanr?TB_iframe=true&width=1576&height=674

„Clean Home »“:http://designresourcebox.com/wp-content/plugins/download-monitor/download.php?id=506
„Náhled »“:http://midmodesign.com/

Automatické publikování výstřižků z jiných webů

**Autopublish**
„http://wordpress.org/extend/plugins/autopublish/“:http://wordpress.org/extend/plugins/autopublish/

Highlight as you surf. Ever blogged about something you read online? Shared a webpage? Or linked to another webpage? Now automatically embed/quote a part of any web-page (and your comments) within your own page without ever leaving the page you are on.