'Remove Site Info permanently from wordpress version 5.0.2
I want to remove Site Info from my wordpress permanently. I am using version 5.0.2. I want to remove showing Site Info basically from web browser Title Bar. With every post and page it shows like-> "My post title" - "My Site Info"
Please note i already tried few things like-
wp-content/themes/twentynineteen/template-parts/header inside this directory i have tried to remove <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> line of codes. But Site Info still shows. I am not getting idea from where this Site Info coming? And how can i stop it?
I am using default wordpress theme Twenty_Nineteen. Any idea? Please dont advice any 123 plugins. I hate plugins. I want to do it from wordpress php files
Solution 1:[1]
Note: If you'd like to remove site-info from Title bar, it'll be removed from the Tab at the same time.
Basically you need to remove Title Tag from functions.php file. That code is located in the 46 number line, look like this
add_theme_support( 'title-tag' );
And then add this hook somewhere in your functions.php
add_action('wp_head', function() {wp_title('');});
Courtesy goes to Sakib amin.
Solution 2:[2]
It looks like your error happens here in the first step
hpds_all_raw %>%
lookup_replace(1, 'Departments and Agencies - EN')
The pipe structure is the same as this: lookup_replace(hpds_all_raw , 1, 'Departments and Agencies - EN')
And looking at your function lookup_replace(), that will left_join the first piece with the second piece.
left_join(hpds_all_raw , read_xlsx(sheet=1), by column = 'Departments and Agencies - EN'])
So it seems hpds_all_raw might not have the column 'Departments and Agencies - EN'
Your code doesn't show us where hpds_all_raw comes from either
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Arthur Yip |
