Archive for May, 2014

29 May 2014

category count with style

12:43 | wordpress | 879 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 […]


29 May 2014

simple paralax effect on page

8:37 | web trick | 815 views

Goal: simulate 3d effect on the page. To to this we need minimum two layers. The foreground layer moving faster than the background. That’s all. The foreground layer is the page itself. We need to create a slower background layer. To do this we need a container DIV on the page. The size of this […]


28 May 2014

Set the language – change the localisation

20:16 | wordpress | 772 views

Set WPLANG parameter inside of wp-config.php


28 May 2014

wordpress soft exit

17:29 | wordpress | 814 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 […]


28 May 2014

wordpress remove admin bar top margin

17:22 | wordpress | 904 views

After exit from admin mode I’ve reaized that the page have an unwanted top margin. The reason is in the the admin-bar.php file function _admin_bar_bump_cb() { ?>


28 May 2014

open editor in new window

15:11 | wordpress | 745 views

The editor link generated by a function named with the following command: So this function generate a structure. There is no target attribute defined. We need to change this manually. Open the ..wp-includes/link-template.php file and find this row: Just add the target attribute and done.


28 May 2014

enable jquery in wordpress

14:26 | jquery, wordpress | 778 views

1. include the jquery into your theme Find the file in the theme directory and include one line above like this


28 May 2014

javascript extender (TypeExtend)

12:28 | javascript | 742 views

I have read on many pages that this is evil like eval. Everything is evil if you can’t use that. Unsafe extend. In this sample I aggree with the evli idea. This is simple and dangerous. Safe version. Better but not the best. the skeleton and the code instead of this almost nice solution do […]


27 May 2014

string contains other or not

22:39 | javascript | 677 views

in c# we can use to check a string So I need a similar function in javascript. Here is:


27 May 2014

replace all linkable url in a string to real link

22:38 | javascript | 708 views

As earlier to solve this is easy to extend the string object.


#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }