Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
571 views
in Q2A Core by

Unfortunately I could not find an answer on this question.

How to identify main page from custom theme?

I thought of something like that:

If ($this->context(is_mainpage)) {...}

in qa-theme.php?

 

Update: Found in custom themes, but what is the type of mainpage:

if ( ($page_link['type']=='ellipsis') ) ...

1 Answer

0 votes
by

This works:

if ($this->template=='qa') { ... }

...