Instead of page slug use page id like is_page(12)
where page id 12
Edit
Your code should work I afraid your page slug is not same, so it will be safe to use page ID instead of slug
Related Posts:
- Check if wp-login is current page
- Conditional tag to check if ‘page.php’ is being used?
- Putting footer content in a “page” – Doing it wrong?
- Why doesnt ONE of my links in the footer work properly? [closed]
- conditional tags- how to use with shortcodes
- Getting ACF Field in Page – From the Footer
- Show content if page is a grandchild of top level page
- Print page content with formatting when doing custom SQL query
- Add homepage to the list of pages in the Footer Widget
- Search Page: activate html code if the tag is on the page
- Displaying Content Only in Certain Page IDs Not Working
- Adding CSS styles to Admin Area PAGES only (not POSTS or CPT)
- Footer doesn’t display in page.php
- How to load javascript on custom page template?
- Change page template programmatically ?
- Get top level page parent title
- Link section within page with slash (/) and not hash (#) without reloading the page
- Creating a template using a specific slug name, for a page with a parent page
- Is there a default template file for child pages / subpages?
- Increment Page Order As Pages Are Created
- Add custom admin menu item for pages using a certain template
- Where does the 404 redirection happen?
- How to limit page pagination
- Display latest comments on page with pagination
- How to add pages to feed?
- Add custom text at bottom of every page?
- Creating custom page
- Want Page Title to show on menu, but not on page
- How to create a metabox that will list all my pages in a dropdown selector?
- Personal page for every user (not just authors)
- Create ghost page
- Relative instead of absolute links in pages?
- Produce a plain page with only a message
- load common thank you template with different content for different pages
- Password Protected Page Title
- Send mail from page using wp_mail
- Edit page’s “Restore the backup” link does nothing
- Show preview posts and pages to clients
- Page displays content from different query?
- Site url is not showing the home page
- Can’t locate a hidden private page
- I can’t edit my homepage – the page editor is just blank [closed]
- Making audio playlist by getting page’s parent’s ID
- Restricting Pages based on Hierarchy and User Role
- Layout Builder.
- Edit custom HTML page from WP admin dashboard
- Pass data from one page to anothe file/page in wordpress
- Get the Current Page Slug-Name
- Display child pages in a parent page? [closed]
- How to use is_admin in page content?
- Why isn’t WordPress respecting my HTML?
- block a page from logged out users and redirect to homepage
- Edit page shown after login in WordPress?
- Disable ADD PDF media button on rich text editor
- invalid argument in foreach when trying to list custom post types in archive.php
- WordPress page not taking precedence over server directory
- How to properly enable comments form in page template
- How do I reference the front page’s parent Page object?
- trying to add a author value in wp page links?
- Check if has pages?
- page template – undefined structure in source code
- My site does not load but downloads a file (wordpress)
- what does the symbol “?” mean and how can i edit that page?
- Show children connected to parent pages
- Display latest comments (global) with replies on a page
- Set different heights per screen size with inline styles CSS into the ‘Text’ section of a Page
- Editing Pages Icons Are Not Showing Up – Why is this happening?
- Some pages can’t be updated – post_content field not updating
- How to publish pages under a subdomain url?
- Cannot pull WYSIWYG content
- how to setup subdomains for pages?
- How to approach need for virtual page on my WP site?
- How can I change the background color of a contact box? [closed]
- Press This for Page
- Supress listing of virtual pages
- How to limit the pages shown in the page manager to those created by the logged in user?
- How to end the Page Load Event and load after that?
- How can I add a new page in the pages tab that belongs to specific theme?
- New page has incorrect URL
- Issue with page not erasing
- How to migrate .HTML pages to WordPress
- Separate Editing from Publishing for pages
- Call a function on every wordpress pages only
- Echo page path suffix only – not the title, path or permalink
- Programatically create multiple pages by passing in array of info
- Custom admin menu for a selection of pages
- Create custom archive page for individual authors which is separate from the author.php page
- Showing certain page without redirection
- How to add or remove metabox each page separately?
- Retrieve page content and pass to PHP?
- How to make in post Parent page children page list nummbered
- Get moderation notifications on one post only
- Advanced Multi Tier Navigation across columns
- How To Display Pages Based On Subscriber Signup Date
- How to preview a page instead of a category?
- Display random page
- Custom wp_list_pages() function
- display new WordPress page content
- Dashboard show only published pages instead of all pages
- May I know where to edit the tax rate?