You can use this function: http://codex.wordpress.org/Function_Reference/body_class
Use this in your header.php
<body <?php body_class(); ?>>
This gives each page a different class and so you can use CSS to set the font-family for a specific page like so:
body.blog span.yourClassName{ font-family:; }
Then of course the is also the jQuery solution using the .children() function
Related Posts:
- How to auto-format code in Eclipse?
- Adding spaces in multiple lines simultaneously – in Pycharm
- can I add a custom format to the format option in the text panel?
- Change CSS/formatting on specific page, but not pages in general?
- How to change text size of Gutenberg editor
- Content over 10,000 characters won’t display with the_content()
- How to prevent automatic conversion of dashes to –
- Add dollar sign and commas to a number?
- Line breaks not showing up properly
- Use a language specific thousand separator
- Comment formatting with comment_content
- Formating the display of a post’s date, outside the Loop
- Formatting with
- Keep formatting for tables copied from MS Word?
- Page formatting lost when I attempt a revision
- How to properly format if statement with html and php
- How can I prevent WordPress to wrap into a paragragraph
- Linebreaks behaving oddly inside blockquotes
- post_class() breaks out of formatting. . . extra markup also generated
- How to Prevent WordPress from Automatically Applying Inline Styles to Post Images?
- How do I format the date in Event Organizer?
- Images that copy code to clipboard when you click on them
- Formatting poetry in wordpress
- Trim content without stripping formatting
- Changing the code format for wordpress
- How to remove filter apostrophe and single quotation
- Display KML (or other “raw data” file) nicely in WP?
- why doesnt my formatting work in my wisiwig editor?
- Formatting issues within Divi theme
- Preparing Hardcopy and Online Page
- how to display the web content which contain html code prolerly?
- Remove all paragraph tags
- How to prevent wordpress from autoformatting my posts once and for all?
- How do I display page content next to a contact form, rather than under it?
- Multiple item layout with one query
- Fix issue with displaced braces( )
- Formatting text in posts
- Is there a way to reorder a collection of posts to read from top (oldest) to bottom (newest)?
- How to add a spoiler without using shortcode-based plugins [closed]
- Can’t get blog entry to format properly using wp-load
- Paste Function Broken
- Expected RBRACE, but the bracket is there?
- std::string formatting like sprintf
- Convert java.util.Date to String
- How to format numbers as currency strings
- Properly formatted multiplication table
- Convert a date format in PHP
- How to format a string as a telephone number in C#
- Formatting Code Snippets on Free WordPress.com Account?
- Remove hidden formatting when user paste text from MS Word into TinyMCE
- Preserve white-space in Page
- When calling wp_title(), do you have to create some kind of “title.php” file?
- Formatting post content to exclude gallery
- Why does WP not like my container?
- Lost formatting after saving
- Code Blocks with WYSIWYG in blog post
- Keep pasted pre formatted code as it is -with tabs- in visual editor
- Is there a way to disable formatting shortcuts in 4.3?
- Get last seen date/time in wordpress get_comments() [closed]
- $content = $post->post_content; with formating
- PHP echo stripping formatting in Advanced Custom Fields [closed]
- How to center oEmbedded content
- What are the “U” and “G” time formats?
- Inconsistent behavior from number_format
- Unwanted line break before
- Modify Gallery Output to render differently on a PAGE and a POST
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- Format the Layout of Images In The Edit Post Textarea?
- Force Balance Tags not working
- Need to add trailing slash to all internal links relative and absolute
- Disable TinyMCE Table formatting width/height
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- How can I add custom text styles to the visual text editor?
- Exclude uploaded files from appearing in the excerpt()
- WordPress get_the_content losing formatting when emailed
- Special Formatting for WordPress Plugin Description?
- HTML tables in content areas
- Displaying Meta-Box Data Properly
- Removing Line Break Tags from a Page
- Graphics and Formatting Not Loading in WordPress on IIS
- Pasting formatted text from MS-Word
- Formatting a date/time returned from a custom $wpdb query
- Problem with -> in pre tags
- Snippet to Format Elementor Text Box Throws Error
- How to do store, retrieve and write attributes in the registerFormatType method in Guttenberg?
- Measure time in ONLY HOUR format
- Problems with cart and pages on _s theme
- Is there an easy way to remove the data-preserver-spaces span from blocks?
- Page takes on two different formats
- Paste from word not preserving formatting
- What’s the best way to trim content from WYSIWYG editor?
- How to format the various types of custom fields?
- What could interfere with changing iframe contents with href?
- the_content inside my own theme does not retain line breaks / enters like in the admin
- WordPress excerpt with formatting and allowing selected tags
- Add HTML to Page Content
- Adding to he format dropdown menu tinyMCE in WordPress
- Removing Author name
- How can I add the option to format to list in RichTextToolbarButton?
- How to customize Date Format for American visitors?