Motto: „Suchou nohou ani náhodou, o kraťácích a dresu nemluvě…“ Pokračovat ve čtení „50 brodů na Krakovec a Skryje u Berounky“
Split up images and text
Pulls out all your images in your post and puts it in a separate div. Pokračovat ve čtení „Split up images and text“
Check If Mobile Device
This functions checks if the user is visiting using a mobile device and returns result in true or false. Pokračovat ve čtení „Check If Mobile Device“
Reset your password
So you’ve lost your password, huh? There is a way to change it the hard way, if you can’t use the ‘forgot password’-function for whatever reason. Insert this command in to a PhpMyAdmin Sql-window.
CODE SNIPPET:
1 |
UPDATE `wp_users` SET `user_pass` = MD5('NEW_PASSWORD') WHERE `wp_users`.`user_login` =`YOUR_USER_NAME` LIMIT 1; |
Paypal Donation Shortcode
This code will make it simpler to accept paypal donations.
To use it, simply place the above snippet in your functions.php file and use any of the shortcodes below. Pokračovat ve čtení „Paypal Donation Shortcode“
Facebook like button
Add a Facebook like button to a page by pasting this code where you want it. You can modify the parameters, see Facebook docs.
CODE SNIPPET:
1 |
<script src="http://connect.facebook.net/sl_SI/all.js#xfbml=1"></script><fb:like href="<?php echo get_permalink()?>"; layout="standard" show_faces="true" width="450" font="arial"></fb:like> |
QR code with article link
Just insert the above code inside the WordPress loop, and a QR-code will be rendered for every article.
CODE SNIPPET:
1 |
<img src="http://api.qrserver.com/v1/create-qr-code/?size=500x500&data="<?php the_permalink() ?>" alt="QR Code for <?php the_title_attribute(); ?>"/> |
Author Bio Excerpt
When you like to show a short intro of the author bio of a post and not his complete bio. Use this code snippet to make an excerpt of the bio, with a link to the author page, where you can show the full bio. Pokračovat ve čtení „Author Bio Excerpt“
Pagination without plugin
This snippet creates a classic paging navigation like the one seen in WP-PageNavi, which give a better overview for the user. It’s easy to implement and gives you total control over the output. I’ll give you an example of how it can look: Pokračovat ve čtení „Pagination without plugin“
Dolomity 2015
Ještě před vypuknutím pořadatelského běsnění kolem Karlovarského AM Bikemaratonu jsme se rozhodli vyčistit hlavy a plíce v dvaapůlkilometrových nadmořských výškách italských Dolomit. Letos jsme zvolili oblast Passo Tonale ve Val di Sole a Gruppo di Brenta nad Madonna di Campiglio.
Účastníci: Dan, Franta, Míša, Marťas, Pepa, Radek, Pavka a Tomáš.
Termín: 11. – 18. července 2015
Počasí: Nebývalá horka, přes den až 35oC, v noci dvacítky, slunečno. Pokračovat ve čtení „Dolomity 2015“