Goal: add own functions to the wordpress site Forget the functions.php! Frankly this is working only until the next update :(. My way is to create a totally separated file with the added functions: 1. Let’s create a new file functions_added.php Never put php close tag ?> to the end of the file! 2. Put […]
Archive for the 'wordpress' Category
WordPress add functions – safe method
16:40 |
tricky, wordpress |
777 views
wordpress date format Cheet Sheet
21:23 |
, wordpress |
970 views
Goal: wordpress date formatting reference sample Day of Month Weekday Month Year Time Full Date/Time see also: http://codex.wordpress.org/Formatting_Date_and_Time
Goal: wordpress date formatting reference sample Day of Month Weekday Month Year Time Full Date/Time see also: http://codex.wordpress.org/Formatting_Date_and_Time
post editor with TAB support and ctrl+s to update post
20:00 |
javascript, wordpress |
1036 views
Goal: to use the TAB key in the post editor 1. The following code catching the TAB key and replace it with 2 spaces. The second effect is to replace all the TAB occurences (hold the SHIFT key while press a TAB down). 2. You can update your post with alt+p (this is the default), […]
Goal: to use the TAB key in the post editor 1. The following code catching the TAB key and replace it with 2 spaces. The second effect is to replace all the TAB occurences (hold the SHIFT key while press a TAB down). 2. You can update your post with alt+p (this is the default), […]
wp loaded javascript files – absolute path to relative one
23:28 |
wordpress |
872 views
Goal: convert all the javascript file references to relative The main problem appeared when I tried to check my blog from a virtual machine. In the machine my local blog address started with an IP like this http://192.168.0.100/… and the absolute links were like this: http://localhost/… – crash To solve this problem I need a […]
Goal: convert all the javascript file references to relative The main problem appeared when I tried to check my blog from a virtual machine. In the machine my local blog address started with an IP like this http://192.168.0.100/… and the absolute links were like this: http://localhost/… – crash To solve this problem I need a […]
sidebar count with style revisited
11:40 |
wordpress |
893 views
Goal: fix all the sidebar list (archives by …, categories) I did this correction earlier on categories list ( see also: category count with style ). I will do this on archives list as well based on the previous solution and overriding that one. 1. get the archives list with count: 2. counter changes: We […]
Goal: fix all the sidebar list (archives by …, categories) I did this correction earlier on categories list ( see also: category count with style ). I will do this on archives list as well based on the previous solution and overriding that one. 1. get the archives list with count: 2. counter changes: We […]
make a smarter Enlighter Syntax Highlighter
10:25 |
wordpress |
1197 views
Goal: to add some usefull functionality to the Enlighter plugin In my blog I use the Enlighter plugin to colorize my code sections. The plugin is great, but have some defect. My extender/customzier is the following: 1. the code block height maximized to 140px and added to div style 2. I’ve added 2 controller to […]
Goal: to add some usefull functionality to the Enlighter plugin In my blog I use the Enlighter plugin to colorize my code sections. The plugin is great, but have some defect. My extender/customzier is the following: 1. the code block height maximized to 140px and added to div style 2. I’ve added 2 controller to […]
easing fix for wordpress
23:44 |
jquery, wordpress |
836 views
Goal: run easing animations under my page. The story similar to jQuery and wordpress one. Find the file in the theme directory and include two lines above like this see also: Easing Cheat Sheet
Goal: run easing animations under my page. The story similar to jQuery and wordpress one. Find the file in the theme directory and include two lines above like this see also: Easing Cheat Sheet
category count with style
12:43 |
wordpress |
996 views
Goal: fix the categories list Get the Categories list: The result is not too correct. The count is out of my style. To correct this I will wrap the count into a span and I can stylise that after. Add a new filter to the category list creator. Insert this code to the end of […]
Goal: fix the categories list Get the Categories list: The result is not too correct. The count is out of my style. To correct this I will wrap the count into a span and I can stylise that after. Add a new filter to the category list creator. Insert this code to the end of […]
Set the language – change the localisation
20:16 |
wordpress |
872 views
Set WPLANG parameter inside of wp-config.php
Set WPLANG parameter inside of wp-config.php
wordpress soft exit
17:29 |
wordpress |
924 views
Goal: after the exit link click keep the focus on blog page with a simple refresh. The exit link is generated by . Put the generated link into an identified container like this. Catch the link object and override the click action (but only the logout action): So the result is: when you click on […]
Goal: after the exit link click keep the focus on blog page with a simple refresh. The exit link is generated by . Put the generated link into an identified container like this. Catch the link object and override the click action (but only the logout action): So the result is: when you click on […]