You did call the header twice in your page-static.php
. You can remove the second call (before the_post()
).
If you remove the second call of the_header()
, the Stylesheet should not be delivered anymore.
<?php
/*
Template Name: Static Page
*/
?>
<?php wp_dequeue_style( 'style' ); ?>
<?php get_header('custom'); ?>
<?php the_post(); ?><!-- this enables the page content to show up below -->
<body class="static">
<!-- Begin page content -->
<div class="container">
<div class="main-content">
<div class="row">
<h2><?php the_title(); ?></h2>
</div>
<div class="main-text">
<?php the_content(); ?>
</div>
</div><!-- end main-content -->
</div><!-- end .container -->
<?php get_footer('custom'); ?>
Related Posts:
- How to *remove* a parent theme page template from a child theme?
- How to Change 404 page title
- How to redirect WordPress home page to custom static HTML page
- How can I create an alternative home page?
- page_template toggle between 2 templates + 2 permalinks for same post
- Woocommerce Product page edit
- For custom templates, is it better to use `template_include` or `type_template`?
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- need help with a user-specific custom page template
- Prepopulating a specific page template with HTML/CSS
- custom meta box for page default template
- List top 5 authors with most posts
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- How to create custom search page
- WordPress archive index page
- How to create a custom WordPress front page
- Custom Same Page Search
- change top banner content on specific page
- How to set up conditionals in page templates?
- How To make Custom page of every Category
- Remove Sidebars from page
- Product page not found if product data is set Appointment Service
- Page with some post value id showing page not found
- Why does a custom php code inside a custom template not get executed?
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Create page when a new site in multisite network is created?
- Custom stylesheet not loading
- Displaying Child Page’s Information
- Adding pages to the Admin panel
- Setting Custom WordPress “Posts page” AS “Front page”
- Page template with custom html fields inside a content
- Single page template
- Adding page Title in a custom coded page
- use another theme for just one page
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- how to change “published date” format on edit.php (Posts page)?
- Custom category order with get_categories
- Pagination Help on Crazy Custom Authors Page
- Getting rid of the #038; when string replacing content
- Querying multiple WordPress custom fields with AND qualifier
- WordPress custom post types breaks permalink on theme reinstall
- Creating a searchable A-Z listing of hundreds of companies/services
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- Custom column under All Users (multisite network admin)?
- add_rewrite_rule won’t work
- How To Add buttons to the toolbar which appears in TinyMce when you click over images
- Last time a user logged in
- WordPress equivalent to Drupal Views? [closed]
- Posting as different users
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- How did I enable atom feeds in a fresh WP3 install?
- Hide editor with specific post meta value
- Custom URL going to 404
- WordPress slugs and 404 handling takes preference over folders in site root?
- Suggestions for Implementing a Wedding Website in WordPress?
- Add a date updated/date modified option using custom fields
- How do I change .css versioning?
- Get ORIGINAL image links from get_post_gallery
- Save title as custom field on custom post type
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- CSS Customizations for certain page
- My custom sql query for getting a username giving me a warning and an error
- Semi complicated custom taxonomy question
- Archive subtitles for different types of archives
- Duplicated content with custom shortcode
- Display a list of subcategories (from specific Category) a post belongs to
- Implement a Walker with custom object rather than WordPress database object
- Adding tags when creating new post
- Custom Content Page
- Add Member’s birthdate from Backend and shows it on frontside [closed]
- How to add functionality to an existing theme (using child themes)
- URL and Site title outputting on Login page
- 404 when Previewing an unsaved draft
- Custom field not editable by the user
- How do I make mysite.com/comingsoon WordPress to become my main website’s WordPress?
- Use a custom page with dynamic content as a user profile page
- Customize section does not show my widget areas
- Invitation link to a site in multisite network does not work?
- Add helper text in custom-header section in admin
- How to edit content in code view of home page when there is some theme applied?
- Lightbox not showing image caption
- WordPress core jquery version file not loaded?
- Can we add an extra button on woocommerce shop page and use it to send the product info including image in a mail?
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- Add a custom intro page
- clickable toggle menu, help
- How to append the excerpt to the content in the single post page?
- How to Password Protect whole site except for some subdirectories
- Custom dropdown search form that allows users to select option B based from Option 1
- Ordering a specific post type
- Header image doesn’t show up on page
- How to get name and email value from a custom form and add it to campaign monitor subscriber list?
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- “Static” pages within a theme
- Assign classes to Custom fields
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected