I assume your page name is subscribe
for Jquery code you have to specifiy pathname not whole wp url ;
jQuery(document).ready(function($) {
if (window.location.pathname == "/theme/subscribe/") {
document.getElementsByClassName("subscribe").style.display="none";
}
});
in php code here is same example using page name or slug ;
<?php if(!is_page('subscribe') ) { ?>
<style>.subscribe-content{display: none!important;}</style>
<?php } ?>
You can use arry to add more than one page
if(!is_page(array(6677,613) )
Related Posts:
- Custom Taxonomy as checkbox or dropdown
- how to group custom post types
- Page as child in custom post type slug?
- Number of pages – multiple (custom) post types
- Limit widget to a specific registered sidebar
- How to filter post data with AJAX on page?
- Get latest 4 post on a custom post filtered by category
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Hook when adding or editing a specific custom post type? [closed]
- Get child terms of current term of the current post
- Allow duplicate slugs for posts on Custom post type in different categories/taxonomy?
- Assign category to front end post
- wp_query and comment_parent – select only posts with top level comments
- Taxonomy structure of Sport site
- How can I add a column in the wp_list_table of the admin area?
- Custom Post Type with static page for archive
- How to filter the description of a custom post type
- Automatically adding meta data to posts or multiple query help
- Trigger “unsaved changes” dialog for custom post meta changes
- How does the $post_type global variable work?
- how to check if custom post type exists in wordpress
- Archive slider for CPT
- Custom post type not showing in admin menu
- Custom taxonomy in custom post RSS feed
- Set up Custom-Post-Type Author Archive
- Custom Taxonomies not appearing in Admin
- How to create custom post type like Page
- Notice: Undefined index: error and understanding wordpress
- Problem loading custom post type admin page
- Display content based on a users login
- Can taxonomies of custom post types be used with category actions?
- Advanced Custom Fields Plugin – Conflict with Custom Post Type Default Editor
- Add custom field to Posts and sort by it
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Custom post type as home page with custom url
- post tag texonomy rename getting error
- Creating a Custom Post Type
- WordPress Doesn’t Generate Taxonomy Archive
- How to make front end form only accept certain values
- Organize WordPress site, so it can maintain with huge database
- How do you create a custom template to display a category with an image and related posts below?
- Category.php template for custom posts
- Remove permalink for custom post type
- custom post data – how to
- How can i link a custom post type thumbnail to intermediate size
- Category archive in with conjunction with custom post type is empty
- Custom post doesn’t show featured image
- What do the numbers mean at the end of add_action(‘save_post’)…?
- How can I trace inconsistency in loading a template?
- Get posts from Custom Taxonomy
- post body class for current user only if they are the post author
- Custom Post Type archive redirects to home
- postsperpage value not being applied
- Removing numerous Meta boxes from numerous CPTs
- Multiple Loops on a Page Without Duplicates
- get_post_types not working properly in admin
- How to hide a custom field from admin?
- Get terms for a specfic post from multiple taxonomies in custom post type
- Get the latest comment from a custom post type where depth = 1?
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom Post Type, Pagination and 404s?
- Save Custom Post Value
- How to get post count of specific taxonomy that have store name & category
- Do post types share the same records using the same taxonomy?
- Different number posts per page based on custom post type term id
- Duplicate the “Orders” list on Admin Page
- How to check if WordPress object type is already extended by pods
- Problems in paginate_links with custom query loop and MB-Relationships
- Trigger WP CRON from a date in a Custom Field?
- Is it possible to link an external stylesheet, exclusively within a specific single post template?
- Custom post types imported from another wordpress site, not showing on frontend unless I go in and reupdate them
- posts_per_page is not working by term
- Filter Custom Post Type Posts by Taxonomy
- How to display only child category post in related posts in custom post type?
- % encoded URL giving 404 error in WordPress
- CPT: multiple loops with different terms
- Autofill advanced custom field with user data
- How to detect if an other front-end post/page is in HTTPS/SSL from admin to display a notice?
- Limit Number of Custom Post Type Dashboard
- Reference field of users in custom post type
- Missing Custom Post Type Metadata
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- Get posts of an specific term of a custom taxonomy
- WP_Query return highest number only
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- User schedule a post?
- Excert ( the_excerpt(); ) Not working properly
- Keep same archive.php for post from archive?
- Use one template for different custom post types with the same markup
- Events with multiple event dates + permalink for each date
- After rewriting post type’s URL, the number of queries has increased dramatically
- Custom field totals
- How to Associate Posts with Pages
- How to query custom post then display sections by meta value
- Prevent users from changing post status
- How do I paginate a custom post type listing on a custom template page?
- What is the code for showing Custom Category and Subcategory Page?
- Rewrite nested urls for custom post type
- Custom Post Type featured option
- Rewrite rule taxonomy url with different values in one function