Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
93 views
in Themes by
retagged by
I'm creating a custom logo function for my theme.
For the logo link I need the URL for my homepage in PHP. How can I get the homepage URL using PHP?

1 Answer

+1 vote
by
selected by
 
Best answer

The link for the homepage is:  qa_path('qa')  .

Example:

$this->output('<a href="' . qa_path('ask') . '">LOGO</a>');

...