Categorie: Wordpress-CMS

  • WordPress shortcode – snapshot of website

    Display a snapshot of any website, and place it on your blog? Use a shortcode. Paste the following code into your functions.php file:   Usage shortcode without thw first “: Example: [snap url=”” alt=”google” w=”400″ h=”300″]

  • Change WordPress login url

    Edit .htaccess file and add the following code. Before editing backup your .htaccess file

  • Customizing WordPress Admin

    Remove the Admin Bar putting the following in functions.php:

  • Custom wordpress login

    Make a custom login copy the following piece of code, and paste it on your functions.php file Of course your image will replace the original one so there is a size to respect. Your picture must have the following size: 333×85

  • Extend or remove some fields in User Profiles

    WordPress user profiles include several contact fields (e-mail address, a URL, AIM, Yahoo, and Google Talk) and these built-in contact fields are not always useful. It is possible to extend or remove some fields with just a few lines of code in functions file. In the following code we will add a Twitter field and […]

  • Changing excerpt

    Changing excerpt lenght In WordPress it is possible to change the excerpt length by simply returning the desired number of words as an integer. In this example we will output the first 75 words. Create a variable an put it on top of your functions.php so you can quickly change it. Changing excerpt more The […]

  • Insert shortcodes in widgets

    Just add a filter in functions.php, as shown below. Now you can add shortcodes in Widgets just as you do in a normal post or page.

  • Allow more file types for upload

    If you ever tried to upload some not so common filetypes, such as .ai to your WordPress blog, you may have experienced an error, because WordPress simply doesn’t want you to upload some other file type. Fortunately, you can add new file types to WordPress whitelist. Paste the followingcode in your functions.php, and you’re done. […]

  • Removing autolinks in comments

    Paste the following into your functions.php file. Once you saved the file, you’ll notice that autolinks have disappeared.

  • Post thumbnail in your RSS feed

    The the_post_thumbnail() function is very useful to easily add and display a thumbnail attached to a post. Unfortunately, there’s no built-in way to display this thumbnail on your RSS feed. Simply paste it in your functions.php, save it, and the post thumbnail will be automatically displayed on your RSS feed.