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?
- How important is it to enqueue a theme’s stylesheet?
- Can a theme be built in React?
- Strict Standards Error bootstrap navwalker
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- register_sidebar ignores ‘id’ and ‘class’
- Posts in multiple Categories different single.php
- Single Page WordPress Theme – Using page templates
- Confused about image sizing business in WordPress
- Add link option to featured image?
- Creating the modern ‘single page’ html5 css3 layout in wordpress
- esc_url not working within add_settings_field callback
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How can a Theme Contain no Header File or Footer File?
- Same footer on all multisites blogs
- New template, where to place CSS?
- WordPress not registering Theme Customization Section
- Understanding WordPress(framework?) Web Development
- For best DB performance should I serialize all theme options together or by type?
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Custom Widget options in theme
- Include Parent functions.php in Child Theme functions.php
- Redirect to specified page when insufficient permissions?
- Reasons why all thumbnail sizes aren’t working
- Jetpack Comments with fall-back
- Update a custom theme with Subversion?
- Should I use add_filter for functions in function.php of the theme?
- wp_script_add_data doesn’t seem to work
- How to override checkbox styles if these inputs have a unique id [closed]
- What are the minimum role/permissions for freelance developer?
- Where am I doing wrong in my theme menu?
- Calculate data and passing to Theme
- Multisite theme path rewrite using .htaccess
- Retrieve localised value
- How to disable wordpress from overload my stylesheet styles with customizer styles
- Question regarding WP multisite feature
- Call to undefined function add_menu_page() on theme activation
- “Theme without sidebar.php is deprecated”
- The Content is not Wraping in tag
- Is it acceptable for a WordPress theme to not accept widgets?
- Should all references to a text domain be to my current theme?
- WordPress Settings API not saving options
- wp_nav_menu with default pages menu
- How To Detect Posted Comment in Theme Development?
- where is real values of variables?
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- using Options Framework – can “theme-textdomain” domain be changed?
- How to add sidebar to Isola theme? [closed]
- How to remove WP Title Tag?
- Change the sidebar from left to right twentyfourteen theme
- Custom theme won’t use search.php
- Get attachment meta (I need attachment ID, unsure how to find it)
- Retrieve WordPress’ the_content() with jQuery
- Minimal WordPress Functionality on Existing Website
- W3 total cach and theme changes [closed]
- How to add testimonials with an image?
- How to setup sidebar modules to use jQuery Accordian
- How to copy page/post from one theme to another?
- Add class every 4 post like , class_1, class_2, class_3, class_4 and class_1, class_2, class_3, class_4
- Using has_term() function for category-subcategory structure
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- How can I not disable my theme when I want to upload a new version of it?
- Avoiding do_shortcode() loops
- WordPress Post Order
- Why content is not adding for each blog post
- Correct was to customise theme using get_theme_mod in scripts
- Recent post in the middle of the content
- How to figure out which wordpress theme a site was using?
- Best way to allow for extended use of WordPress functions inside single.php
- Flexslider not working for my custom theme WordPress
- Redirect to custom login page
- How to close open divs in post loop
- How to Disable Color Options?
- Workflow of Collaboration on wordpress development [closed]
- How to make admin theme option with image slide show?
- Explanation of User Roles and Capabilities
- How can a theme define which settings for blocks are available in the block editor?
- how to combine wordpress and front framework
- Starter Bootstrap and Custom Fonts
- How do I access the current post object within a block theme template or pattern?