Tag: code snippet
WordPress: Conditional tag to check a specific menu
Following conditional tag usually use in this filter function, wp_nav_menu_items For an example, I want to add search box to Primary Menu in WPZOOM theme name Videozoom. Conditional tag above make sure the search only show in a specif menu (Primary) 1. Open functions.php 2. Add following code to functions
WordPress Conditional Tag for Login Page
WordPress have conditional tags. The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches Following conditional tag is specific to Login Page, that is currently not available on WordPress Codex
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…