Skip to main content

Tech Help

  • Latest Posts
  • Tools
  • Tutorials
  • Troubleshooting
  • Random Number

Tag: wordpress

Change the_excerpt() word length in WordPress

December 17, 2011January 4, 2012 contrib Leave a comment

By default the WordPress the_excerpt() tag displays the first 55 words. To assign a custom length just add the following code to your theme’s functions.php file. The return value in the custom_length function will change the word length of the_excerpt() tag. function custom_length( $length ) { return 30; } add_filter( 'excerpt_length', 'custom_length', 999 ); Tested […]

Read More

Redirect WordPress login logo link

December 16, 2011January 4, 2012 contrib Leave a comment

If you want your wordpress login logo to redirect to your site root add the following code to your theme’s functions.php file add_filter('login_headerurl', 'my_login_url_local'); function my_login_url_local() { return get_bloginfo('url'); } Tested with WordPress 3.3

Read More

Change WordPress login logo

December 16, 2011January 4, 2012 contrib Leave a comment

If you want to change the default wordpress logo on the login page, you can add the following code to your themes functions.php file. Make sure /images/login-logo.png is present in your theme folder. function custom_login_logo() { echo '<style type="text/css">h1 a { background-image:url('.get_bloginfo('template_url').'/images/login-logo.png) !important; }</style>'; } add_action('login_head', 'custom_login_logo'); tested with wordpress version 3.3  

Read More

WordPress post install tips

December 15, 2011January 4, 2012 contrib Leave a comment

Some useful tips to remove wp generator, meta generator etc…  http://www.labnol.org/internet/blogging/wordpress-tips-post-installation-hacks/3931/

Read More

Posts pagination

Newer posts 1 2

Search

Fields

Tags

apache apple audio benchmarking code snippet cpu CSS data recovery diagnostic disaster recovery docker download dvd error excel files graphics HDD html Intune ipad linux media MSI music overclocking php powershell proxy RDP remote access remote support security ssh stress testing testing tutorials ubuntu video wamp windows windows 10 wordpress workspace one wsl

Recent Posts

  • Docker Desktop Custom Install using Command Prompt
  • Reset Local GPO Settings to Default
  • Laravel 9 Sail Redis Supervisor Queue Configuration
  • Intune Force Sign Out of User After Restart or Cold Boot in Windows
  • Intune Disable Last Signed In User in Windows

Other Pages

  • Privacy Policy
  • Terms and Conditions
sparkling Theme by Colorlib Powered by WordPress