To highlight the entire tag’s block, locate cursor on opening or closing tag and press CTRL+Shift+. To find matching opening/closing tag, first declare it by
Read moreLoading Google Analytics in external js file
Here is a great way to load analytics via an external js file: (I created a function, but you can also run it directly)
Read moreBasic multiple cursors / multi line editing in VS code tips
ALT + mouse click adds an additional cursor in that position. When you select text in VS code it highlights all occurrences of the same
Read moreRedirect all links under sub-folder to sub-domain
Recently we moved our WordPress blog from residing under a sub-folder (mysite.com/blog/) to its own sub-domain (blog.mysite.com). Although in various articles this move is not
Read moreXbmc plays audio video stays blank
After buying a new xbmc / kodi tv box (Chinese clone of mx2) I went through the entire setup, adding the various add-ons just to
Read moreHiding an element on smaller screens / mobile
Put the element you want to hide into a div with an id=”something” in css use: @media screen and (max-width: 580px) { #something { display:
Read moreDealing with a move to a case sensitive server (linux) from a case-insensitive one (windows)
In order to avoid 404 pages showing up for incorrect letter cases, all file names should be lower case and when not matching from an
Read morewordpress – hiding page title
in content-page.php file, near the beggining there is a line that displays the title of the page – something like – <h1>..page_title….</h1> removing the line
Read moreHTML wordpress log-in form + Redirecting a failed log-in back to the custom login page
Log-in form: <form method=”post” action=”http://www.site.com/wp-login.php” id=”loginform” name=”loginform”> <p> User: <input type=”text” tabindex=”10″ size=”20″ value=”” id=”user_login” name=”log”> <br /> Password: <input type=”password” tabindex=”20″ size=”20″ value=”” id=”user_pass”
Read moreResetting wordpress admin password when you have only ftp access
Through FTP There is also an easy way to reset your password via FTP, if you’re using the admin user. 1. Login to your site
Read moreCreating a template site with PHP
Templates should consist of 2 parts: getting data part and displaying data part. While getting data, not a single character should be printed out. If
Read moreSmoothing text with a shadow
1 |
style="text-shadow: 0 0 1px rgba(0,0,0,1);" //color should be adjusted to match the font-color of font being smoothed |
WordPress plugin – slider / rotating banner – Meteor Slides
Works well, no Adobe air, easy to customize: http://jleuze.com/plugins/meteor-slides/customizing-the-stylesheet/ problem I had with firefox – hovering over the slider made it jump. Commented the following line
Read moreHow to Create a Custom Page Template in WordPress
Have you wondered how some people have completely different looking pages on their WordPress site or blog. In this tutorial we will show you how
Read morewindows 8 freezes – view events
After fresh install of windows 8 on an old computer (7 years old P4 with ASUS motherboard) it freezes-up / hangs from time to time.
Read more