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 to change the case of all post titles to “Title Case”
- wp_set_object_terms and arrays
- How to use WordPress (PHP) functions in AngularJS partials files?
- Different background-image by category
- enqueue multiple Google fonts with multiple weights and styles (italic)
- What is the fastest way to load PHP functions that are only used in one theme template?
- Can’t load WP function into external function
- WSoD being caused by this piece of code
- How to complete two other input fields, completed the first
- Remove the first 5 characters of the_title and orderby that
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Scrape external webpage for first image and add it to new post
- Error: options page not found
- jQuery code not working when included in functions.php
- Fatal Errors on pluggable.php
- Log in / Log Out Custom Button
- Can’t save php string to a custom field
- get_template_directory adding FTP root folders in urls
- Fatal error: Call to undefined function register_new_user()
- How to modify the default feed via a function
- Loop over Array and get the distinct ids
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Post not populating for custom post type based on category selection
- call_user_func_array() expects parameter 1 to be a valid callback, function ‘———-‘ not found or invalid function name
- How to add new CSS file to new PHP file
- Dynamic Menu drops pages?
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- Adding an Unlinked Space in a Custom Function
- send popup after wp_redirect()
- How to find which .mo file is responsible for displaying a particular localized string?
- Checkbox doesn’t save inside metabox
- A function to get the content of a page
- Add Featured Image to Existing Post
- How to get latest post ID in functions.php?
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- How can I prevent a shortcode div from extending beyond its boundaries?
- Add my footer menu to the header
- Handling form actions in WordPress
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Shortcode’s output to use as other shortcode’s parameter
- How to make the first letter of a post title uppercase, in a plugin?
- PHP script to redirect traffic based on website accessed
- How to remove title tag with this filter
- Why transition_post_type hook is called twice for the same post?
- WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
- “Page Array” displaying in title bar on Front Page
- Retrieving specific images from Media Library
- Can’t put a hyperlink on Featured Post’s Image
- Permission error on plugin save
- Display default WordPress login/registration form into a modal window
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Pull GET parameter from URL in functions.php
- How to NOT override inline css rules
- Adding Gravity Form With if(is_page) Is Not Working
- Load files content [closed]
- problem with php function error