Category: Code Snippet
Full Screen Background on WP Login Page
The following function add full screen background on WP Login page 1. Open functions.php in your theme directory 2. Add this function to functions.php 3. Save
Override CSS property right to left
This case is an example on how to override CSS property right to left We have this AdSense banner floating on the right side of the screen. What if you want to change it to the left Recently, I installed Floating AdSense plugin for WordPress. It’s very helpful to add AdSense banner floating on…
How to add ‘Show Thumbnail’ option in WPZOOM Featured Category Widget
Tribune is a lovely magazine theme from WPZOOM. The theme has custom widgets name WPZOOM Featured Category Widget You could use this widget to display categories on homepage like the demo site (Politics – World – Sports – Automotive). The widget show thumbnails by default, it doesn’t have feature to disable that. What if you want…
Enable Formatting Tags for Content Limit in Genesis Featured Posts widget
Genesis Framework has same function that return the content after trimming and it strips all HTML The following code help you keep or filter some HTML tags when you are using Content Limit in Theme Settings or Widgets (e.g Genesis – Featured Posts widget) Add following to functions.php in the Genesis Framework child theme The…
Keep HTML Tags in WordPress Limit Posts – the_content_limit
This function, the_content_limit controls the maximum amount of characters displayed for an entry on the main page on WordPress homepage posts, e.g Featured Posts, Recent Posts However , the_content_limit stripped HTML tags just like the_excerpt. What if we want to keep HTML tags We make modification to the function, the_content_limit which is usually found in functions.php…
Change Default WordPress Logo Link from wordpress.org to Your Domain Name
When you open WordPress login page, the default logo links to WordPress.org. This is a quick tip for using your own link. Open the functions.php file. Then, add the following lines of code. And be sure to remember the PHP tag enclosure.