Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The goal will be to change the logo's link from the home page to any custom URL of your choosing:

  1. Open the dev doc: httphttps://hub.alka-webalkalab.com/pro/doc, this is the first filter listed: 

  2. Code Block
    apply_filters('woffice_logo_link_to', home_url( '/' ) );

    You will also find a description of each argument and a description. 


  3. Go to you woffice-child/functions.php file and open it with your favorite code editor, then just add your new filter: 

    Code Block
    languagephp
    add_filter('woffice_logo_link_to', function($url) {
    	// Make any change here, just return a string which by default is $url which is: home_url( '/' )
    	return "https://facebook.com";
    });

    That's a very simple example and does not make a lot of sense. But obviously you can do any kind of PHP process on your side and just use any link. 

  4. Save and upload. 

...