Tag: conditional tag

  • 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