You can try using the wp_head hook like this and checking if it’s a post or page you want it to load on with an if statement:
function wse_add_snippet_to_header() {
//replace the array with your own post ids that you want this on
//replace is_single with is_page if you want to check for pages instead of posts
if (is_single(array(1234, 1254) {
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dio="http://docs.dionera.com/namespace/DioML">
<?php
}
}
add_action('wp_head', 'wse_add_snippet_to_header');
Related Posts:
- Open source social media icons to download and use on website? [closed]
- CSS calc width and height values
- HTML encoding issues – “” character showing up instead of ” “
- Center image using text-align center?
- CSS Background Opacity [duplicate]
- How to create an HTML button that acts like a link
- HTML 5: Is it
,
, or
? - What does In html mean
- Center image horizontally within a div
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- How to get a tab character?
- How to make JavaScript execute after page load?
- Is there an upside down caret character?
- Prevent line-break of span element
- How to align iframe always in the center
- Stop floating divs from wrapping
- Expected RBRACE, but the bracket is there?
- How to make an image center (vertically & horizontally) inside a bigger div
- How to center text with Markdown?
- How can I get the values of data attributes in JavaScript code?
- Disable Scrolling on Body
- Darken CSS background image?
- Alternative to iFrames with HTML5
- Responsive image map
- CSS color vs. background-color vs. background?
- How to wrap text around an image using HTML/CSS
- javascript close current window
- How to make a whole ‘div’ clickable in html and css without JavaScript?
- How (and why) to use display: table-cell (CSS)
- Vertical Text Direction
- How to darken a CSS background image?
- How can I create a marquee effect?
- What is “X-Content-Type-Options=nosniff”?
- How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?
- How to set Helvetica font?
- Indent starting from the second line of a paragraph with CSS
- How to make an input type=button act like a hyperlink and redirect using a get request?
- Resize image with javascript canvas (smoothly)
- Get checkbox value in jQuery
- Including external HTML file to another HTML file [duplicate]
- CSS list-style-image size
- html not linking css
- How to display hr horizontally with flex?
- How can I override Bootstrap CSS styles?
- Can’t fix: ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags
- How to disable auto-play for local video in iframe
- Styling an input type=”file” button
- How to stick footer to bottom (not fixed) even with scrolling
- Setting table row height
- How do I disable the resizable property of a textarea?
- How to semantically add heading to a list
- Multiple distinct pages in one HTML file
- How to change the background-color of jumbrotron?
- JavaScript: Get image dimensions
- What replaces cellpadding, cellspacing, valign, and align in HTML5 tables?
- vertical-align with Bootstrap 3
- What is the difference between localStorage, sessionStorage, session and cookies?
- How to display Base64 images in HTML
- How do I align in my image to move it vertically up?(CSS,HTML)?
- How to center links in HTML
- Bootstrap Columns Not Working
- How to center an unordered list?
- How to fix “insecure content was loaded over HTTPS, but requested an insecure resource”
- How to make div appear in front of another?
- PHP Include Nav-bar For Every Page Techniques?
- Form inside a table
- How do I change the font color in an html table?
- Do you have to include link rel=”icon” href=”favicon.ico” type=”image/x-icon” /?
- JQuery: ‘Uncaught TypeError: Illegal invocation’ at ajax request – several elements
- What is the best practice for creating a favicon on a web site?
- HTML tag is not working
- How to make a DIV not wrap?
- What is the meaning of ? (question mark) in a URL string?
- CSS: Background image and padding
- Scroll to bottom of Div on page load (jQuery)
- How do we remove mystical [X] from text? Image included
- Remove html markup by wordpress
- How can I set different html lang attribute for different countries?
- Add Attribute to p Tag of Post Content
- custom html in page change in browser
- Add Adsense to a website but the server responds with error 510 [closed]
- Can’t save any WordPress post with the html tag in it
- remove string: ‘custom content…’ from every page
- How to disable escaping html chars in wordpress?
- Whitespace Before Doctype
- html entities occur in the_excerpt used as meta description
- Allow Access To Subfolder Of HTML For Logged In Visitors
- Removing Line Break Tags from a Page
- Insert data through a script directly in the db
- Using Tags Instead of Categories for site structure
- Use Mail-Tag from Contac Form 7 in a script
- Line break before headings () appears from nowhere
- Tidy HTML formatting in Gutenberg HTML blocks
- Unable to autoplay and loop a cinemagraph from Imgur
- standard callback function for wp_list_comments
- How to replace a specific html tag in bulk?
- Inserting code into a page just shows raw HTML
- How can I insert a disclaimer in a WordPress site?
- How to play a video after the end of another one via link?
- Moving from Microsoft Front Page 2003 to WordPress