Advertisement:

Author Topic: [SOLVED]Change Logo url  (Read 2197 times)

Riding The Storm

  • Newbie
  • *
  • Posts: 22
[SOLVED]Change Logo url
« on: November 18, 2015, 06:22:29 am »
Is there a way to change the URL that is with in the Header Logo? Every file that I have look into does not use HTML. Do you have to have a widget to edit it?
« Last Edit: November 19, 2015, 03:51:11 am by Riding The Storm »

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Change Logo url
« Reply #1 on: November 18, 2015, 02:54:12 pm »
Hi,

no widget but this is the function in Bender theme's "functions.php" that handles the logo and the url used when logo is clicked:
Code: [Select]
function logo_header()
Inside that function you will see something like this "<a href="'.osc_base_url()." which is the actual link for the logo.


Regards,
Eric

Riding The Storm

  • Newbie
  • *
  • Posts: 22
Re: [SOLVED]Change Logo url
« Reply #2 on: November 19, 2015, 03:52:13 am »
Thank you vary much for the reply ;D  There are 2 lines in the function.php. Do you know if you need to chance both of them. I changed the first line and left the 2nd line as written, and it works. Should one change the 2nd line also? Thanks Again
« Last Edit: November 19, 2015, 03:56:32 am by Riding The Storm »

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: [SOLVED]Change Logo url
« Reply #3 on: November 19, 2015, 11:01:07 am »
Hi,

could you post those lines here, makes it easier to understand what you exactly mean?


Regards,
Eric

Riding The Storm

  • Newbie
  • *
  • Posts: 22
Re: [SOLVED]Change Logo url
« Reply #4 on: November 20, 2015, 02:19:15 am »
  /* logo */
    if( !function_exists('logo_header') ) {
        function logo_header() {
             $logo = osc_get_preference('logo','bender_theme');
             $html = '<a href="'.osc_base_url().'"><img border="0" alt="' . osc_page_title() . '" src="' . bender_logo_url() . '"></a>';
             if( $logo!='' && file_exists( osc_uploads_path() . $logo ) ) {
                return $html;
             } else {
                return '<a href="'.osc_base_url().'">'.osc_page_title().'</a>';

I changed the first one in red and did not do anything to the second one in red  and it works

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: [SOLVED]Change Logo url
« Reply #5 on: November 20, 2015, 03:21:11 pm »
Okay, no need for more changes, this is all you needed.
The second line is what is returned if no logo exists.

Regards,
Eric
  /* logo */
    if( !function_exists('logo_header') ) {
        function logo_header() {
             $logo = osc_get_preference('logo','bender_theme');
             $html = '<a href="'.osc_base_url().'"><img border="0" alt="' . osc_page_title() . '" src="' . bender_logo_url() . '"></a>';
             if( $logo!='' && file_exists( osc_uploads_path() . $logo ) ) {
                return $html;
             } else {
                return '<a href="'.osc_base_url().'">'.osc_page_title().'</a>';

I changed the first one in red and did not do anything to the second one in red  and it works

Riding The Storm

  • Newbie
  • *
  • Posts: 22
Re: [SOLVED]Change Logo url
« Reply #6 on: November 21, 2015, 05:16:37 am »
Hey thanks again