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]
- Hide or Show Read More Button by Content Area
- Remove “Insert from URL” link in Media upload – WP 3.5
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Proper use of Output Buffer
- Does My Child-Theme Functions.php Need if{die} Security In It? [duplicate]
- Should I write a PHP function in home.php?
- Debugging an error: wp_enqueue_style was called incorrectly
- class=”parent” for wp_list_pages?
- Allow authors to post only in categories they create in WordPress
- Changing the HTML Of the content
- functions.php not adding css to website?
- if has theme mod
- How to override a non pluggable and non hookable function in a WordPress parent theme?
- Count Title and Post Characters
- Remove css styles from specific page
- How to remove this function from the homepage?
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- HTML table from shortcode with multiple parameters
- Nested shortCode functions in the functions.php file
- Show only IF not Google bot [closed]
- How the functions in WP are called in tags
- get_page_by_title with an apostrophe in variable
- Woocommerce – remove product from category
- Differences when using the the_time and the_date functions
- Add a Second Menu to a theme that only support 1 menu
- Custom excerpt function re-factoring
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Using Multiple Submit buttons to trigger customised php functions
- How Display Posts on category
- How to get specific image in media library with php
- Displaying the Month and Year that a page was Created?
- Parent theme CSS overriding child CSS rules
- Only Show Link If div Exists
- How to find error in my code when the error message is pointing to WP core file?
- How to access global variable $menu inside a class function
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Change the WP Video Shortcode Output
- How to pick the default selected value in wordpress dropdown?
- Using WP-API and SSE not authenticating user ID
- Validate functions before inserting then into functions.php
- How to retrieve current wordpress profile page URL?
- Error on wp_default_style After upgrade to php 7
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- Incorrect MIME type for assets with Valet
- Customize position of social icons in upme plugin [closed]
- Modify function to print tags/categories/exclude tags/categories/ number of posts
- Search not showing all results
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- How to Reference/Echo Variable from Another PHP Function
- Detecting classes, adding widgets, and adding divs in with a Nav Walker