Use this code in Header.php file.
<title><?php wp_title(' - ', true, 'right'); ?></title>
But as per page view source code.you have forgot to close tag above tag in header. so please close tag. see this screenshot
Should code like this:
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
</script>
<title><?php wp_title(' - ', true, 'right'); ?></title>
Related Posts:
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- “Can’t use function return value in write context” error
- Using PHP to toggle stylesheet and header image, set in cookie
- Shortcode content output but not in correct place
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- How to style options page in dashboard?
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- Css loads very slow [closed]
- responsive.css in the WordPress should be prioritized
- Which is the correct way to conditionally enqueue a CSS file?
- height should be set to auto to avoid pixelation in the post thumbnail function
- Reduce size of responsive title
- How to make container class in PHP
- Creating a mobile site by adding a new class to the body tag from functions.php
- CSS change in woo commerce Place Order Text [closed]
- woocommerce related product title length
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Split site title and apply different classes
- Insert content into head tag with function
- Programmatically revert to backup .htaccess a possibility?
- how to changes mobile menu toggle breakpoint in WordPress
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- how to replace h1 entry title with h2 in category pages only
- PHP function for horizontal Woocommerce thumbnails and badges
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- I got big white screen when i attach main style sheet of Html in functions.php
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Add class for the_post_thumbnail_caption()
- Displaying POST content with HTML tags and all
- Highlight Single Page Ancestor
- Styling admin page rows in order of importance (checkboxes)
- How to have Function of a plugin using global vars into a shortcode?
- Functions are causing errors
- syntax error unexpected ‘}’ at 364 line
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Cant get theme to change footer color through theme customizer
- How to add margin underneath woocommerce total price amount -> productpages
- WP Debug enabled Undefined index error in a widget
- How do I get Roboto Google Font to display normal font-style? [closed]
- Integrating CSS Into a WP Function Call [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Sorting Problem
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- How do I make a shortcode to display Dokan seller badge list?
- How can we upload custom page files?
- Calling a PHP function from a menu item
- Split titles by the ” – ” in WordPress
- Is it possible to remove the “Shop” title from the WooCommerce catalogue? [closed]
- Removing website URL in comments causes misalignment of submit button and tickbox
- Count the number of times the search form template gets included on a page
- Displaying theme options in css
- Show post in slider
- PHP code inside shortcodes
- Set post title based on first h2 element in the content section
- Limiting woocommerce line_total decimal length
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Problem adding class to body_class
- Run a filter when a walker runs
- How can I use wp_insert_comment to write a comment when a post is edited?
- Using Multiple Submit buttons to trigger customised php functions
- Removing unneccessary p-tags (Not every p)
- Add a custom stylesheet for BlackBerry
- How to remove the excerpt in the Dzonia Lite theme
- comments_number display outside specified span
- Choose To Display Post Views With An Options Panel
- Prevent Data Resubmission On Page refresh
- Set WordPress Default Template
- How can I hide Home in my menu in a specific page?
- Shortcode content filter?
- Missing sidebar parameter “fix” – before_content
- An extra ‘ is displayed in the title
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- How do I display a user’s previous orders as a select box option on a product?
- How Display Posts on category
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- allow subscribers to see private posts without plug in
- Replace word in “the_content” only for index.php
- How do you add customer capability after Woocommerce purchase?
- How to get specific image in media library with php
- Function set default image when image not present
- Custom location for attached images
- WooCommerce – Reset quantity input field when variation changes
- Query all posts of a custom taxonomy term
- get current product name in functions.php
- Get first URL from post content
- Setting custom canonical urls
- WordPress 5 WP REST routes – No errors
- Handling Body class based on Template
- Trigger popup in a php if/else statement
- Setting a cookie upon specific URL visit
- Get_avatar filter?
- How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
- Can’t get page content in WordPress
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- Way to querry data (tags) from a wordpress database?
- get post based on category chosen in drop down – The ajax method
- Slider loading issue
- Adding Default Settings to Theme My Login plugin