• How to change Link for logo of wordpress site

    I want to change Link for Logo of given website

    domylook.com/CareForU

    I need to update the link for above URL Logo to given address

    domylook.com
    Please help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi

    To change logo link For this

    Find the wp-config.php file into your wordpress directory and add the below line of code

    define('WP_HOME','https://domylook.com');

    save the file .

    and run your website .

    Thanks
    Akhilesh

    Hi @domylook

    Did the above solution worked ?

    Thanks

    Akhilesh

    Thread Starter domylook

    (@domylook)

    Hi,

    I am loaded all file through FTP. I am not able to find file wp-Config.php

    Please help

    Thanks

    Hi

    If you are unable to find the wp-Config.php . I am suggesting other method pls follow the given instruction

    1 Find the header.php file (which is located in theme package << header.php file ).

    2 Edit it and Find the below line of code on line no 35

    <a href="<?php echo home_url( '/' ); ?>" class="brand">
    Amd replace it with below line of code .

    <a href="https://domylook.com" class="brand">

    And you may change the url https://domylook.com as your need
    Let me know for any confusion .
    Thanks
    Akhilesh

    Thread Starter domylook

    (@domylook)

    Hi Akhilesh,

    Both solution did not work. Now when i click on Logo nothing happens , it stick to same page,
    I reset both the changes but still when i click on logo of any page it does not go to any page,
    Please help.

    Thanks,
    Neha

    Hi

    The above given solution working perfect at our end.

    If possible then tell me your header.php file code .

    Thanks
    Akhilesh

    Thread Starter domylook

    (@domylook)

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <!–[if IE]>
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″>

    <![endif]–>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″ />
    <meta charset=”<?php bloginfo(‘charset’); ?>” />
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <?php if(get_option(‘spa_theme_options’)!=”)
    {
    $spa_current_options=get_option(‘spa_theme_options’);
    }
    ?>
    <?php if($spa_current_options[‘upload_image_favicon’]!=”){?>
    <link rel=”shortcut icon” href=”<?php echo $spa_current_options[‘upload_image_favicon’]; ?>” />
    <?php }?>
    <link rel=”profile” href=”https://gmpg.org/xfn/11&#8243; />
    <link rel=”stylesheet” href=”<?php echo get_stylesheet_uri(); ?>” type=”text/css” media=”screen” />
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <!– Header –>
    <div class=”container”>
    <div class=”navbar navbar-inverse” id=”menu_position”>
    <div class=”navbar-inner”>
    <div class=”container”>

    <span class=”icon-bar”></span>
    <span class=”icon-bar”></span>
    <span class=”icon-bar”></span>

    <?php if($spa_current_options[‘upload_image’]!=”) { ?>

    <img src=”<?php echo $spa_current_options[‘upload_image’]; ?>” height=”<?php echo $spa_current_options[‘height’].’px’ ?>” width=”<?php echo $spa_current_options[‘width’].’px’; ?>” alt=”Spa Logo” class=”logo-img” />

    <?php } else { ?>

    <img src=”<?php echo get_template_directory_uri();?>/images/spa_logo.png” alt=”spasalon” />

    <?php } ?>
    <div class=”nav-collapse navbar-inverse-collapse collapse”>
    <?php
    wp_nav_menu( array(
    ‘theme_location’ => ‘header-menu’,
    ‘container’ => ‘nav-collapse collapse navbar-inverse-collapse’,
    ‘menu_class’ => ‘nav’,
    ‘fallback_cb’ => ‘spa_fallback_page_menu’,
    ‘walker’ => new spasalon_nav_walker()
    )
    );
    ?>
    </div>
    <!– /.nav-collapse –>
    </div>
    </div>
    <!– /navbar-inner –>
    </div>
    </div>

    Hi Replace all the code of your header.php file with the below code .

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
      <head>
        <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <code></code>
        <![endif]-->
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta charset="<?php bloginfo('charset'); ?>" />
        <title><?php wp_title( '|', true, 'right' ); ?></title>
        <?php if(get_option('spa_theme_options')!='')
          {
          	$spa_current_options=get_option('spa_theme_options');
          }
          ?>
        <?php if($spa_current_options['upload_image_favicon']!=''){?>
        <link rel="shortcut icon" href="<?php  echo $spa_current_options['upload_image_favicon']; ?>" />
        <?php }?>
        <link rel="profile" href="https://gmpg.org/xfn/11" />
        <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
        <?php wp_head(); ?>
      </head>
      <body <?php body_class(); ?>>
        <!-- Header -->
        <div class="container">
          <div class="navbar navbar-inverse" id="menu_position">
            <div class="navbar-inner">
              <div class="container">
                <a data-target=".navbar-inverse-collapse" data-toggle="collapse" class="btn btn-navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                </a>
                <?php 	if($spa_current_options['upload_image']!='') { ?>
                <a href="https://domylook.com" class="brand">
                <img src="<?php echo $spa_current_options['upload_image']; ?>"  height="<?php echo $spa_current_options['height'].'px' ?>" width="<?php echo $spa_current_options['width'].'px'; ?>" alt="Spa Logo" class="logo-img" />
                </a>
                <?php  } else { ?>
                <a href="https://domylook.com" class="brand">
                <img src="<?php echo get_template_directory_uri();?>/images/spa_logo.png" alt="spasalon" /></a>
                <?php } ?>
                <div class="nav-collapse navbar-inverse-collapse collapse">
                  <?php
                    wp_nav_menu( array(
                       'theme_location' => 'header-menu',
                      'container'  => 'nav-collapse collapse navbar-inverse-collapse',
                       'menu_class' => 'nav',
                       'fallback_cb' => 'spa_fallback_page_menu',
                       'walker' => new spasalon_nav_walker()
                    	)
                    	);
                    ?>
                </div>
                <!-- /.nav-collapse -->
              </div>
            </div>
            <!-- /navbar-inner -->
          </div>
        </div>
    Thread Starter domylook

    (@domylook)

    Hi Akhilesh,

    I applied the same solution but it did not work.

    I think it is not suitable solution. Could you provide some other solution for the same.

    Thanks,
    Neha

    Theme Author webriti

    (@priyanshumittal)

    Just change the value of href with your required link in the line number 35

    Theme Author webriti

    (@priyanshumittal)

    I have seen your html head the value of href you entered is not correct

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How can i change logo link for this theme’ is closed to new replies.