Search
 
SCRIPT & CODE EXAMPLE
 

PHP

change logo url on wordpress website

function oceanwp_child_modify_logo_link( $html, $blog_id ) {
  $custom_logo_id = get_theme_mod( 'custom_logo' );
  $html = sprintf(
    '<a href="%1$s" class="custom-logo-link" rel="home">%2$s</a>',
    esc_url( 'https://google.com/' ), 
    wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr )
  );

  return $html;
}

add_filter( 'get_custom_logo', 'oceanwp_child_modify_logo_link', 10, 2 );
Comment

Change WordPress Login Logo Url

/* Change WordPress Login Logo Url */
function alter_login_logo_url() {
    return home_url();
}
add_filter( 'login_headerurl', 'alter_login_logo_url' );
Comment

PREVIOUS NEXT
Code Example
Php :: Custom Font Laravel 
Php :: check if date has passed php 
Php :: php associative array join key values 
Php :: maintenance mode laravel 
Php :: php artisan make :migration with model 
Php :: header php location 
Php :: php catch echo output 
Php :: Access-Control-Allow-Origin php laravel 
Php :: php custom autoload 
Php :: How do I get current taxonomy "term id" on wordpress? 
Php :: php timeout 
Php :: post loop 
Php :: laravel switch 
Php :: limit text length in php 
Php :: get all sort by laravel 
Php :: jquery code to trigger php function 
Php :: how to get meta information from pagination in laravel controller 
Php :: laravel permissions 
Php :: laravel eloquent update 
Php :: laravel auth setup 
Php :: Laravel migrations custom foreign key 
Php :: laravel vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:36 
Php :: worpdress pods taxonomy get custom field 
Php :: php foreach ($_post as $key = $value) 
Php :: laravel validation types 
Php :: echo string in php 
Php :: PHP str_repeat — Repeat a string 
Php :: laravel simplexmlelement not found 
Php :: Woocommerce get image galleries by product id 
Php :: transaction laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =