I' ve activated the plugin You' ve recommended me (custom-javascript-editor), but the code I' ve type in doesn' t work (js inspector says: "undefined variable $" - it looks like jquery.js file isn' t loaded but it is).
Would You tell me, in which .js file i can (if i can) i can paste custom code?
Of course $ is not defined cause in Wordpress jQuery is run in safe mode to not make any conflicts. You should either use jQuery instead of $, or run your code in such wrapper and then you can use $.
Comments
With regards.
By the way: If there' s no predefined solution, I would do it by jQuery' s "appendTo()" method, but where I can paste the code?
Kind regards,
For custom javascript you can use this http://wordpress.org/plugins/custom-javascript-editor/
With regards.
Other words: how i can get same result as here:
http://www.mirror-reality.com/post/category/blog/ ?
Menu item "blog" links to category and has an icon. That' s what i need.
Anyway use same analogy to do it with categories of works.
I am waiting for your explanations:-)
Wit regards.
I wrote to guy, who modificated the template, but he didn' t reply so far.
Regards,
Interesting. So I also wait for info how he did it:-)
With regards.
I' ve activated the plugin You' ve recommended me (custom-javascript-editor), but the code I' ve type in doesn' t work (js inspector says: "undefined variable $" - it looks like jquery.js file isn' t loaded but it is).
Would You tell me, in which .js file i can (if i can) i can paste custom code?
$
is not defined cause in Wordpress jQuery is run in safe mode to not make any conflicts. You should either usejQuery
instead of$
, or run your code in such wrapper and then you can use$
. With regards.Kind regards,
Good luck!