You are missing ‘ in your if statement. Then it should work, and you can use comma to specify various IDs or slugs for pages.
if(is_page('health-fitness')) {
Try this.
Related Posts:
- how to create a conditional content_width for a wordpress theme?
- Formatting ?
- How to hide and content from auto-generated excerpts?
- How to tell if the user is an admin?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Don’t understand why theming is so strange and twisted [closed]
- get_page_template returning nothing
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- How can I optimize this code? [closed]
- How to escape html generate by a loop
- How to code custom special page
- If user is logged in and has a role echo statement
- Why is the `if else` not working?
- restrain filter on get_the_excerpt to queried item in stead of current post
- hide/show a div in wordpress
- New theme HTML5 Support for Search in WordPress 4.4
- Conditional loop based on current page
- Checking conditionals
- Website Developer has gone missing! How to gain full access of your code from a WordPress website?
- When to use _e and __ for the translation?
- With WordPress themes, where do I store the images and files relatively?
- Should `get_template_directory_uri()` be escaped?
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- How to disable 3.1 “Admin Bar” via script for the admin user?
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- two tinyMCE editors in the same page
- Separated Comment from Post
- index.php is not loaded for single posts
- wp_head() not inserting the default stylesheet style.css
- Theme Customizer not loading
- WordPress Customizer Control with React
- File Security Check in wordpress in index.php of theme
- how to implement wp_is_mobile on themes?
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Check if user has enrolled in Sensei LMS Course on Lesson Page
- Is my approach to enqueue styles inefficient?
- Part of Menu Item Hidden on Header Menu
- Child theme style.css versioning
- Disable front-page.php template
- Gutenberg – editor-font-sizes in functions not working
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- Which file handles the block latest posts, I want to examine excerpt handling
- Should we use ob_start() in WordPress short code
- Menu item added in wp_nav_menu_items filter is never highlighted
- Default string not appearing want to translate
- Using a page as home, how do I prevent nav from setting both home and page links active?
- Warning: A non-numeric value encountered in theme functions.php
- How can I ping update-core.php with a script?
- “Add A Widget” button in the Customizer
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- Set parent theme language with custom .mo files
- Change template if tag selected
- Broken theme, template is missing
- Insert Rich Text Editor in theme?
- Which cache is kicking
- Customizer: get_preview_url() inside customize_save_after hook
- How to add custom meta box when you have a custom page template file
- Different themes on one site
- Theme Check errors of theme code
- Allow different tags in widget titles
- Pagination and multiple loops
- Does wordpress add their own classes into nav menus?
- Post archives link yields a 404 Not Found
- Getting white screen of death on category pages because of body_class() function
- Let user to upload multiple time
- get main URL from subdirectory with php
- Is_single not working properly in genesis
- Developing WordPress site behind a static site
- Code showing in wordpress post titles around website
- register_theme_directory() sees custom themes directory, but blank frontend
- How to change parent permalink?
- how to call options on front end and add logo
- Jetpack Infinite Scroll Not Working
- After WP 4.6.1 Update , Blog page started giving 500 error
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- get_theme_mod not pulling css colors into header using wp_head
- Duplicate WordPress site to subdirectory but use same db?
- Menu order of parent menu from perspective of child menu
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Undefined index: debuging error for theme option template snippet
- Multiple Content Shortcodes
- Add the ability of changing background color of a theme [closed]
- How to use esc_attr__() function properly to translate a variable that contains string?
- What to do when child theme is out of date with parent theme
- Permalinks problem with custom theme
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Query for tag given slug
- Image Size wrong during upload