Why not add a CSS class to the H1?
echo '<h1 class="custom-style">' . get_the_title() . '</h1>';
then in your child theme or custom CSS, apply the style to that class:
h1.custom-style {
text-align:center;
color:#fff;
font-size:60px;
}
Related Posts:
- Set media upload attachment link to none and hide it in WP v3.5
- How to set custom cookies before output
- How to use wp_insert_user on WordPress Multisite?
- Why does this echo values in the wrong order?
- On this day PHP code
- How to add default images into theme customizer image control?
- Woocommerce: How to override core functions in functions.php?
- Successful or Error Message after running mysql code in functions.php
- How do I get a list of popular posts by views?
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to only show page id as body class?
- Insert array data on plugin activation
- Auto crop images in WordPress
- Trying to make php run in a post
- Adding Default Settings to Theme My Login plugin
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- WordPress Site Running Extremely Slow on Dedicated Server
- Remove wp_admin_bar fail on wordpress 4.0
- How to use an associative array in post__in with WP_Query?
- Extract 1st word of blogname/insert in middle of new string
- Can you run WordPress on a MarketLive/Java EE server?
- function to assign user role based on a field from usermeta
- Hiding div based on user role
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Set meta field to publish date + 2 weeks
- Redirect undesirable domain
- wp_enqueue_script seperately for each shortcode
- What esc_ to use to validate this?
- How to display product category in custom developed theme?
- Refresh table data with Ajax
- Trying to install wordpress locally with mamp, but have unsupported php version
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- How i can obtain all the post meta for a specific post as an array?
- How to optimize the IF condition with many conditions and same output [closed]
- Show latest posts in a plain HTML website custom widget [closed]
- Run str_replace on title and save the output to a custom field
- Which function crops images in wordpress?
- Remove dash from blog title wordpress
- Adding a line of text to php code
- Include text in echoed hyperlink
- WordPress Custom SQL Table with UserID Filter for results
- set post limit at load more ajax wordpress
- Why my loop isn’t working? [closed]
- How to use AJAX to call php page with parameter
- Pass return-path additional parameter in wp_mail
- How to get image from url from the database?
- WordPress meta_query >= &
- Change header on pages displaying taxonomy items
- Listing titles and custom fields of entries within subcategories
- How to override a plugins script
- Must filter functions receive all arguments passed to them?
- Comparing Dates from custom field
- Prevent Company Name From Translating
- Displaying Slider in Front Page (home) using Customizr Theme
- Usage of var keyword in the core
- Taxonomy term description with style, only if the description exists?
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- PHP displaying wrong custom taxonomy images
- Slow site initial load time
- Page load timer?
- wordprees multi-site in user panel add filter
- MySQL Query Returns Array () In Shortcode
- copy fields value to another field
- Get parent category name when only child category is applied to a product
- Updated Php version from 5.4 to 7.2 and getting “PHP installation missing the MySQL extension needed by WordPress”
- PHP session not staying alive. headers already sent
- how can I call a function when time expire
- Get Child of Child Pages in custom Menu
- Latest posts feed with a specific post always first
- Top Authors list by highest post views with Ajax pagination
- WordPress Post undefined error with Post Date (New to Wordpres Dev)
- Move Jquery.js to Footer
- From php web to wordpress conversion, href changes only in URL
- Attaching an upload to a user
- Change home_url in searchform.php to go to HTTPS instead of HTTP
- What’s the correct offset value for order ASC?
- can’t grab PHP $_POST variable
- Setting at job with shortcode not working
- How to solve 404 permalink errors on nginx server
- Ajax Load more CPT via shortcode
- Loop 1 user randomly
- Wp_mail doesnt work
- Sort by multiple options in custom field
- Query seems to be duplicated
- Top menu disapears in Category Pages when filtering using ACF
- two sites, same code, different presentation
- WPMU schedule doesn’t execute actions
- doubled content
- Adding if statement to content for homepage
- Tables not showing divs and loop/php items
- Add Condition if WPBakery Page Builder Used on Page or Not
- Data inserted in database, but ajax calls error function
- how to import contacts from php to wordpress
- How to add active class dynamically
- Setting WooCommerce currency programmatically
- I’m not able to get access $wpdb in my php file in wordpress
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- get_post_meta returns on side but it doesn’t return on bottom of admin page